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
0
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
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
Hello Durg,
I have attached a sample.
Kind regards,
Todor
the Telerik team
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!