Hi,
I need to implement a general mechanism to persist column selections, sorted columns etc. of XamDataGrid, placements of DockManager's panels etc. The application is based on .Net Framework 4.0 and using Microsoft PRISM framework for plug-ins. The GUI is based on Infragistics WPF controls. During web search, I found at least two suitable options. The first one is to store the MemoryStream of PersistentManager to an IsolatedStorageFile. The second option is to create a property under userSettings for every control and store the XML of PersistentManager into it as string. The second option gives me additional control when upgrading the application to a newer version and works for other user properties as well. While I saw the first option described well in your forums and blog posts for persistence.
I would appreciate if you can share your thoughts which one of two options seems good.
Best,
Allana
Hello Allana,
I am just checking if you require any further assistance on the matter.
Hi Allana,
Thank you for your clarifications. I have been looking into your concerns and I believe that there is no significant difference between the two approaches. It is a matter of choice that depends on your application architecture and your needs. Most of our samples use isolated storage.
Please note that the Persistence Framework does not provide full support for the controls that are specific to the NetAdvantage for WPF(e.g. XamDataGrid) and are not cross-platforms controls.
Let me know, if you need any further assistance on this matter.
Hi Younko,
Basically, my question is related to the underlying file stream while the thread you have suggested explains how to save and load layouts on a stream. The stream could be an IsolatedStorageFile or it could be a .Net Configuration property to hold the stream as a string or XML document.
I rephrase my question for your convenience as follows. Which way is better to save XamDataGrid layout, on a IsolatedStorageFileStream or as a string in .Net Configuration Property? Please keep in mind that the application is running on Windows 7 and I would like to save user's customizations related to XamDataGrid and other Infragistics Controls.
Your prompt reply is highly appreciated.
Allana.
Thank you for your post. I have been looking into your question and my suggestion is to use the built-in save/load layout customizations as suggested in the following forum thread:
http://es.infragistics.com/community/forums/t/83754.aspx
You could find more detailed in the following links from our online documentation:
http://help.infragistics.com/Help/Doc/WPF/2014.2/CLR4.0/html/xamDataPresenter_Save_Field_Customizations.html
http://help.infragistics.com/Help/Doc/WPF/2014.2/CLR4.0/html/xamDataPresenter_Load_Field_Customizations.html