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

RegularExpressionValidator only on a specific button

1 Answer 63 Views
Button
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 23 Oct 2015, 07:18 AM

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 ASP.net AJAX latest Version)
 
 

Thanks

 

Attachment:
http://docs.telerik.com/devtools/aspnet-ajax/controls/input/radtextbox/limiting-allowable-values

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 26 Oct 2015, 09:10 AM
Hi Julian,

You can specify a particular ValidationGroup for the buttons and the inputs - https://msdn.microsoft.com/en-us/library/ms227424.aspx

Regards,
Danail Vasilev
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
Tags
Button
Asked by
Julian
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or