Use kendoColorPicker instead of kendoColorPallet to change foreColor or backColor

3 posts, 1 answers
  1. Philippe
    Philippe avatar
    24 posts
    Member since:
    Sep 2009

    Posted 25 May Link to this post

    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. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 26 May Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Philippe
    Philippe avatar
    24 posts
    Member since:
    Sep 2009

    Posted 26 May in reply to Ianko Link to this post

    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/

     

Back to Top