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

Destroy is not working in kendo grid, using rails and kendo UI gem

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 16 Jun 2014, 07:43 PM
I can not get the destroy event to work in the transporter.  I am using the Kendo-UI gem, and have followed the documentation.  The read is working fine and all data is getting set to the grid correct.  But I can not get destroy to work.  I am also unsure as to what the parameterMap is supposed to be doing but that is not getting triggered when the delete button is hit.  I have been stuck for quite some time, any pointers would be extremely helpful.  Below is a gist to my code, note I have hardcoded the id's into the urls for the time being just trying to get it to work.  

Thanks

https://gist.github.com/sdanko11/ae7da21c889f8a4416f3

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 18 Jun 2014, 05:09 PM
Hello Steve,

I noticed that you are initializing Grid widget twice for the same DOM element which is not supported.
$("#grid3").kendoGrid({
 
});
  
  
$("#grid3").kendoGrid({
 
});

Please make sure that the Grid is initialized only once and its editable feature is turned on. In case you are using "incell" editing, the synchronization will be triggered once the user presses "save changes" button of the Grid or the developer calls saveChange method of the widget.

I hope this information will help.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or