This is a migrated thread and some comments may be shown as answers.

[Solved] Grouping expander doesn't collapse as expected

1 Answer 114 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris Ward
Top achievements
Rank 1
Chris Ward asked on 11 Jul 2011, 01:59 PM
I've noticed an interesting side effect of placing buttons in a RadGridView.

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.

1 Answer, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 13 Jul 2011, 02:18 PM
Hello Chris Ward,

Thank you for the report.
We will investigate the problem and will contact you as soon as we have more information.
 
Regards,
Yordanka
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Chris Ward
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Share this question
or