This is a migrated thread and some comments may be shown as answers.

Customizing table design for RadEditor TableDialog

5 Answers 229 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 04 Apr 2012, 10:11 AM
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

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Apr 2012, 01:41 PM
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.
0
Philip
Top achievements
Rank 1
answered on 11 Apr 2012, 01:09 PM
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

0
Rumen
Telerik team
answered on 11 Apr 2012, 02:04 PM
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.
0
Philip
Top achievements
Rank 1
answered on 11 Apr 2012, 03:19 PM
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.
0
Rumen
Telerik team
answered on 11 Apr 2012, 04:05 PM
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.
Tags
Sharepoint Integration
Asked by
Philip
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Philip
Top achievements
Rank 1
Share this question
or