I have a XamDataGrid that I create fields dynamically. The problem is that when I save a layout and try to reload it. If the dynamic fields changed, added or removed, then the customized layout will not work any longer. Is there a way to fix this? I am using version 10.3.
Hello Paul,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Yes, it should. The SaveCustomizations method takes all Fields of the Grid, no matter they are added in XAML or code.
I haven't had the time to run through this example. Will this also take care of the fields that added to the grid at runtime?
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.
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically the generated xml file from the SaveCustomizations method is modified so the fields that are no longer available are removed. This way it could be passed to the LoadCistomizations method and be loaded from the XamDataGrid. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.