Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 326937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:21:20+00:00 2026-05-12T09:21:20+00:00

I have a dropdown and a RadMaskedTextBox on a form. I want the mask

  • 0

I have a dropdown and a RadMaskedTextBox on a form. I want the mask applied to the RadMaskedTextBox to be determined by the selected value of the dropdown. Is there any way to do so via javascript? I know I could do a simple postback, but I would prefer not to.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:21:20+00:00Added an answer on May 12, 2026 at 9:21 am

    You can try using the undocumented _SetMask function on your client-side RadMaskedTextBox instance, along with the various mask parts (also available on the client, although under slightly different names):

    var mask = [
        new RadDigitMaskPart(), // Digit
        new RadLiteralMaskPart('-'), // dash
        new RadEnumerationMaskPart('Mon|Tue|Wed|Thu|Fri'.split('|')), // Week days
        new RadNumericRangeMaskPart(0, 255), // number between 0-255 incl.
        new RadLowerMaskPart(), // lowercase letter a-z
        new RadUpperMaskPart(), // uppercase letter A-Z
        new RadFreeMaskPart()   // accepts any character
    ];
    RadMaskedTextBox1._SetMask(mask);
    

    The problem you’re going to run into is that the mask parts are not translated to their respective display prompt in the client right away. For the above mask it would be ("_-Mon000__"). It seems to wait until blur of the field before rendering the prompt in the browser.

    Regardless, the text box will respond appropriately to keystrokes according to the rules set out by the mask above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dropdown list that when the selected value changes I want to
I have dropdown on my page, I am changing selected value of dropdown from
i have a dropdown in the header and whatever the value is selected in
I have dropdown menu..which is dynamic.. How can get value of the last item
I have several DropDown controls on a Web Form which are filled using AJAX
I have a dropdown list which should be displaying the correct value of the
I have dropdown list as follow: <select id=DropdownID> <option value=1>Ccc</option> <option value=2>Aaa</option> <option value=3>Bbb</option>
I have a dropdown menu that is populated with key value pairs in php.
I have Dropdown and on click of a button, I want to display data
I have a dropdown box with three values,small,medium and large.If the value is small,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.