Hello,
I want to set a row of my RadGrid to EditMode when I select it.
I write this script function that occour OnRowSelected clientevent
My problem is that the eventArgs is always NULL. Can you tell me why this occour? I search on internet a different method to access to the selected row for open it in editmode onrowselected event but I can't find anything.
Best Regards
archimede
I want to set a row of my RadGrid to EditMode when I select it.
I write this script function that occour OnRowSelected clientevent
function RowClick(sender, eventArgs) |
{ |
if(editedRow && hasChanges) |
{ |
if(confirm("Update changes?")) |
{ |
hasChanges = false; |
$find("<%= GridName.MasterTableView.ClientID %>").updateItem(editedRow); |
} |
else |
{ |
hasChanges = false; |
} |
} |
if(eventArgs != null){ |
alert("eventOK"); |
}else{ |
alert("eventNULL"); |
} |
editedRow = eventArgs.get_ItemIndexHierarchical(); |
$find("<%= GridName.MasterTableView.ClientID %>").editItem(editedRow); |
} |
Best Regards
archimede