More in this section

Forums / Developing with Sitefinity / Table Wizard and CSS guidance

Table Wizard and CSS guidance

2 posts, 0 answered
  1. Brian
    Brian avatar
    2 posts
    13 Mar 2009
    12 Nov 2010
    Link to this post
    We would like to add a class to a table using the RadEditor Table control.  Right now it is just a drop down.  How do we will that dropdown with classes?  Is it possible to also add this layout to the wizard and remove layouts we won't be using?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    12 Nov 2010
    Link to this post
    Hello Brian,

    You can use TableLayoutCssFile to make reference to external Style sheet  that has custom css classes.

    1. You have to map external template for the control or view you are using. For instance for GenericContent control that you can drop on a page the template is GenericContentControlDesigner.ascx
    If you want to do this for GenericContent module, there are two templates that you have to map - ContentNewsView and ContentEditView which are used when you create a new item and edit an existing item

    You can follow this KB - How to map a template

    2. After you map the template you will find RadEditor declaration in it and this will allow you to set TableLayoutCssFile property

    I attached a sample short video that shows newly added classed that come from a custom stylesheet located in a local project.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered