Hi,
I have created a Kendo grid, which is editable(inline). For the unique id(which we specify in "model" of grid definition), i have given a column name which has numbers(unique). Now, when the user adds a new row, this particular column has " " value. So, i myself add new values. Whenever some update or delete operations are performed, i need to perform some additional functionalities. So, i use this unique column values to retrieve the old/new row. Now, when i add a row, and update it, it works fine. But, then for the newly added row, if i click on "edit" and then click on "cancel", nothing happens. When i tried searching in source code, i could find that kendo generates some unique id internally, on adding new rows. But, when i click on cancel, the id that was generated by kendo is different. And it does not get the model itself. It is undefined. Can anyone suggest what should be done?
_modelForContainer: function(container) {
var id = (container.is("tr") ? container : container.closest("tr")).attr(kendo.attr("uid"));
return this.dataSource.getByUid(id);
},
In this piece of code(from kendo.grid.js), this.dataSource.getByUid(id) becomes undefined on click of cancel.
Regards,
Khushali
I have created a Kendo grid, which is editable(inline). For the unique id(which we specify in "model" of grid definition), i have given a column name which has numbers(unique). Now, when the user adds a new row, this particular column has " " value. So, i myself add new values. Whenever some update or delete operations are performed, i need to perform some additional functionalities. So, i use this unique column values to retrieve the old/new row. Now, when i add a row, and update it, it works fine. But, then for the newly added row, if i click on "edit" and then click on "cancel", nothing happens. When i tried searching in source code, i could find that kendo generates some unique id internally, on adding new rows. But, when i click on cancel, the id that was generated by kendo is different. And it does not get the model itself. It is undefined. Can anyone suggest what should be done?
_modelForContainer: function(container) {
var id = (container.is("tr") ? container : container.closest("tr")).attr(kendo.attr("uid"));
return this.dataSource.getByUid(id);
},
In this piece of code(from kendo.grid.js), this.dataSource.getByUid(id) becomes undefined on click of cancel.
Regards,
Khushali