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