4 Answers, 1 is accepted
0
Accepted
Hello David,
Once you have the UID you can get the corresponding model view DataSource API, and then remove it.
Regards,
Nikolay Rusev
the Telerik team
Once you have the UID you can get the corresponding model view DataSource API, and then remove it.
Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
David
Top achievements
Rank 1
answered on 11 Jan 2013, 04:15 PM
var dataRow = $('#grid').data("kendoGrid").dataSource.getByUid(uid);
$('#grid').data("kendoGrid").dataSource.remove(dataRow);
$('#grid').data("kendoGrid").dataSource.remove(dataRow);
0
Darren
Top achievements
Rank 1
answered on 17 Dec 2015, 02:15 PM
I do :
var activeRow = $(obv.gridInstance.element).find("tr.k-grid-edit-row");
obv.gridInstance.removeRow(activeRow);
And even though this works on the UI and the row does get removed,
I also get this javascript error: Cannot read property 'call' of undefined on the kendo.all.min.js
So there is an internal kendo bug there that you guys need to fix.
0
Hello Darren,
We are not aware of such issue. Please submit a new support ticket with a isolated runnable example of the error.
Regards,
Nikolay Rusev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!