Set / Change MVC MaskedTextBoxFor mask clientside

5 posts, 0 answers
  1. Chris
    Chris avatar
    23 posts
    Member since:
    Nov 2003

    Posted 27 Aug 2015 Link to this post

    Hello

    Is it possible to set / change the mask of an UI for ASP.NET MVC MaskedTextBoxFor clientside?  If so, can you please provide a sample?  As an example if a onSelect of a dropdown.

    Thanks
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 31 Aug 2015 Link to this post

    Hello Chris,

     

    The configuration options of the widgets, such as the mask for the MaskedTextBox cannot be changed after the widget has been initialized. 

     

    Regards,
    Kiril Nikolov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 31 Aug 2015 Link to this post

    Hello Chris,

     

    After some further investigation it turns out that the mask can be changed after initialization using the setOptions method. please check the following example and let me know if it helps:

     

    http://dojo.telerik.com/egOBa

     

    Please accept my apologies for the delayed response.

     

    Regards,
    Kiril Nikolov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Chris
    Chris avatar
    23 posts
    Member since:
    Nov 2003

    Posted 31 Aug 2015 in reply to Kiril Nikolov Link to this post

    Thank you! I'll give that a try.
  6. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 01 Sep 2015 Link to this post

    Hello Chris,

     

    In case you have any further questions, please do not hesitate to contact us.

     

    Regards,
    Kiril Nikolov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready