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

Issues Persisting RadGrid state to a database

1 Answer 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 27 Sep 2012, 03:56 PM
I have a similar problem. I can get the RadGrid to persist through refreshses and rebinding of data (sorting, filtering, grouping, expansion etc) using an ICustomPropertyProvider. What I want to do, however, is serialize the Stream created by the PersistenceManager.Save() method to a database so that when a user logs in later their settings are loaded from that Stream. That does not appear to work however as a lot of the information I would need preserved does not appear to exist on that serialized string.

Is there a way to persist this information between program sessions? If so do you have a simple working code example that can show we what I need to do? For the life of me I cannot find a simple solution to this issue.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 02 Oct 2012, 12:38 PM
Hello Andrew,

I am not sure why you need to serialize the stream created by the PersistenceFramework. Basically this stream contains all persisted data serialized in a stream so you can just save that stream into your database.

Also, if the PersistenceManager doesn't save all RadGridView properties you need, you can extend the GridViewCustomPropertyProvder to define which properties should be persisted and how.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Andrew
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or