New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
cancelUpdate
Updated over 6 months ago
Method which cancels the update for the edited table row passed as an argument or the row corresponding to the index passed as an argument.
| cancelUpdate(gridItem)or cancelUpdate(index) | ||
|---|---|---|
| gridItem | HTML row object - | |
| The edited row that will be switched in non-editable mode. | ||
| index | Integer | The row corresponding to the index will be switched in non-editable mode. |
Example:
JavaScript
function CancelUpdateForFirstItem() {
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
masterTable.cancelUpdate(masterTable.get_dataItems()[0].get_element());
}