We have a XamGrid where we have added an additional custom column. The column simply contains a checkbox. If the user checks the checkbox, it indicates they want to perform an action on that row. It's based on this:
http://es.infragistics.com/community/forums/p/52125/271646.aspx
This all works fine, except when we attempt to persist the XamGrid settings. Some things work. Sort order seems to get persisted correctly, for example, but column moving settings and column hiding settings do not. If we remove this column, the grid saves everything correctly.
I noticed that when we do not include the column, MemoryStream contains 822517 bytes after PersistenceManager.Save. When we include the column, the stream is only 263782 bytes. Clearly, something pretty significant is not getting saved, but it's not clear what. I can't seem to get any exceptions to fire. How am I supposed to troubleshoot this?
I am using version 13.1.20131.1003.
Hello jbaumgartner,
Thank you for your post!
I have been looking into it, currently the XamGrid has a build-in functionality for the custom column you have mentioned. The xamGrid has a CheckboxColumn, that you can use to show checkboxes in the grids cells. On the following link from our documentation you can find more information about this column: http://help.infragistics.com/Help/Doc/Silverlight/2014.1/CLR4.0/html/InfragisticsSL5.Controls.Grids.XamGrid.v14.1~Infragistics.Controls.Grids.CheckBoxColumn~_ctor.html.
I have created a small sample application for you to show you this type of column. Please find the attached sample application and feel free to let me know if you have any further questions on this matter.
I am aware of the CheckboxColumn. Please look at the thread I mentioned earlier. The checkbox is not bound to anything on the record. It is used to indicate that the user would like to perform an action upon that record. Sort of like in Gmail, how you can select records to delete them or mark them as spam, etc.
In your example, the Worker class would not have an "IsChecked" field, but a checkbox would still appear to let me work on that record.
The thread linked at the top of this one contains a sample app created by Infragistics. Specifically, it contains the CheckboxStateColumn, and the related classes. This is working for me, except that it is preventing the XamGrid from persisting its data.
Even if you don't have an answer right now, I would appreciate some tips on how to go about troubleshooting this. I can't seem to get any useful diagnostic data.
Thanks.