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

cannot delete "___"appearing before numbers

4 Answers 212 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Haythem
Top achievements
Rank 1
Haythem asked on 10 Jan 2014, 03:21 PM
Hello,
I am using RadMaskedNumericInput in a silverlight application,
I have set my mask to "#####.#####" and the numbers are ok.
the problem here is that when i click on the textinput to enter number i have the "_____._____" which i want to remove but i couldn't .
I relly need your help,
And by the way, if its possible , can you send me the correct regEx that muches with the mask"#####.#####" means : a double that can have at much 5 digits then a UNIQUE dot"." then at much 5 digits, with only positive numbers???? that would be very nice from you 
waiting forward for your answer.

Cordially
KAROUI Haythem
IT Manager at Crea Digital

4 Answers, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 15 Jan 2014, 09:06 AM
Hello Haythem,

The underscore symbols that you refer are called placeholders. They are necessary for the RadMaskedInput controls to work property and cannot be completely removed. However, you can make them invisible. The RadMaskedInput control exposes the Placeholder property that controls the char that will be used instead of the underscore ("_"). In your particular case you can try setting it to space (" ").

Please give this approach a try and let us know if you need any further assistance.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Haythem
Top achievements
Rank 1
answered on 15 Jan 2014, 09:24 AM
Hello,
Thank you for your answer, it partially works... when i put allowSkipPlaceHolder=False i can't move the cursor with keyBoard but still can do this with the mouse... any suggestions?
And what about the RegEx?

Cordially
KAROUI Haythem
0
Pavel R. Pavlov
Telerik team
answered on 17 Jan 2014, 01:19 PM
Hi Haythem,

You are right that you can force the cursor to skip placeholders with the mouse, but please note that you are not allowed to enter any numbers on that place. Also, please note that the AllowSkipPlaceholders property is designed to restrict the input of the control, not the navigation. Hence, the reported behavior is expected.

Regarding the RegEx questions, internally for the Mask property we are not using RegEx. We use the TryParce() method of the native types. Basically, if that native method successfully parses the given string, we assign it as Value of the control. Hence, I am afraid I cannot provide you with such RegEx.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Haythem
Top achievements
Rank 1
answered on 17 Jan 2014, 02:05 PM
Ok .
Thank you anyway for your answer :)

Cordially
KAROUI Haythem
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Haythem
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Haythem
Top achievements
Rank 1
Share this question
or