Sometimes unintentionally clicked on the group header and collapsed group, How can prevent collapsed group ? or collapse like expander if clicked on the button expand or collapse?
1 Answer, 1 is accepted
0
Maya
Telerik team
answered on 30 Mar 2015, 08:21 AM
Hello Elena,
Generally, the whole element is a RadToggleButton which will be checked/unchecked no matter where exactly on it you have clicked. What you can try is to verify the exact place and cancel the bubbling of the mouse event. For example:
public MainWindow()
{
InitializeComponent();
this.AddHandler(RadToggleButton.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(OnPreviewMouseLeftButtonDown), true);