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

[Solved] Grid rebind - Page next will default.

2 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
murali
Top achievements
Rank 1
murali asked on 20 May 2011, 03:31 AM
Hello All,

I will try my best to explain my issue. I am currently on version 2011.1.315

I have a simple grid with Ajax binding and the grid also has a detail view. The grid loads data for the past 10 days.
On my page I have a button which will allow user to pick a date range to view the data in the grid. This works fine, I am doing a rebind on the grid with the new date range selected by the user.

But when I click on the next page link my grid will default to original dates that where used while loading the page for the first time, the new date range selected by the user is not honored any more.

I am using ViewData to store my dates, I am also passing the AntiForgeryToken on OnBinding event. I am not able to figure out what is causing the dates to default.

Thank you for all your help.
mm

2 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 20 May 2011, 09:52 AM
Hi mm,

I suspect that you are using ajax binding. In such case you should pass the additional parameters through DataBinding event, as shown in this online demo.

If you continue to experiencing difficulties please provide a small sample in which the issue can be observed. 

Regards,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
murali
Top achievements
Rank 1
answered on 23 May 2011, 03:34 PM
Thank you Rosen, that worked.

Murali.
Tags
Grid
Asked by
murali
Top achievements
Rank 1
Answers by
Rosen
Telerik team
murali
Top achievements
Rank 1
Share this question
or