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

rerender symbol on data item change

1 Answer 3 Views
Map
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 06 Jul 2015, 09:25 PM
Is there a way to rerender a symbol on a bubble layer when the data item for it is changed?  I can probably make it work by copying the whole data source, emptying it, and then copying it back in with the updated values, but that seems like overkill.  I just want to be able to change things on some symbols.

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 08 Jul 2015, 02:22 PM
Hello,

One approach would be to change individual model items. The layer will be repainted accordingly:
  BLOCKS.data()[0].set("Location", [0, 0]);

Alternatively, you can keep a reference to the rendered visual. It remains live and will respond to changes, e.g.
  symbol.children[1].text("Foo");

I hope this helps.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Map
Asked by
Matt
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or