RadMaskedTextBox and IP Address format.

6 posts, 0 answers
  1. Steve Wolfe
    Steve Wolfe avatar
    21 posts
    Member since:
    Nov 2009

    Posted 21 Dec 2009 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Dec 2009 Link to this post

    Hello Steve,

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

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Steve Wolfe
    Steve Wolfe avatar
    21 posts
    Member since:
    Nov 2009

    Posted 22 Dec 2009 Link to this post

    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
  5. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 23 Dec 2009 Link to this post

    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.
  6. miksh
    miksh avatar
    275 posts
    Member since:
    Nov 2006

    Posted 07 May 2014 in reply to Dimo Link to this post

    Any chance to get it fixed?
  7. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 09 May 2014 Link to this post

    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.

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