Hi,
We need to save the full layout information for XamDataGrid, as can be done with DisplayLayout.SaveAsXml for UltraGrid. The XamDataGrid.SaveCustomizations methods seems to save end-users' modifications only, i.e. no programmatic rendering changes are persisted.
Could you please advise on options available?
Thank you.
Best regards,
Adam
Hello Adam,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Hi Stefan,
Your sample seems to work as expected. After I save the original layout and then modify column widths, followed by re-loading the saved layout, the column widths get restored to the values specified in the xaml file (even though the widths are not stored in the layout file). However, my screen and its xaml file are much more complicated and for some unknown reason the column widths do not get restored when re-loading the saved layout. I am now migrating the code from v12.1 to v12.2 and will investigate the problem further once the migration is complete.
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Could you please modify the sample I sent you before, so it reproduces the issue you have, because I wasn't able to reproduce it on my side.
Looking forward for your reply.
Thank you for the sample. We are actually using Infragistics v12.1, but your code works with this version as well.
My problem concerns persisting XamDataGrid layout defined in a xaml file. An end-user can modify the layout and we want to give them an option to conveniently restore the original layout, as defined in the xaml file. The SaveCustomizations method does not seem to work here. Is there another way to do it?