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

2 posts, 0 answers
  1. fbaptiste
    fbaptiste avatar
    19 posts
    Member since:
    Apr 2007

    Posted 07 Jan 2015 Link to this post

    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?
  2. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 09 Jan 2015 Link to this post

    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:



    Kind Regards,

    Petur Subev


    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top