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

RadMaskedEditBox: how disable auto select?

2 Answers 66 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Eusebio
Top achievements
Rank 1
Veteran
Eusebio asked on 16 Dec 2020, 08:53 AM
How can you set so that the text is not lit when the control receives the focus?

2 Answers, 1 is accepted

Sort by
0
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 16 Dec 2020, 10:43 AM

Hello, Eusebio,

According to the provided brief information, it is not clear which mask type that you use and how your RadMaskedEditBox is set up.

You can handle the GotFocus event and manage the text selection:

this.radMaskedEditBox1.GotFocus += this.RadMaskedEditBox1_GotFocus;
private void RadMaskedEditBox1_GotFocus(object sender, EventArgs e)
{
    this.radMaskedEditBox1.SelectionLength = 0;
    this.radMaskedEditBox1.HideSelection = false;
}

In case, you need further assistance it would be greatly appreciated if you can provide more information about the case that you have on your end.

If you need further assistance do not hesitate to contact me.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Eusebio
Top achievements
Rank 1
Veteran
answered on 16 Dec 2020, 01:12 PM
Thanks Nadya.
Tags
MaskedEditBox
Asked by
Eusebio
Top achievements
Rank 1
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Eusebio
Top achievements
Rank 1
Veteran
Share this question
or