Colorizer -- Databinding from ObservableCollection? Am I missing something?

2 posts, 0 answers
  1. Kevin Finke
    Kevin Finke avatar
    7 posts
    Member since:
    Jan 2006

    Posted 06 Jul 2012 Link to this post

    So, I've been looking through all of the examples that I can find, and I don't see any good way to use my data to colorize the Map. 

    In many examples, the data values are intermingled with the shape data.  I have no intention of building some nasty XML-based solution to shuffle my data together with the polygon definitions every time the view is requested.  Another solution seems to be to shuffle that data together in the code-behind, as shown off in the ColorizerAPI sample.  They basically loop through the shapes and add the ExtendedData elements directly.  Still, this seems clunky, and will be even more complicated trying to pull that off MVVM-style.

    What am I missing?

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 11 Jul 2012 Link to this post

    Hello Kevin,

    Colorizers are used to create a kind of heat map and legend and they can be used with ExtendedData only. But you can simply change the correspondent properties of the map shape objects (Fill, Stroke and so on).

    Kind regards,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top