Custom TrackerInfo display Issue

3 posts, 0 answers
  1. Avneesh
    Avneesh avatar
    13 posts
    Member since:
    Jul 2013

    Posted 17 Oct 2013 Link to this post

    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?


  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 22 Oct 2013 Link to this post

    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.

    Tina Stancheva
    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 >>
  3. Avneesh
    Avneesh avatar
    13 posts
    Member since:
    Jul 2013

    Posted 23 Oct 2013 Link to this post

    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.

Back to Top