I have a grid where I'd like to keep using Autogenerated=true when binding to my datasource.
I've set the Fieldsettings to AllowEdit=false to prevent inline fields being edited, but I would like to enable some checkboxes given its data.record meets a particular condition.
For example: Enable checkboxes only when Id > 100 (dashes are disabled checkboxes, brackets are enabled checkboxes)
chkbox Id Date otherstuff...
- 20 1/10/2015 test
- 99 1/5/2015 stuff
[v] 101 1/4/2015 notes
Is this possible? And can I bind a command to the checkbox event to capture this change while conforming to MVVM pattern?
Hello Patrick,
I am glad to know you were able to solve your issue. I believe this thread can help other people looking for a similar solution.
If you require any further assistance on the matter, please let me know.
I changed the default RecordContainerGenerationMode to "LazyLoad" and this seem to fix the issue. Thanks for your help
I have been looking into the behavior you have described when using the XamDataGrid inside a XamTabControl within a UserControl and I was not able to reproduce it.
Would you please take a look at the sample I have attached and modify it accordingly so the issue is reproduced? It would be great if you could provide me with detailed steps for reproducing the issue as well. Having this information would help me further investigate this matter for you.
Looking forward to your reply.
Thank you, this works great but I'm noticing some strange events.
The field bound to the checkbox IsChecked attribute is called as I scroll in my grid. I notice this does not happen with the example you provided so I am not sure what is causing these setter to be called during scrolling events.
My XamDataGrid is within a usercontrol, within a XamTabControl.
Any ideas?
Hello Patrick,The answer to your question is yes, this property can be set in 14.1. Since the AllowEdit property has been introduced as a property of the Field class in 14.2 product version, you can set it in 14.1 by accessing the FieldSettings of the corresponding Field:<igDP:Field Name="IsItemChecked" > <igDP:Field.Settings> <igDP:FieldSettings AllowEdit="True" /> </igDP:Field.Settings></igDP:Field>If you require any further assistance on this matter, please do not hesitate to ask.