Ticket Q474361
Visible to All Users

Saving a gallery control for future reload

created 12 years ago

Hi,
I am trying to save a gallery control along with all its settings, groups and items before destroying it, so that I can reload it from memory later without having to recreate. I know there has to be an easy way for doing this but I can't seem to figure it out.

Thanks in advance for your help.

Sincerely,
Martin

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

Hello Martin,
Thank you for your message. As far as I understand you wish save the layout of your GalleryControl and restore it programmatically. So, to resolve this issue, I suggest you save all GalleryControl groups to a list and then restore it for the required control. I have attached a simple project to illustrate how this works. I hope it will be helpful to you.
I'm looking forward to your reply.

    Comments (2)

      Works like a charm!! Thanks. :)

      DevExpress Support Team 12 years ago

        Hello Martin,
        I'm glad to hear that my assistance was helpful to you. Feel free to contact us if you have further questions.

        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.