How to update and delete current array item

2 posts, 1 answers
  1. David A.
    David A. avatar
    126 posts
    Member since:
    Aug 2008

    Posted 26 Jul 2013 Link to this post

    Hi,
    I have a master/detail scenario where I am trying to access the "current" array item and either update or delete it.  The update/delete buttons are outside of the template so I am not sure how to accomplish this.

    I have prepared a jsbin that has an array of names that can be added to and edited, but I cant update or delete.  Any help would be appreciated!

    http://jsbin.com/aligem/241/edit

    Thank you,
    David A.
  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 30 Jul 2013 Link to this post

    Hello David,

    In order to achieve this it is recommended to save the object itself not only the Name. Hence it could be directly used for the update operation. Regarding the delete operation, additional custom logic should be used. A possible implementation can be found in the updated jsBin example - feel free to modify the example according the current needs. 

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