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

RadMaskedTextBox and IP Address format.

5 Answers 238 Views
Input
This is a migrated thread and some comments may be shown as answers.
Steve Wolfe
Top achievements
Rank 1
Steve Wolfe asked on 21 Dec 2009, 09:03 PM
Hello,

Does anyone know of a mask or a way to have the standard IP Address mask NOT require entering the leading 0s, i.e.

192.168.1.1 instead of 192.168.001.001.

<telerik:RadMaskedTextBox ID="RadMaskedTextBox2" Runat="server" Mask="<0..255>.<0..255>.<0..255>.<0..255>">  
</telerik:RadMaskedTextBox> 
 


-Steve

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 22 Dec 2009, 06:15 AM
Hello Steve,

Try setting the 'ZeroPadNumericRanges' property to "false" in order to remove the leading zeroes in the RadMaskedTextBox.

-Shinu.
0
Steve Wolfe
Top achievements
Rank 1
answered on 22 Dec 2009, 04:54 PM
Shinu,

Thanks for the suggestion, but not quite right.  After setting the ZeroPadNumericRanges="false" property.  The input control looks like: __0.__0.__0.__0, and still requires one to type in all 3 digits, or cursor over to the correct one.

-Steve
0
Dimo
Telerik team
answered on 23 Dec 2009, 09:02 AM
Hi Steve,

Indeed, this is the way to control works currently. Sorry if this causes you inconvenience. We may research and consider implementing a more flexible behavior in the future.

Greetings,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
miksh
Top achievements
Rank 1
Iron
answered on 07 May 2014, 12:34 PM
Any chance to get it fixed?
0
Vasil
Telerik team
answered on 09 May 2014, 08:11 AM
Hello Michael,

We didn't have many requests on this functionality, so it was never scheduled for implementation.
I have logged this in our feedback portal:
http://feedback.telerik.com/Project/108/Feedback/Details/127699-improve-radmaskedtextbox-to-be-able-to-work-with-empty-prompt-char
You can vote it up, and we will try to implement it in future.

Regards,
Vasil
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Input
Asked by
Steve Wolfe
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Steve Wolfe
Top achievements
Rank 1
Dimo
Telerik team
miksh
Top achievements
Rank 1
Iron
Vasil
Telerik team
Share this question
or