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

Custom TrackerInfo display Issue

2 Answers 19 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Avneesh
Top achievements
Rank 1
Avneesh asked on 17 Oct 2013, 04:11 PM
Hi,
I wanted to display a custom template in a custom aggregated grid format for tracker information for entire series. Currently we have two templates - trackerballControl which is panel template and when the update happens in TrackBallInfoControl, it picks up the tracker information template and adds it into template as seperate controls. How can i control this?
I even tried entrying dummy datapointinfo in the context so that it can display empty row but DatapointInfo and all the classes it uses are internal and very hard to do that.
Can anyone help please?


Thanks
Avneesh


2 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 22 Oct 2013, 05:40 PM
Hello Avneesh,

Unfortunately I am not sure what you need to implement. Can you please elaborate on your requirement a bit more? Specifically it would help us to see a snapshot of what you need to display in the trackball.

However, if your goal is to define a GridView component and display it within the TrackBallInfoControl, then you will have to manually update its ItemsSource. For that purpose you can add a handler for the ChartTrackBallBehavior TrackInfoUpdated event and traverse the DataPointInfos collection its arguments expose.

I attached a sample where I defined a business collection of items that should be displayed within a RadGridView in the TrackBallInfoControl. I update that collection in the ChartTrackBallBehavior_TrackInfoUpdated event handler. Please have a look at this approach and let me know if it works for you.

Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Avneesh
Top achievements
Rank 1
answered on 23 Oct 2013, 12:30 PM
Hello Tina,
Thanks for the sample - It sorts of confirm my solution. I have managed to get it working in a similar way. I used the datatemplate to display the MVVM object binded to the TrackBallInfoControl header. In the trackinfoupdated event, I set the context header property with this custom MVVM object and the datatemplate on the TrackBallInfoControl then displays the data.

Tags
ChartView
Asked by
Avneesh
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Avneesh
Top achievements
Rank 1
Share this question
or