RegularExpressionValidator only on a specific button

2 posts, 0 answers
  1. Julian
    Julian avatar
    4 posts
    Member since:
    Oct 2015

    Posted 23 Oct 2015 Link to this post

    I followed the attached example to create a RegularExpressionValidator for a input.

    I have 3 inputs (2 DateTimePicker & 1 RadTextBox" and 5 "RadButton") to operate several actions. I now want that only the click on 3 of my 5 buttons make the validation of a specific "RadTextBox" because its an extra that is not always used.

    Now, no matter which button I press I get the check for the RadTextBox and Error message presented.


    Is there a filter or ​specification tag that I can use, that the RegularExpressionValidator use only my selected buttons?

    (C#; VS2015; ASP 4.5; Win 7; UI for AJAX latest Version)




  2. Danail Vasilev
    Danail Vasilev avatar
    1476 posts

    Posted 26 Oct 2015 Link to this post

    Hi Julian,

    You can specify a particular ValidationGroup for the buttons and the inputs -

    Danail Vasilev
    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. DevCraft R3 2016 release webinar banner
Back to Top