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

Change Validation State

4 Answers 68 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Durga Siva Prasad
Top achievements
Rank 1
Durga Siva Prasad asked on 02 Feb 2013, 04:42 PM
How do I change validation state and set error message from ViewModel?

4 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 06 Feb 2013, 12:51 PM
Hi Durg,

Thank you for your interest in RadTextBox.

Currently the only option to change the validation state and the validation message is to use the ChangeValidationState method. If you don't want to use any code behind, you can add this method in the Execute method of a command. Then you can use this command as ActionButtonCommand/ClearButtonCommand and set the state on pressing the action/clear button.

I hope this information helps. Let me know if you need additional assistance here.

Regards,
Todor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Durga Siva Prasad
Top achievements
Rank 1
answered on 06 Feb 2013, 01:09 PM
If possible, can you give me simple code snippet?
0
Accepted
Todor
Telerik team
answered on 06 Feb 2013, 01:37 PM
Hello Durg,

I have attached a sample.

Kind regards,
Todor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Durga Siva Prasad
Top achievements
Rank 1
answered on 06 Feb 2013, 03:44 PM
Thanks Todor!
Tags
TextBox
Asked by
Durga Siva Prasad
Top achievements
Rank 1
Answers by
Todor
Telerik team
Durga Siva Prasad
Top achievements
Rank 1
Share this question
or