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

Preserve selection state when changing pages

2 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Drazen
Top achievements
Rank 1
Drazen asked on 02 Aug 2010, 11:32 AM
Hi,

we use the latest version of the ASP.NET AJAX product, more specifically the Grid component. We'd like to allow selection of rows in a grid - this functionality is directly supported by the product, be it by client-side scripting or server side.

However, based on your examples, it seems to me that when paging is used, when changing pages the selected state is lost.

Is there a built-in property/method/technique we can use to keep the selected state preserved when changing pages in a paged grid?

Any suggestion is more than welcome.

Thanks in advance,

Drazen

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 02 Aug 2010, 11:40 AM
Hello Drazen,


The documentation describes the technique to persist the selection when paging is occured.
Persisting the selected rows server-side on sorting/paging/filtering/grouping
Persisting the selected rows client-side on sorting/paging/filtering/grouping


Hope this helps,
Shinu.
0
Drazen
Top achievements
Rank 1
answered on 02 Aug 2010, 11:54 AM
Hi Shinu,

thanks, I did not expect to find this in the how-to section (though it's not unreasonable to have it there).

Thanks for a very quick reply.

Regards,

Drazen
Tags
Grid
Asked by
Drazen
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Drazen
Top achievements
Rank 1
Share this question
or