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

TextBoxElement in RibbonBar SelectionProblem

1 Answer 59 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 28 Dec 2012, 06:29 PM
I have a RadTextBoxElement control within a RadRibbonBarGroup within a RadRibbonBar.

The problem is that when I click on the TextBoxElement and drag to select some text, if the mouse is move outside of the TextBoxElement and over an adjacent RadButtonElement, the ButtonElement click event fires when the mouse button is released.

Is there any wat to prevent this?  The problem is that the user will casually drag across to select a bunch of text but won't necessarily be careful not to move the mouse out of the TextBoxElement control.

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 02 Jan 2013, 04:01 PM
Hi Joe,

Thank you for writing.

This behavior occurs because by default our buttons are clicked on the MouseUp event.
You can workaround this with setting the ButtonElement's ClickMode property to Press:
this.radButtonElement1.ClickMode = Telerik.WinControls.ClickMode.Press;

I hope this helps.

Kind regards,
Peter
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
RibbonBar
Asked by
Joe
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or