This is a migrated thread and some comments may be shown as answers.
Use kendoColorPicker instead of kendoColorPallet to change foreColor or backColor
2 Answers 10 Views
This is a migrated thread and some comments may be shown as answers.
Philippe
Top achievements
Rank 1
Philippe asked on 25 May 2016, 09:59 AM

Hi,

I wanted to change the way to choose foreColor and backColor using the kendoColorPicker.

The default way use kendoColorPallet.

I can't find anything on internet.

Can you help ?

2 Answers, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 26 May 2016, 07:18 AM
Hi Philippe,

You cannot change the built-in color picket for the forecolor and backcolor tools. 

You can, however, create your own custom template tools—http://demos.telerik.com/kendo-ui/editor/custom-tools. Which to execute the proper command when end user selects a color—http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#methods-exec.

Here you are a basic example for creating a custom forecolor tool with KendoColorPicker—http://dojo.telerik.com/iKuTo.

Regards,
Ianko
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Philippe
Top achievements
Rank 1
answered on 26 May 2016, 08:12 AM

Hi Lanko,

Thanks for your quick answer, I did as you said.

For those interested in an example, I made a jsFiddle : https://jsfiddle.net/hdysyLcj/

 

Asked by
Philippe
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Philippe
Top achievements
Rank 1
Share this question
or