RadChart - How to change item style by triggering CreateItemStyleDelegate

6 posts, 0 answers
  1. De
    De avatar
    4 posts
    Member since:
    Feb 2011

    Posted 09 Mar 2011 Link to this post

    I have the need to trigger RadChart.CreateItemStyleDelegate in code.  Basically I have some logics in CreateItemStyleDelegate to create different styles based on input data.  On the initial startup, all UI controls  are created and data bound are fine.  After that if the user change one of the important attribute on ViewModel, I need to tell the control to re-create styles for all items (throught CreateItemStyleDelegate).  Anyone knows what would trigger CreateItemStyleDelegate?

    Notes that I am trying to avoid to recreate the entire control.

    Thanks,
  2. Sia
    Admin
    Sia avatar
    756 posts

    Posted 15 Mar 2011 Link to this post

    Hello De,

    A possible way to achieve the desired is to call Rebind(), but this will recreate the whole control. That is why I suggest you to use the exposed Appearance API. Please let me know if this is an appropriate solution for your case.

    Greetings,
    Sia
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. ajit
    ajit avatar
    2 posts
    Member since:
    Jun 2010

    Posted 04 Apr 2011 Link to this post

    For 3D bar chart control it seem this function doesn't get called. I tried it and wanted to change the 3D bar style What to do? Thanks in advance.
    Ajit.
  4. Sia
    Admin
    Sia avatar
    756 posts

    Posted 07 Apr 2011 Link to this post

    Hi ajit,

    Unfortunately, the CustomDelegate functionality is not supported for 3D series.

    All the best,
    Sia
    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
  5. Kumar
    Kumar avatar
    17 posts
    Member since:
    May 2011

    Posted 21 Dec 2011 Link to this post

    Hello Telerik Team,

    We have similar use-case. I want to be able to change the background color of my Chart bars each time I get updated values for the source properties. We don't want to rebind each time. What do you mean by  "That is why I suggest you to use the exposed Appearance API." 
  6. Sia
    Admin
    Sia avatar
    756 posts

    Posted 26 Dec 2011 Link to this post

    Hi Kumar,

    Here is list of all available options for styling RadChart:


    I hope this helps.

    Greetings,
    Sia
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top