Hi
Is there a way to set the display of a grid row to look as if it is selected without using set_selected()?
I have a grid which I am populating on the client. When the user selects a row, I am populating other controls via a RadAjaxPanel (therefore a postback). When the control finishes the postback, the row is no longer selected, so I am storing the index of the row that was selected and during the RadAjaxPanel_OnResponseEnd, I am attempting to reselect the row using set_selected. Works great, except that that fires the event which is causing an indefinite loop of postbacks.
I was hoping that there is a way on the client to set the style of the row to look selected without using set_selected(), hopefully avoiding the problem described above.
This gets me my selectedrow (on the client)
Any ideas?
Is there a way to set the display of a grid row to look as if it is selected without using set_selected()?
I have a grid which I am populating on the client. When the user selects a row, I am populating other controls via a RadAjaxPanel (therefore a postback). When the control finishes the postback, the row is no longer selected, so I am storing the index of the row that was selected and during the RadAjaxPanel_OnResponseEnd, I am attempting to reselect the row using set_selected. Works great, except that that fires the event which is causing an indefinite loop of postbacks.
I was hoping that there is a way on the client to set the style of the row to look selected without using set_selected(), hopefully avoiding the problem described above.
This gets me my selectedrow (on the client)
$find("<%= grdEntityAttributes.ClientID %>").get_masterTableView().get_dataItems()[document.getElementById("selectedRow").value] |
Any ideas?