Change Validation State

5 posts, 1 answers
  1. Durga Prasad
    Durga Prasad avatar
    3 posts
    Member since:
    Mar 2008

    Posted 02 Feb 2013 Link to this post

    How do I change validation state and set error message from ViewModel?
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 06 Feb 2013 Link to this post

    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.
  3. DevCraft banner
  4. Durga Prasad
    Durga Prasad avatar
    3 posts
    Member since:
    Mar 2008

    Posted 06 Feb 2013 Link to this post

    If possible, can you give me simple code snippet?
  5. Answer
    Todor
    Admin
    Todor avatar
    778 posts

    Posted 06 Feb 2013 Link to this post

    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.
  6. Durga Prasad
    Durga Prasad avatar
    3 posts
    Member since:
    Mar 2008

    Posted 06 Feb 2013 Link to this post

    Thanks Todor!
Back to Top
DevCraft banner