Hello I would like to find a way to show a context menu on group row on table view.
I would like to operate on all rows from the selected group.
I tried the selection changed event which does not work. Is there another option?
Thank you for the clarification. At the moment, the simplest way to achieve this goal is to override the GridViewBase.GroupRowStyle style and set the BarManager.DXContextMenu property there.
<dxg:TableView x:Name="view"> <dxg:TableView.GroupRowStyle> <Style TargetType="dxg:GroupGridRowContent"> <Setter Property="dxb:BarManager.DXContextMenu"> <Setter.Value> <dxb:PopupMenuInfo> <dxb:BarButtonItemLink BarItemName="item1"/> <dxb:BarButtonItemLink BarItemName="item2"/> </dxb:PopupMenuInfo> </Setter.Value> </Setter> </Style> </dxg:TableView.GroupRowStyle> </dxg:TableView>
In the meantime, we agree that it makes sense to provide this functionality out-of-the-box and will consider implementing it when planning features for further releases. You can add the DXGrid - Provide a built-in context menu for group rows thread to your favorites to be notified when this feature is available.