Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
Getting DataPoint from MarkerTemplate
posted

Is it possible to get a specific DataPoint instance from a given MarkerTemplate instance. I am using Marker Templates to make each Data Point a button. From the click event handler I can get to the MarkerTemplate instance and teh DataPoint Template instance. It even shows the tooltip in the debugger, but I can't seem to figure out how to get the DataPoint object itself. Any ideas? Is there something like ContainerFromGenerator or something?

Parents
No Data
Reply
  • 395
    posted

    By tracing the parents we can get to the MarkerTemplate which holds the tooltip for the underlying DataPoint. Using this we can parse out values to link it back to the underlying marker. This is the only way I could find to tie my custom template instance controls back into the underlying Marker/DataPoint instance.

     

Children