I have a page with telerik rad grid. The get gets auto-refreshed in 5 sec. When i click on the row, the row highlights. But after 5 sec it goes. I want that particular row to remain selected.
What seems to be happening here is that then you auto-refresh the RadGrid it is being rebound and the selection is not being persisted. I believe the easiest way for you to go about persisting this data would be to save the selected rows in a variable on
the client side.
There's a good documentation article that covers how to do this for paging, sorting, and filtering over at the Telerik documentation website, which you can find
right here.
The example could also be adapted to when the RadGrid has finished loading and you manually find the particular row in question and select it. As you can see the
set_selected() function works on a GridDataItem (client-side object for a RadGrid row) to select it.
judejohn
Member
202 Points
161 Posts
TelerikRadGrid
Dec 03, 2011 08:53 AM|LINK
Hi,
I have a page with telerik rad grid. The get gets auto-refreshed in 5 sec. When i click on the row, the row highlights. But after 5 sec it goes. I want that particular row to remain selected.
Plz help.
cbergenhem
Member
6 Points
3 Posts
Re: TelerikRadGrid
Dec 08, 2011 08:35 PM|LINK
What seems to be happening here is that then you auto-refresh the RadGrid it is being rebound and the selection is not being persisted. I believe the easiest way for you to go about persisting this data would be to save the selected rows in a variable on the client side.
There's a good documentation article that covers how to do this for paging, sorting, and filtering over at the Telerik documentation website, which you can find right here.
The example could also be adapted to when the RadGrid has finished loading and you manually find the particular row in question and select it. As you can see the set_selected() function works on a GridDataItem (client-side object for a RadGrid row) to select it.