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

[Solved] Retaining selected row on grid after insert/update modal popup

2 Answers 228 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Luke
Top achievements
Rank 2
Luke asked on 04 Apr 2013, 05:45 PM
Hello, one of the requirements for my company's product is that when a user has a row selected in the radgrid, but then does an insert or update via add new record command or the edit button in the edit column, that row remains selected when the modal popup closes.  

I haven't seen any solutions for this in the forums or by web search.  We are utilizing a RadAjaxPanel if that's relevant.  Is there a straightforward way to solve this?

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 09 Apr 2013, 08:32 AM
Hi Luke,

You need to save the selected items in a collection variable and use it when necessary:
http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html
or
http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-on-sorting.html

Here is a sample implementation:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/647760-get-selected-items-through-all-pages.aspx

Hope this helps.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Luke
Top achievements
Rank 2
answered on 09 Apr 2013, 03:38 PM
Thank you very much for your reply.  The server side solution should be appropriate in my case as we need to maintain these across pages in one particular situation, so I might as well solve both problems at once.

Have a great day!
Tags
Grid
Asked by
Luke
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Luke
Top achievements
Rank 2
Share this question
or