This question is locked. New answers and comments are not allowed.
I've noticed an interesting side effect of placing buttons in a RadGridView.
XAML:
When this grid is grouped by Manufacturer and I expand one of the groups to display that manufacturer's list of products, it displays as expected. When I click the manufacturer name to collapse it, while the row is focused/selected, rather than collapsing it sets focus to the Buy button. When clicked again it sets focus to the Sell button. Once more collapses the group.
This probably has something to do with the structure of the event tree, but could you explain how I can make it work as expected?
Thanks.
XAML:
<telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="Product Manufacturer" DataMemberBinding="{Binding Mfr}" /> <telerik:GridViewDataColumn Header="Product Name" DataMemberBinding="{Binding Name}" /> <telerik:GridViewColumn Header="Buy"> <telerik:GridViewColumn.CellTemplate> <DataTemplate> <Button Content="Buy" Click="btnProductBuy_Click" /> </DataTemplate> </telerik:GridViewColumn.CellTemplate> </telerik:GridViewColumn> <telerik:GridViewColumn Header="Sell"> <telerik:GridViewColumn.CellTemplate> <DataTemplate> <Button Content="Sell" Click="btnProductSell_Click" /> </DataTemplate> </telerik:GridViewColumn.CellTemplate> </telerik:GridViewColumn></telerik:RadGridView.Columns>When this grid is grouped by Manufacturer and I expand one of the groups to display that manufacturer's list of products, it displays as expected. When I click the manufacturer name to collapse it, while the row is focused/selected, rather than collapsing it sets focus to the Buy button. When clicked again it sets focus to the Sell button. Once more collapses the group.
This probably has something to do with the structure of the event tree, but could you explain how I can make it work as expected?
Thanks.