Hello,
I'm trying to do a simple thing : persist the order, width, sorting, visibility, and grouping of the columns of a XamGrid. The purpose is for the user to find its settings back when it starts the application again. My grid contains 50 columns of various types (Text, DateTime, Checkbox, Template, ...) and the problem is that when I use the PersistenceManager.Save(...) without specific settings, the resulting file is almost 8MB and it is very slow to save and load.
I tried the solution described in the post http://es.infragistics.com/community/forums/t/63366.aspx, it doesn't work as expected. It saves the settings but not the actual width, order, etc.
Is there a way to persist only some of the columns properties without persisting the whole object?
Thanks in advance.
Guillaume
Hello Dimpu,
Thank you for your post. I have been looking into it and I can say that this behavior is expected since the persistence settings are applied directly to the Name Column, If you want to persisit all Columns' Tags you should set the persistence settings to the XamGrid.
attached sample is working only for the First column defined under collection columns. i.e Name. it do not persist the Tag for staus. it is coming Null I want to persist the Tag for all the columns defined in Xamgrid.
HI,
Please let me know if you need further assistance regarding this issue.
Sincerely,
Matt Developer Support Engineer
I stored the index of the column in the tag property and saved the tag, visibility and Width properties.
I Wiredup the Persistence Loaded event and used the tag property to set the correct order of the columns.
Please review the attached sample.
Matt
Developer Support Engineer
Well, that does not answer my question completely. I know that I can include or exclude specific properties but my question was specific to the XamGrid. This control contains so many properties that it is difficult to select which ones I should include/exclude in order to persist only what I need (Columns order, width, and visibility).
It would be great to have a sample that exactly does this.