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

RadGridView cell "traps" focus when validation fails

1 Answer 135 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dustin
Top achievements
Rank 1
Dustin asked on 06 Nov 2014, 11:07 PM
Hi,  

In most use-cases, I enjoy the fact that a RadGridView cell which fails validation will "trap" the user's focus, and require the user to fix the cell contents.  However, in the current project I am working on, I need to allow the user to switch focus simply by mouse-click (currently if the user enters an invalid cell, they must hit esc first), even out of cells which have failed validation.

How do I get this behavior?  

Thanks,
Dustin

1 Answer, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 10 Nov 2014, 02:24 PM
Hello Dustin,

In order to achieve this functionality, you can set GridView's ValidatesOnDataErrors property to "InViewMode" or "None". In addition, you can check this help article for a reference.


I hope this helps.

Regards,
Boris
Telerik
 

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.

 
Tags
GridView
Asked by
Dustin
Top achievements
Rank 1
Answers by
Boris
Telerik team
Share this question
or