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

Disable stylebuilder

2 Answers 55 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Niclas Ahlqvist
Top achievements
Rank 1
Niclas Ahlqvist asked on 04 Oct 2010, 07:10 AM
Hi!

Is there a way to disable the style builder button in the table/cell  properties dialog?

/Niclas

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Oct 2010, 01:29 PM
Hello Niclas,

Please, see this live example: Customize Built-in Dialogs. It will show you how to register the external editor's dialogs. The EditorDialogs folder is available in the RadControls for ASP.NET AJAX installation.

After that open the EditorDialogs/TableProperties.ascx file and set style="display:none" in the following <tr> element

<tr style="display:none">
<td style="padding: 3px 0;">
<div class="propertyLabel" style="width: 104px;">
<script type="text/javascript">document.write(localization["StyleBuilder"]);</script>
</div>
</td>
<td style="padding: 3px 0;">
<tools:StandardButton runat="server" id="StyleBuilder" ToolName="StyleBuilder" />
</td>
</tr>

Do the same for the following <tr> element inside the CellProperties.ascx file

 <tr style="display:none">
<td style="padding: 3px 0;">
<div class="propertyLabel" style="width: 90px;">
<script type="text/javascript">document.write(localization["StyleBuilder"]);</script>
</div>
</td>
<td style="padding: 3px 0;">
<tools:StandardButton runat="server" id="CellStyleBuilder" ToolName="StyleBuilder" />
</td>
</tr>

Save the files and test the dialog.

Best regards,
Rumen
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
0
Niclas Ahlqvist
Top achievements
Rank 1
answered on 05 Oct 2010, 01:39 PM
Thanks for all your help!
Tags
Editor
Asked by
Niclas Ahlqvist
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Niclas Ahlqvist
Top achievements
Rank 1
Share this question
or