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://ko.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.
I have been looking into your issue. I have modified the sample application from the mentioned forum thread. I have added persistence settings to the sample. I have tested the sample application with Infragistics version 13.1.2310, which is the latest service release available for version 13.1 and everything seems to work as expected.
I have created a small video for you to see the behavior on my side. I am attaching the application I have been testing with too. Would you please do modify the sample application with the functionality you are using, so it reproduces the issue? This way I would be able to further investigate this issue for you and provide you with further support.
Thank you for the cooperation. Looking forward to hearing from you.
I was able to figure out a workaround, using XAML Spy. It appears that after a PersistenceManager.Load call, the grid was disabling itself. I have no idea why, but I just added a call to set IsEnabled to true again after the Load, and now it works.
Seems like a bug to me, but I don't know.
Thank you for the feedback. I am glad you have found a solution to your issue. Please do not hesitate to let me know if you have any further questions on this matter.