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

Radgrid paging

3 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 04 Dec 2009, 04:12 AM
Hello,

To persist items selected across paging, I used an arraylist and the code works fine.

But the proble is once I 've added some griditems and checked the gridclientselectcolumn. in edit mode, I need to retrieve the selecteditems from the array list which is also I found out.

But now the problem is I retrieve the items from database and bind them to the grid in edit mode but if user deselects an item which is already saved, how do I get that.

And also pls let me know why the below code is not working.

m_radRecipientGrid.Mastertableview.Allowpaging = false;

do some coding

m_radRecipientGrid.Mastertableview.Allowpaging = true;

But my grid never disables paging. what should I do to temporarily disable paging , do some work and then enable agin.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 Dec 2009, 08:19 AM
Hi Zaheka,

RadGrid loses its current selection when the data is sorted, a new group or filter is added, or when the current page changes. If you want the selection to persist across these events, please refer to these help articles:
Persisting the selected rows server-side on sorting/paging/filtering/grouping
Persisting the selected rows client-side on sorting/paging/filtering/grouping

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Princy
Top achievements
Rank 2
answered on 04 Dec 2009, 09:03 AM
Hello Zaheka,

You can check the code provided in the following help document to retrieve the deselected items from the saved arraylist:
Persisting the selected rows server-side on sorting/paging/filtering/grouping

Inorder to disable/enable paging, rebind the grid after setting the AllowPaging property of the grid to false/true :
c#:
m_radRecipientGrid.Mastertableview.Allowpaging = false;
m_radRecipientGrid.Rebind();


Hope this helps..
Princy
0
saggiatorius
Top achievements
Rank 1
answered on 23 Apr 2010, 11:08 AM
Great idea, but rebinding grid creates a problem for me because it makes me lose the temporary data of the row in edit mode (I don't want to save them in a session costant).

Is there a way to refresh just the interface of the grid and not the data (i.e. rebind)?

Thanks
Tags
Grid
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Princy
Top achievements
Rank 2
saggiatorius
Top achievements
Rank 1
Share this question
or