Hi
I'm using following Code to bind a bool to a CheckBox:
<igDP:XamDataGrid Grid.Column="0" DataSource="{Binding Path=SomeViewModel.SomeList}" Theme="Generic" AutoFit="True" UpdateMode="OnCellChange"> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Settings> <igDP:FieldLayoutSettings AutoGenerateFields="False" /> </igDP:FieldLayout.Settings> <igDP:FieldLayout.FieldSettings> <igDP:FieldSettings AllowRecordFiltering="False"/> </igDP:FieldLayout.FieldSettings> <igDP:FieldLayout.Fields> <igDP:Field Label="" Name="IsChecked" Visibility="Visible"> <igDP:Field.Settings> <igDP:FieldSettings/> </igDP:Field.Settings> </igDP:Field>
etc.
I want to update the Property "IsChecked" as soon the checkbox gets clicked.. but unfortunately it only updates the value (true or false) when another Cell or Row is selected. Any ideas how to fix this?
Thanks
Hello,
For future readers who are like myself and try to avoid using the code behind, I was able to achieve the same outcome without the event in the code behind simply by using:
<igDP:Field.Settings> <igDP:FieldSettings DataItemUpdateTrigger="OnCellValueChange"/> </igDP:Field.Settings>
I like having an option on the databound control to update elements on change vs on leaving the row. Having the update occur right away is desirable to me most of the time. I am having a hard time thinking of cases when I would not want an update right away, but an option on the control will provide folks with the same behavior as today while allowing those of us wanting faster reaction to changes to get the win.
Is this problem fixed in a more recent version? I think this behavior should be automatic. I mean, when I click on a checkbox, I want that the object behind is immediately updated.
Thanks a lot for your effort!
I am attaching a sample project with this functionality.