TextBoxElement in RibbonBar SelectionProblem

2 posts, 1 answers
  1. Joe
    Joe avatar
    2 posts
    Member since:
    Apr 2011

    Posted 28 Dec 2012 Link to this post

    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.
  2. Answer
    Peter avatar
    1148 posts

    Posted 02 Jan 2013 Link to this post

    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,
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top