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

How to trigger a change event on a child object without the parent?

1 Answer 546 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
fbaptiste
Top achievements
Rank 1
fbaptiste asked on 08 Jan 2015, 12:46 AM
I'm having a scenario where i have a bunch of parent/child viewmodels. and i'm looking for the correct way to trigger a change event on one of the children without raising it on the parent. any way i try this, the parent object is being refreshed as well. is there a way around this behavior?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 09 Jan 2015, 04:11 PM

Hello Fred,

Preventing the propagation of the change event is not possible.

Instead you can workaround this by attaching the change event to the parent and check if the element that was changed is actually some of the children. If it is then you can perform your own logic:

e.g.

http://dojo.telerik.com/@pesho/oMIge

 

Kind Regards,

Petur Subev

Telerik

 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MVVM
Asked by
fbaptiste
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or