Hello,
we have a problem with the PersistanceManager. We use it to store the layout of a XamGrid.
The stored layout is loaded when the window including the XamGrid is initialized. Afterwards, the window can be filled with different data.
Saving / loading the layout with the PersistanceManager works fine.
But there seems to be an error with invalid saved layouts. With some specific layouts, the table will stay empty.
Error case:
1) customize a XamGrid table by e.g. making the columns wider or smaller
2) close window, layout gets saved
3) open window, layout gets loaded, grid gets shown with the previous customization
4) when grid gets filled with data, it stays EMPTY (invisible?)
We were not able to find out with what kind of customization makes this trouble, but we saved some of the XMLs which caused this trouble.
I added working + not working layout files as attachment.
We compared the files with working versions, and there is only very little difference (e.g. only 1 additional column changed which results in a few more lines in the XML).
When removing some of the newly added files of not working layout xmls compared to the working layout xmls, they sometimes work start again. (The data in the xamgrid is visible again).
Why is this happening? What can we do to avoid this?
Please let me know if you need any more information.
Regards,
AVL Development Team
Additional information:
This bug occures with probably every 20th saved layout.
So the code itself is working in 95% of the cases, only sometimes with specific layouts the data in the xamgrid will be invisible ( which can be consistantly reproduced).
I am going to be debugging your sample today. Ideally we will need a sample that reproduces an issue 100% of the time to ensure what we intend to fix is viable. Let me know if this is something you have time to work on or not. I'll follow up tomorrow regarding my progress.
Let me know if you have any questions regarding this matter.
There doesn't appear to be a sample attached. Is there anyway you can provide one in order to test against your layout files?
Let me know if you have any questions.
If possible, please provide a working sample that saves and loads your layout files in order for myself and my team to test.
Otherwise I will begin working on building a sample today in an attempt to reproduce the behavior. I will follow up tomorrow at the latest regarding my progress. Let me know if you have any additional questions regarding this matter.
Attached to my first post is "LayoutFiles.zip". This includes 8 XMLs for the xamgrids, some of them working and some not, which can be seen by their name (for me 100% reproducable).