This question is locked. New answers and comments are not allowed.
Hi.
I am making custom buttons outside the grid for update / edit / cancel.
I can effectively select a row and make it go in edit mode, as well as updating that row when the time comes.
The only thing left is canceling the edit mode on a row.
How would I do so?
This is how I currently edit and update a row and I need to do something similar for the cancel:
$('tr:has(td)', this).live('click', function (e) {
var gridId = e.liveFired.id;
var gridData = $("#" + gridId).data('tGrid');
if(condition)
gridData.editRow($(this));
else if (condition)
gridData.updateRow($(this));
else if(condition)
// PERFORM CANCEL HERE
});
Need some assistance with what I can call in javascript / jquery to cancel a row being edited.
Thanks
I am making custom buttons outside the grid for update / edit / cancel.
I can effectively select a row and make it go in edit mode, as well as updating that row when the time comes.
The only thing left is canceling the edit mode on a row.
How would I do so?
This is how I currently edit and update a row and I need to do something similar for the cancel:
$('tr:has(td)', this).live('click', function (e) {
var gridId = e.liveFired.id;
var gridData = $("#" + gridId).data('tGrid');
if(condition)
gridData.editRow($(this));
else if (condition)
gridData.updateRow($(this));
else if(condition)
// PERFORM CANCEL HERE
});
Need some assistance with what I can call in javascript / jquery to cancel a row being edited.
Thanks