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

kendo grid with delete in toolbar

2 Answers 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 21 Sep 2015, 04:25 PM

Hello, I am trying to put a delete button in a grid toolbar. Here is an example of what am I doing http://dojo.telerik.com/aREne . My problem is when I press delete button a confirmation appears at the bottom but when I confirm the operation nothing happens.?.

What I am missing?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 23 Sep 2015, 03:28 PM

Hello Carlos,

The reason for the issue is that the removeRow method of the Grid accepts the DOM element of the row, that should be deleted, instead of the dataItem associated with it. You could store it in the selectedRow variable. Here is the updated example.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Carlos
Top achievements
Rank 1
answered on 23 Sep 2015, 03:43 PM
Thanks for your help Dimiter!
Tags
Grid
Asked by
Carlos
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Carlos
Top achievements
Rank 1
Share this question
or