RadControls for ASP.NET AJAX
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 - <tr> | The row that will be switched in edit mode. |
index | Integer |
The row corresponding to the index will be switched in edit mode.
|
Example:
CopyJavaScript
function EditFirstItem() {
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
masterTable.editItem(masterTable.get_dataItems()[0].get_element());
}