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

ColorPicker Columns

3 Answers 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sébastien
Top achievements
Rank 1
Sébastien asked on 02 Jul 2010, 07:17 PM
I want to customize the radEditor ColorPicker. I know how to add my own colors, but I would want to modify the number of colums it is showing (By default it seems to be 10)

Thank you again Telerik team!

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 05 Jul 2010, 01:15 PM
Hello Sébastien,

Here is an example how to set the desired items per row count on the client:

<script type="text/javascript">
function OnClientLoad(editor, args)
{
   var oTool = editor.getToolByName("ForeColor"); //get a reference to the desired tool
   oTool.set_itemsperrow(8);
}
</script>
<telerik:radeditor runat="server" ID="RadEditor1" OnClientLoad="OnClientLoad">
   <Tools>
       <telerik:EditorToolGroup>
           <telerik:EditorTool Name="ForeColor"  />
       </telerik:EditorToolGroup>
   </Tools>
</telerik:radeditor>


Sincerely yours,
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
Sébastien
Top achievements
Rank 1
answered on 05 Jul 2010, 03:44 PM
Doesn't work, it gives me a javascript error (object is null or not an object).
0
Rumen
Telerik team
answered on 05 Jul 2010, 04:01 PM
Hi Sébastien,

Is it possible that you are using an older version of RadEditor that does not offer the set_itemsperrow(); method? Could you please test the code with the latest version Q1 2010 SP2 of Telerik.Web.UI.dll?

For your convenience I have attached my test project.

Kind 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
Tags
Editor
Asked by
Sébastien
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Sébastien
Top achievements
Rank 1
Share this question
or