Hello!
We use GridView and want to store GridViewSettings in the database. But in fact no matter where to save the settings (via Cookies, in XML-file, in the database) Gridview does not apply them, for example, like this:
settings.ClientLayout = (sender, e) =>
{
if (e.LayoutMode == ClientLayoutMode.Saving)
{
// Save Layout here
}
else
{
// Load Layout here
}
};
BTW this issue was discussed three years ago: http://www.devexpress.com/Support/Center/Question/Details/Q335692
But as I see, the appropriate solution was not found…
What would you suggest?
Hello,
I believe that the issue is related to a problem in older builds.
Would you please describe your scenario in greater detail?
- What does the issue look like? Please make a detailed screencast that illustrates how to reproduce this issue from scratch (for example, use the Jing tool for this purpose).
- Specify the DevExpress Version/Build you are using.
- Provide us with a simple working project that illustrates the issue in action (or at least the full GridView definition).
Your time and cooperation are greatly appreciated.
Hello,
I guess we have managed to cope with the issue and delivered a working example.
Maybe it will be useful for someone, so I'll attach it here.
In the example the first grid uses cookies, and the user settings are saved. The second grid uses a string of settings, which is saved in the public static property (cookies are disabled).
Anyway, thanks for a quick answer.
Hello Alexander,
Thank you for sharing your solution with us. I believe it will be useful for other users.
You can post your previous comment as an Answer and mark it as a Solution. Your question status will immediately become 'Closed'.