Using XamDataGrid 2011.1, what are the circumstances that would cause the SelectedItemsChanged event not to fire when CellClickAction = SelectRecord? I have a grid that is exhibiting this behavior.
Thanks,
Paul
Hello,
Thank you for your feedback, I believe that other community members may benefit from this as well.
The solution for the "no event fired" problem is to set a value to the CellClickAction property.
In XAML code of the XamDataGrid add this:
<igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings CellClickAction="SelectRecord" /></igDP:XamDataGrid.FieldSettings>
Stefan,for complex problems it's useful to add an example project.In this case it would be more useful to just write a tiny text.This is better for reader than the need to download, extract and analyse the code.
Additionally it would be useful to add this important information to the documentation of the SelectedItemsChanging and SelectedItemsChanged events.
Nevertheless: Thanks for your reply.
Hello Paul,
I have tested the sample I sent you before both with the RTM (1012) and the latest service release (2316) of 11.2 and everithing works as expected on my side. I also set the CellClickAction via code, not XAML. It will be great if you could modify the sample I sent you before, so it reproduces your behavior and send it back to me for further investigation.
Looking forward to hear from you.
Hi Stefan,
Its been a while since this thread was started. I am still having an issue with my grid settings. The example that you sent me didn't exactly address my problem. It would be more helpful if I could see an example where the grid is configured programmatically instead of through XAML.
I'm currently using the following line to set the CellClickAction:
this.myViewControl.Grid.FieldSettings.CellClickAction = CellClickAction.SelectRecord;
When I click on the row header, SelectedItemsChanged is fired and the row is selected. I want this behavior to occur when I click on any row cell as well.
I believe that this should be incredibly simple to do. Are there other properties whose values would prevent CellClickAction = CellClickAction.SelectRecord from being honored?
I'm using 11.2
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.