Good morning:
Has anyone found a good solution for remembering the parameters that were set in the last grid a user worked with? We're using a pretty simple grid, with filtering, sorting, and paging enabled. When a user clicks away from the grid page to edit a record on a different page for instance, we'd like to be able to load the page the next time they return to the same grid they were working with when they left, with the sorting, filtering, and paging applied correctly.
We do this with some custom repeater controls we built by using a series of querystring variables, which I guess we could do again here. Any thoughts you guys have would be helpful.
Thanks; happy Good Friday.
Brad
Has anyone found a good solution for remembering the parameters that were set in the last grid a user worked with? We're using a pretty simple grid, with filtering, sorting, and paging enabled. When a user clicks away from the grid page to edit a record on a different page for instance, we'd like to be able to load the page the next time they return to the same grid they were working with when they left, with the sorting, filtering, and paging applied correctly.
We do this with some custom repeater controls we built by using a series of querystring variables, which I guess we could do again here. Any thoughts you guys have would be helpful.
Thanks; happy Good Friday.
Brad
12 Answers, 1 is accepted
0
Hello Brad,
Please, find attached a working application which handles the desired functionality. Give it a try and let me know if it works for you.
I hope this helps.
Kind regards,
Pavlina
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.
Please, find attached a working application which handles the desired functionality. Give it a try and let me know if it works for you.
I hope this helps.
Kind regards,
Pavlina
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

Brad
Top achievements
Rank 1
answered on 06 Jul 2010, 07:14 PM
Hi guys:
Any chance you have a VB version of this floating around? I've tried converting your C# class files but I'm bonking on a few lines and it's taking me a lot longer than I had hoped.
Thanks in advance for your help? If it's easier, perhaps I can post the class conversions to see if you guys can get the bug worked out?
Brad
Any chance you have a VB version of this floating around? I've tried converting your C# class files but I'm bonking on a few lines and it's taking me a lot longer than I had hoped.
Thanks in advance for your help? If it's easier, perhaps I can post the class conversions to see if you guys can get the bug worked out?
Brad
0
Hello Brad,
I suggest that you review the VB code in the following online example, which elaborates on this subject and see if it helps:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx
Greetings,
Pavlina
the Telerik team
I suggest that you review the VB code in the following online example, which elaborates on this subject and see if it helps:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx
Greetings,
Pavlina
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

Brad
Top achievements
Rank 1
answered on 13 Aug 2010, 09:05 PM
Hi guys:
I tried your demo but the online version doesn't seem to work. If I change the drop down menu to user 2, add a "Contains B" filter in the first column and then save my settings, it appears to work. Then if I clear the filter and then use the Load Settings button, it tells me that the settings were restored by my filter criteria isn't remembered.
Any idea what's up?
Brad
I tried your demo but the online version doesn't seem to work. If I change the drop down menu to user 2, add a "Contains B" filter in the first column and then save my settings, it appears to work. Then if I clear the filter and then use the Load Settings button, it tells me that the settings were restored by my filter criteria isn't remembered.
Any idea what's up?
Brad
0
Hello Brad,
I followed your steps in order to replicate the described issue, but to no avail. Please examine this video and let me know if I am leaving something out while testing.
Greetings,
Pavlina
the Telerik team
I followed your steps in order to replicate the described issue, but to no avail. Please examine this video and let me know if I am leaving something out while testing.
Greetings,
Pavlina
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

Brad
Top achievements
Rank 1
answered on 18 Aug 2010, 11:45 PM
Hmm, not sure why it worked for you and not for me. When I tried it today it was successful.
If I wanted the grid to save the settings before the user left the page, and then reload them the next time, where would you recommend placing the load/save calls within the grid lifecyle? So essentially, each time the grid was either sorted or filtered I'd like to save the settings, and then I'd like to reload them each time the user returns to the page.
Let me know what you recommend. Thanks again.
Brad
If I wanted the grid to save the settings before the user left the page, and then reload them the next time, where would you recommend placing the load/save calls within the grid lifecyle? So essentially, each time the grid was either sorted or filtered I'd like to save the settings, and then I'd like to reload them each time the user returns to the page.
Let me know what you recommend. Thanks again.
Brad
0

Don Cote
Top achievements
Rank 1
answered on 19 Aug 2010, 06:16 PM
Is there a way to save the settings but not the data?
0

Shinu
Top achievements
Rank 2
answered on 20 Aug 2010, 07:44 AM
Hello don,
I hope the following documentation will help you in saving grid settings.
Saving grid settings on a per user basis
-Shinu.
I hope the following documentation will help you in saving grid settings.
Saving grid settings on a per user basis
-Shinu.
0

Brad
Top achievements
Rank 1
answered on 24 Aug 2010, 05:25 AM
Pavlina:
Sorry to keep hitting you with what must seem like rudimentary questions, but I'm touching this project sporadically when time permits because we're not getting paid for it.
I have implemented the VB persister and changed the classes so I'm saving the string to the users database record so it can be retrieved when I need it. However, since I'm using the NeedDataSource event from my CodeBehind I think I'm missing a key step.
When I call the "load" settings routine I don't actually see them applied until I cause a rebinding (I'm firing them from a linkbutton). How should I apply the persisted settings and force the grid to rebind so it calls the NeedDataSource event again?
Brad
Sorry to keep hitting you with what must seem like rudimentary questions, but I'm touching this project sporadically when time permits because we're not getting paid for it.
I have implemented the VB persister and changed the classes so I'm saving the string to the users database record so it can be retrieved when I need it. However, since I'm using the NeedDataSource event from my CodeBehind I think I'm missing a key step.
When I call the "load" settings routine I don't actually see them applied until I cause a rebinding (I'm firing them from a linkbutton). How should I apply the persisted settings and force the grid to rebind so it calls the NeedDataSource event again?
Brad
0

Brad
Top achievements
Rank 1
answered on 24 Aug 2010, 05:30 AM
Me = stoopid. I figured it out while writing that last post.
Have a nice night.
Brad
Have a nice night.
Brad
0

Brad
Top achievements
Rank 1
answered on 24 Aug 2010, 06:01 AM
So now maybe me <> stoopid.
When I call the persister function it appears to be setting the values in the filter text boxes on the grid, but the grid data isn't conforming to those criteria. To elaborate, I've tried calling the persister function on page load, Init, and within the NeedDataSource event, but none of them seem to apply the filter criteria to the data in the grid, even though the persisted strings are written to the filter boxes.
Any ideas?
When I call the persister function it appears to be setting the values in the filter text boxes on the grid, but the grid data isn't conforming to those criteria. To elaborate, I've tried calling the persister function on page load, Init, and within the NeedDataSource event, but none of them seem to apply the filter criteria to the data in the grid, even though the persisted strings are written to the filter boxes.
Any ideas?
0
Hello Brad,
I have already answered your support ticket with the same question. Therefore, to avoid duplicate posts I will ask you to continue our communication there if you do not mind.
Regards,
Pavlina
the Telerik team
I have already answered your support ticket with the same question. Therefore, to avoid duplicate posts I will ask you to continue our communication there if you do not mind.
Regards,
Pavlina
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