Programmatically access color pallet

2 posts, 0 answers
  1. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 14 Jun 2011 Link to this post


    Hi All,

    is there a way to access programmatically the default color pallet existing in the Chart.xaml file?

    e.g.: <telerikCharting:ResourceDictionaryCollection x:Key="SeriesStyleResources" Repeat="True" >
    ...

    My chart reflects data I have in a radgrid, a row = a bar in the radchart. So, when a user filters data in the grid it will sync/update the radgrid and I need persist the initial color that was initially assigned to a row ('client name'). It shouldn’t have a different color just because there are less rows/clients in the radgridview after filtering.

    Any ideas??

    Thanks!
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 15 Jun 2011 Link to this post

    Hi Nuno,

    There is no direct way to get the Colors of the default Palette programmatically. What I can suggest is that you create your own Palette of colors as this is shown in our help topic. On the other hand if you prefer the Theme colors - can you tell us which Theme are you using so that we can provide you the default colors from it?

    Best wishes,
    Evgenia
    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