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

How to update and delete current array item

1 Answer 160 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
David A.
Top achievements
Rank 1
David A. asked on 26 Jul 2013, 05:02 AM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 30 Jul 2013, 12:22 PM
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!
Tags
MVVM
Asked by
David A.
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or