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

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

1 Answer 43 Views
Map
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin Finke
Top achievements
Rank 1
Kevin Finke asked on 06 Jul 2012, 01:16 PM
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?

Kevin

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 11 Jul 2012, 08:37 AM
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 >>

Tags
Map
Asked by
Kevin Finke
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or