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

[Solved] How to Preserve grid state when returning to grid view?

5 Answers 153 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.
hjbaard
Top achievements
Rank 1
hjbaard asked on 23 Aug 2011, 02:20 PM
Hi,

I have a grid view which shows all my customers. When I click one customer I go to an edit view where the user can edit the customer or can go back to the grid view. But when the user goes back the grid is back in its default state for sorting, paging and filtering.

How can I keep the grid state before the user went to the edit view?

I saw similar questions (some with answers) on this forum but none seems to work for me, and most are not answered.

Thanks,
Henk Jan Baard

5 Answers, 1 is accepted

Sort by
0
hjbaard
Top achievements
Rank 1
answered on 25 Aug 2011, 07:08 AM
Isn't there a solution for this problem? I asume I'm not the only one with this problem!
0
Atanas Korchev
Telerik team
answered on 25 Aug 2011, 04:37 PM
Hello Hjbaard,

 I have created a code library project which shows how to do this. The idea is to add the grid state (page, filter etc) to the query string - the grid will do the same.

Regards,
Atanas Korchev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
ashes
Top achievements
Rank 1
answered on 06 Sep 2011, 06:51 AM
I cannt open your Project in VS 2010 . I am using VS 2010 Professional , ASP.NET MVC 2.0 , .NET 4.0 Framework , Telerik Version 2010.3.1317.0 . Please upload a project with runnable environment for the users
0
Atanas Korchev
Telerik team
answered on 06 Sep 2011, 06:53 AM
Hi Ashes,

 The uploaded project is using ASP.NET MVC 3. Please consider installing the same in order to run the project.

Regards,
Atanas Korchev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
ashes
Top achievements
Rank 1
answered on 07 Sep 2011, 07:49 AM
Can you upload a similar project for MVC 2 also . I can not use MVC 3 as I have to specifically use MVC 2 for my professional project . Besides that this perticular " ERROR " is bound to happen in any case whether a developer is using MVC 2 or MVC 3 . You simply can not ask users to change from MVC 2 to MVC 3  
Tags
Grid
Asked by
hjbaard
Top achievements
Rank 1
Answers by
hjbaard
Top achievements
Rank 1
Atanas Korchev
Telerik team
ashes
Top achievements
Rank 1
Share this question
or