Ticket Q537003
Visible to All Users

GridView - How to apply GridViewSettings / ClientLayout from database

created 11 years ago

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?

Comments (3)

    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.

    AB AB
    Alexander Bendik 11 years ago

      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.

      Artem (DevExpress Support) 11 years ago

        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'.

        Answers

        created 11 years ago (modified 11 years ago)

        The answer :)

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.