Hi All,
Any one know how to save designed ultragrid layout such as 1.png attached file ? and load back the similar saved layout without to redesign again.
Advance thanks for your assist.
attach.zip
Hello Kelvin Tan,
I'm afraid to say that there is no simpler way to save and restore the expanded state of GroupByRow.
You can see a similar discuion here. You can also find a sample there:https://ko.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/95863/how-to-keep-ultragridgroupbyrow-expanded-even-after-i-refresh-the-layout
I hope this will help.
Best Regards,Noriko I.Infragistics, Inc.
Hi Noriko,
Beside Save/Load methods, have other alternative method to archive above request insetad manually restore?
I'm afraid to say that Save/Load methods preserve layout but do not preserve row states, which means that save methods do not save expansion state.So if you want to do it, you may want to manually iterate through the groups and to store expansion states in some way, and after you recover the layout, you should manually restore the expansion state.
Please let me know if you have any further questions.
Thanks for your reply for my post. I wish to know that the Save/Load method can save and load all the actual output ultragrid layout included the collape/decollape layout?
Eg. Saved layout in collape view. When load back the saved layout is in collape view or auto display in decollape view?
Thank you for contacting Infragistics Developer Support.
In order to save and load the grid's layout, you can use Save/SaveXml and Load/LoadXml methods of UltraGridLayout.
Save Method https://ko.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.ultragridlayout~save
SaveAsXml Method (UltraGridLayout) https://ko.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.ultragridlayout~saveasxml
Load Method https://ko.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.ultragridlayout~load
LoadFromXml Method (UltraGridLayout) https://ko.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.ultragridlayout~loadfromxml
Could you give them a try?I hope this will help.
Best Regards,
Noriko I.Infragistics, Inc.