Hi there!
I am using XamGrid in my application and would like to handle double-click on the row selector. I tried to use RowSelectorClicked event but it does not allow to handle double-clicks.
Is there some kind of native and easy way to handle double-clicks on the row selector?
Thank you
Pavel
Hello Pasha,
Thank you for posting in our community.
My suggestion for achieving your requirement is handling "MouseDoubleClick" event.
For example:
<ig:XamGrid x:Name="grid" ItemsSource="{Binding}"> <ig:XamGrid.SelectionSettings> <ig:SelectionSettings CellClickAction="SelectRow"/> </ig:XamGrid.SelectionSettings> <ig:XamGrid.RowSelectorSettings> <ig:RowSelectorSettings Visibility="Visible" EnableRowNumbering="False"> <ig:RowSelectorSettings.Style> <Style TargetType="{x:Type igPrim:RowSelectorCellControl}"> <EventSetter Event="MouseDoubleClick" Handler="RecordSelector_MouseDoubleClick"/> </Style> </ig:RowSelectorSettings.Style> </ig:RowSelectorSettings> </ig:XamGrid.RowSelectorSettings> </ig:XamGrid>
Attached you will find small sample illustrating my suggestion.
Please test it on your side and let me know if you need any further assistance.
0081.doubleClickSelector_case.zip