Validation- tab out of invalid cells, keeping invalid value

4 posts, 0 answers
  1. jen
    jen avatar
    79 posts
    Member since:
    Jun 2009

    Posted 24 Jul 2014 Link to this post

    Is there a way to show the validation errors in the grid, with the red borders and messages, while still allowing the user to tab into and out of invalid cells?

    I have two columns, Min and Max, and a validation rule that says min must be less than max. If this error is applied, and the user wants to edit both values, they may sometimes want to edit one value in such a way that it still breaks the validation rule, but they want to move onto the second value to finish fixing the issue.

    Currrently the grid is stopping them from tabbing out until the validation error is gone. This also gets in the way if the validation is NOT occurring on property changed, ( for example if the validations are only occurring on saving).

    How do I still show the error without preventing them from leaving the cell, and still keep the modified and invalid data?
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 25 Jul 2014 Link to this post


    I can suggest you to set the validation for the GridView in ViewMode only:

    <telerik:RadGridView ValidatesOnDataErrors="InViewMode"... />

    That way you will be able to edit other cells even if there are cells with invalid data. The validation red color and the message will also stay.

    Let me know how this works for you.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. Noora
    Noora avatar
    1 posts
    Member since:
    Jul 2010

    Posted 18 Mar 2015 in reply to Dimitrina Link to this post

    it is not working all the values of enum behaves same
  4. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 18 Mar 2015 Link to this post


    I am sorry to hear configuring the ValidatesOnDataErrors property does not help. Would it be possible for you to isolate the exact case in a demo project illustrating it and send it to us via a new support thread? You can also take a look at this blog post for a reference on how to isolate an issue. 


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top