Customizing table design for RadEditor TableDialog

6 posts, 0 answers
  1. Philip
    Philip avatar
    9 posts
    Member since:
    Feb 2012

    Posted 04 Apr 2012 Link to this post

    Hallo,

    in the table editor dialog one can select several CSS styles for the table design. Is it possible to change these templates? For our scenario it would be great if we could set the style of a table by default and not allow any changes to the initial style.

    I'd appreciate any suggestions on how to accomplish this.

    Thanks,
    Phil
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 06 Apr 2012 Link to this post

    Hi,

    You can see how to control the appearance of HTML elements in the content area of RadEditor in the following help article and live demo: Setting Content Area Defaults as well in this live demo: Customize Content Area.

    Best regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

  3. Philip
    Philip avatar
    9 posts
    Member since:
    Feb 2012

    Posted 11 Apr 2012 Link to this post

    Hi,

    just after inserting a table this table does not have css tags. So there's no way to change the layout of a new table via a custom css file. Is there a way to remove all actions but selection of the table size and insert a default styled table?

    If not, is there a possibility to change the templates offered in the table wizard dialog?

    Thanks,
    Phil

  4. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 11 Apr 2012 Link to this post

    Hello,

    You can change the templates offered in the Table Wizard dialog through the TableLayoutCssFile property as shown in this live demo: Table Properties CSS Class Layout tool.

    It is also possible to control the HTML inserted by the Table Wizard dialog in the OnClientPasteHtml event of RadEditor.

    All the best,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  5. Philip
    Philip avatar
    9 posts
    Member since:
    Feb 2012

    Posted 11 Apr 2012 Link to this post

    I've set the property to
    <property name="TableLayoutCssFile">TableLayout.css</property>

    Then I've created the file TableLayout.css in the folder "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\6.3.0.0__1f131a624888eeed\Resources" copying the example css information. The result is that in the table manager dialog I have no templates to chose from.
  6. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 11 Apr 2012 Link to this post

    Hello,

    Set the path like this in the configfile:

    <propertyname="TableLayoutCssFile">/_wpresources/RadEditorSharePoint/6.3.0.0__1f131a624888eeed/Resources/TableLayout.css</property>



    Regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top