Hi,
I'm trying to select radgridview row programmatically on client side with DataKeyValue.
I'd like the selected row background to be modified also.
Using RadControls for ASP.NET AJAX Q1 2013. Here is my sample code, but not working properly:
Any idea?
Thank you.
KR,
JC
I'm trying to select radgridview row programmatically on client side with DataKeyValue.
I'd like the selected row background to be modified also.
Using RadControls for ASP.NET AJAX Q1 2013. Here is my sample code, but not working properly:
var Rows = $find("<%=RadGrid1.ClientID %>").get_masterTableView().get_dataItems();
for (var i = 0; i <
Rows.length
; i++) {
var
row
=
Rows
[i];
if (row != null && row.getDataKeyValue("Id") != null && row.getDataKeyValue("Id") == id) {
$find("<%=RadGrid1.ClientID %>").get_masterTableView().get_dataItems()[i].set_selected("true");
break;
}
}
Any idea?
Thank you.
KR,
JC