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

Validation error message stay displayed

3 Answers 98 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike
Top achievements
Rank 1
Mike asked on 07 May 2012, 12:50 PM
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.

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 07 May 2012, 01:45 PM
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 >>

0
Mike
Top achievements
Rank 1
answered on 07 May 2012, 01:50 PM
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.
0
Dimitrina
Telerik team
answered on 07 May 2012, 01:57 PM
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 >>

Tags
GridView
Asked by
Mike
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Mike
Top achievements
Rank 1
Share this question
or