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

PointTemplate DataTemplate Trigger by Item

1 Answer 35 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
종호
Top achievements
Rank 1
종호 asked on 15 Jun 2014, 11:57 PM
I want to datatrigger in pointtemplate's datatemplate.


Current  I get Chart's datacontext .

I need to ItemsSource by item.

How access?

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 18 Jun 2014, 10:29 AM
Hello,

The DataContext in the template (PointTemplate) is the Data Point. The data point contains a reference to the original data item in its DataItem property. I have attached a simple project to demonstrate the use of data triggers in the label template. In the attached image you can see that the triggers were executed for x2 and x3 categories.

Regards,
Petar Marchev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ChartView
Asked by
종호
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or