Text box focus goes to first character

5 posts, 1 answers
  1. Tad Rhodes
    Tad Rhodes avatar
    10 posts
    Member since:
    Jun 2009

    Posted 12 Apr 2010 Link to this post

    Is it an intended design that when you click inside the radtextbox, that the cursor automatically goes to the front or first character in the text box?  For example, if you have "New Thread" in a text box, you mouse click inside the text box after the word "Thread"; a second later the cursor moves automatically back to the position just before the word "New".
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Apr 2010 Link to this post

    Hello,

    How a RadInput control behaves when it receives focus can be controlled by setting the SelectionOnFocus property. When the SelectionOnFocus property is None (the default value), the browser determines the caret placement and selection when the control first gets focus.

    -Shinu.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tad Rhodes
    Tad Rhodes avatar
    10 posts
    Member since:
    Jun 2009

    Posted 13 Apr 2010 Link to this post

    Ah, wonderful.  That is exactly what I was looking for.  Thank you.
  5. John
    John avatar
    1 posts
    Member since:
    Aug 2013

    Posted 19 Aug 2014 Link to this post

    I don't see that property in the radMaskEditBox control.
  6. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Aug 2014 in reply to John Link to this post

    Hi John,

    All four RadInput controls support the SelectionOnFocus property. In addition, two of the RadInput controls, RadDateInput and RadMaskedTextBox, let you format their values differently, depending on whether they have focus. Try to set the Mask, PromptChar Properties of RadMaskedTextBox for formatting value with focus.

    Thanks,
    Shinu.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017