Populate ColorPicker with custom palette?

4 posts, 0 answers
  1. Charles Bates
    Charles Bates avatar
    45 posts
    Member since:
    Feb 2010

    Posted 14 Mar 2010 Link to this post

    UPDATE:  It appears I can set MainPaletteItemsSource to a class derived from  IEnumerable<Color>.

    Hello,
    I would like to populate the RadColorPicker MainPalette with a set of custom colors.
    I suspect I need to set RadColorPicker.StandardPalette="None", and then populate the MainPaletteItemsSource collection.
    What type of object goes in to that collection?
    Thanks.
    (I searched through the demo code, but couldn't find any relevant examples.)
  2. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 15 Mar 2010 Link to this post

    Hi Charles Bates,

    You can add  custom colors to your ColorPicker using one of the following palettes:
                                  MainPallette     -> using MainPaletteItemsSource
                                 StandardPalette  -> uisng  StandardPaletteItemsSource
                                 HeaderPalette    ->using  HeaderPaletteItemsSource

    More examples you can find here:
    http://demos.telerik.com/silverlight/#ColorPicker/ColorPaletteView


    Greetings,
    Bobi
    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.
  3. DevCraft banner
  4. Charles Bates
    Charles Bates avatar
    45 posts
    Member since:
    Feb 2010

    Posted 15 Mar 2010 Link to this post

    Thanks for the reply.
    Clicking on the link, though, provides this:

    500 - Internal server error.

    There is a problem with the resource you are looking for, and it cannot be displayed.

  5. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 15 Mar 2010 Link to this post

    Hi Charles Bates,

    We apologize for the inconvenience caused. 
    Please follow the correct link:

    http://demos.telerik.com/silverlight/#ColorPicker/ColorPaletteView

    Kind regards,
    Bobi
    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.
Back to Top