This question is locked. New answers and comments are not allowed.
Without going into too much detail, I have 2 grids. One grid (Grid1) is bound an object collection on the VM, and the other grid (Grid2) is bound to a collection of sub VM's.
SelectedItem is set (mode=TwoWay) on Grid1 and bound to an object on the VM. When a row is selected, it sets the object properly on the VM, and also fires a PropertyChanged event, which causes Grid2 to bind to the collection of sub VM's.
Grid2 contains 2 columns with ComboBoxes. Each comboBox has their SelectedItem set (mode=TwoWay) and is bound to a property on the sub VM. Nothing should set the SelectedItem on the sub VM until the user selects a value in the comboBox.
When selecting a row in Grid1, Grid2 displays the bound sub VM's appropriately.
However, here is the bug. When the user selects a different row on Grid1, Grid2 is for some reason trying to set the SelectedItem for ComboBox1 and ComboBox2. This is a nasty bug. Nothing should attempt to set the SelectedItem for ComboBox1 or ComboBox2. The side effect is that nulls are being passed into the bound object values of the sub VM's, and inappropriately wiping out the values.
I tried replacing the RadGridView with the toolkit's DataGrid, and it does not perform this behavior. It works as expected.
I would like to send you the zipped project, where can I send this to?
SelectedItem is set (mode=TwoWay) on Grid1 and bound to an object on the VM. When a row is selected, it sets the object properly on the VM, and also fires a PropertyChanged event, which causes Grid2 to bind to the collection of sub VM's.
Grid2 contains 2 columns with ComboBoxes. Each comboBox has their SelectedItem set (mode=TwoWay) and is bound to a property on the sub VM. Nothing should set the SelectedItem on the sub VM until the user selects a value in the comboBox.
When selecting a row in Grid1, Grid2 displays the bound sub VM's appropriately.
However, here is the bug. When the user selects a different row on Grid1, Grid2 is for some reason trying to set the SelectedItem for ComboBox1 and ComboBox2. This is a nasty bug. Nothing should attempt to set the SelectedItem for ComboBox1 or ComboBox2. The side effect is that nulls are being passed into the bound object values of the sub VM's, and inappropriately wiping out the values.
I tried replacing the RadGridView with the toolkit's DataGrid, and it does not perform this behavior. It works as expected.
I would like to send you the zipped project, where can I send this to?
