This is a migrated thread and some comments may be shown as answers.

RadChart - How to change item style by triggering CreateItemStyleDelegate

5 Answers 61 Views
Chart
This is a migrated thread and some comments may be shown as answers.
De
Top achievements
Rank 1
De asked on 09 Mar 2011, 09:55 PM
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,

5 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 15 Mar 2011, 09:20 AM
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!
0
ajit
Top achievements
Rank 1
answered on 04 Apr 2011, 02:56 PM
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.
0
Sia
Telerik team
answered on 07 Apr 2011, 09:50 AM
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
0
Kumar
Top achievements
Rank 1
answered on 21 Dec 2011, 03:43 PM
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." 
0
Sia
Telerik team
answered on 26 Dec 2011, 10:21 AM
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 >>

Tags
Chart
Asked by
De
Top achievements
Rank 1
Answers by
Sia
Telerik team
ajit
Top achievements
Rank 1
Kumar
Top achievements
Rank 1
Share this question
or