Validation error message stay displayed

4 posts, 0 answers
  1. Mike
    Mike avatar
    79 posts
    Member since:
    Nov 2011

    Posted 07 May 2012 Link to this post

    Hello,

    I have a problem when I use a detailsRow. When there is a validation exception, the validation message (red message) is displayed, but when the rowDetails is closed (not expanded), the validation message stays displayed (see attachement).

    How can I hide this message, or simply reset changes when user closes the detailsRow.

    Thanks for your help.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 07 May 2012 Link to this post

    Hello,

     You can reset the changes and cancel the validation message for the details grid by setting the ActionOnLostFocus property of the RadGridView to "CancelEdit". For example:

    <telerik:RadGridView Name="playersGrid"
    ItemsSource="{Binding Players}"
    ActionOnLostFocus="CancelEdit">

    I hope that this is helpful.

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Mike
    Mike avatar
    79 posts
    Member since:
    Nov 2011

    Posted 07 May 2012 Link to this post

    Hi Didie, 

    Thanks for reply, but that means when there is no validation errors, the change is canceled too? 
    This is not the behavior I'm looking for :(

    Any other suggestion please? 
    Thanks.
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 07 May 2012 Link to this post

    Hello,

     Indeed, you are right. Then please set:

    ActionOnLostFocus="None"

    Greetings,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top