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

How to persist the row selected after post back of the page

1 Answer 397 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ABU
Top achievements
Rank 1
ABU asked on 01 Feb 2018, 06:04 PM

Have a telerik grid , has 500 records & applied page size of 50,

columns  like

LocationID, State, Dist & City

Now the Question  is:

On Result screen :

Populated the grid with above column values.

After Databind

Step 1 ) applied sort function on LocationID column

    - as expected  results got re-arranged in a desc. order.

Step 2) selected  a row  , where the location id is  452 .

Step 3 ) - Navigated to next page & passed the location id thru session & Page-2 did some functions

Step 4) Coming back to result screen

Step 5) Now i need to select /high-light  the previously selected row ( ie LocationID-452)

 - since im rebinding the grid on post back ,

i couldn't get the row ( lost sorting filter values)  & selected based on the LocationID- 452

Can someone pls help on this situation.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 06 Feb 2018, 06:50 AM
Hello Abu,

You can achieve this requirement using the following approach:
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/Selecting/persisting-selected-rows-client-side

You can download and examine the RadGridGetAllSelectedItemsImproved.zip web site sample provided here for a practical implementation:
https://www.telerik.com/support/code-library/get-selected-items-through-all-pages#1eTU8nr-GUG8zfGgOGbIcA

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
ABU
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or