Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > DatePicker > Highlighting the current date when the control get focus

Not answered Highlighting the current date when the control get focus

Feed from this thread
  • Lee avatar

    Posted on Dec 1, 2011 (permalink)

    I have a user control with a RadDatePicker on it and set the focus to the picker when the control recieves focus.
    This seems to work great except the existing date does not highlighted and has to be deleted chard by char before you can type a new one.

    Is there any way to set focus and highlight the exsiting contents?

    If I tab away and alt + tab back it does highlight the contents.

    Reply

  • Ivo Ivo admin's avatar

    Posted on Dec 2, 2011 (permalink)

    Hi Lee,

    The easiest way I found was to set custom control template to the RadDateTimePicker and attach to the GotFocus event of RadWatermarkTextbox. On GotFocus I called watermark.SelectAll and it worked. You can find an attached project demonstrating this.

    Kind regards,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > DatePicker > Highlighting the current date when the control get focus
Related resources for "Highlighting the current date when the control get focus"

Silverlight DatePicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]