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

Invoke Apply() in CustomMapping

2 Answers 14 Views
TreeMap and PivotMap
This is a migrated thread and some comments may be shown as answers.
Was
Top achievements
Rank 1
Was asked on 16 Sep 2014, 08:10 AM
I use TreeMap with CustomMapping that marks selected items with an image (see att)

When loading Data, it works, but how can i change property of DataModel so it would invoke Apply() method of CustomMapping?

I mean, when the property of DataItem is changed, i'd like to check it again in Apply() method of CustomMapping.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 18 Sep 2014, 07:07 AM
Hi Was,

Unfortunately there is no public api that will allow you to execute the Apply logic. The Apply method is executed when the Mappings are modified (add, remove, clear), when the LayoutStrategies are modified (add, remove, clear) and when a property of the TreeMapData changes.

I think that it would be much easier if you could implement this PropertyChanged logic in your DataTemplate and have the image reload when the property in mind changes. Let us know how it goes.

Regards,
Petar Marchev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Was
Top achievements
Rank 1
answered on 19 Sep 2014, 07:12 AM
Thanks, Petar, i just re-add mapping and everything works great
Tags
TreeMap and PivotMap
Asked by
Was
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Was
Top achievements
Rank 1
Share this question
or