Restore Layout from xml is not working properly in pivot grid.I am able to save layout using SaveLayoutToXml('filename') but once i try to restore saved layout using RestoreLayoutFromXml('filename') on Pivot grid, it is not getting reflected in grid. Please suggest.
Thanks.
I am afraid that I cannot replicate the problem on my side. I have attached a sample project, which works fine for me. Please change it to replicate the problem or provide us with your sample project replicating the issue. We will review it and do our best to find a solution for you.
I am awaiting your response.
Thanks for your response.
Still i am not able restore layout after applying same thing which you mentioned in sample project, however i can able to reload layout in simple WPF application, but i am using MVVM pattern in my project and have written same code in view model class but restore layout functionality is not getting reflected, is there anything else need to be taken care in this scenario? Please suggest.
Please make sure that the unique PivotGridField.Name property is specified for all fields. In addition, please check whether the PivotSerializationOptions.AddNewFields and PivotSerializationOptions.RemoveOldFields attached properties affect this behavior.
it's working fine now after applying PivotSerializationOptions.RemoveOldFields, PivotSerializationOptions.AddNewFields & PivotSerializationOptions.StoreLayoutMode on grid, Ref: http://documentation.devexpress.com/#wpf/CustomDocument8023
Thanks for your duly support.
You are welcome, Jyotdeep
I am happy to hear that my assistance was helpful for you. Thank you for informing me.
Thanks,
Constant
Hi,
I am trying to implement the same functionality (save and load layout) for GridControl and TreeListControl as well. But, these settings are not having any effect.
Can you please suggest, how do I achieve this functionality for Grid and TreeList controls?
Thanks,
Jyotdeep Singh
It appears that this question is not connected directly to the subject of the thread. To avoid any possible misunderstanding in our following discussion, I have created a separate thread for your second question and will answer you there ASAP. I would like to ask you to create a separate thread for each question, suggestion, or bug you want to ask in the future. Thank you for your cooperation.
RestoreLayout not working in WPF GridControl
RestoreLayout not working in WPF TreeListControl