This is a migrated thread and some comments may be shown as answers.

[Solved] RadGrid row has selected value true but the row is not highlighted

1 Answer 132 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prakash Anandan
Top achievements
Rank 1
Prakash Anandan asked on 16 Jul 2009, 03:38 PM
Hi,

I'm currently using Q3 2008 Ajax RadGrid in my application. As a requirement I have to remember the selected row in the RadGrid when the user leaves the page and comes back. To achieve this, I'm storing the selected row's datakeyname in the Session and reading back from the session when the user comes back to the page. Once I read back the datakeyname from the session I go through each row in the grid and select the row that matched the datakeyname. This was working fine until I migrated from Classic ASP.NET Radcontrols to 2008 Q3 Ajax version. Now after migration it seem the selection is happening but the item is not highlighted in the UI.

Does anyone has similar problem like the one I'm having and any idea how to solve this issue?

kind regards
prakash

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 21 Jul 2009, 03:34 PM
Hello Prakash,

I think that you can use the approach presented in this code library entry:

http://www.telerik.com/community/code-library/aspnet-ajax/grid/retain-expanded-selected-state-in-hierarchy-on-rebind.aspx

to store the indices of the selected grid items and restore them at a later stage of the lifecycle. Feel free to modify/expand the solution to meet your custom project schema.

Regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Prakash Anandan
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or