concerns the action taken when the RadGridView loses focus. In a case of changing the rows, the focus stays within RadGridView.
With this in mind, you can consider utilizing the PreviewMouseLeftButtonDown
event and invoke RadGridView`s CancelEdit
command in case a user clicks outside of the selected row:
sender, MouseButtonEventArgs e)
FrameworkElement).ParentOfType<GridViewRow>() != clubsGrid.CurrentCell.ParentRow)
Please check the sample provided.
Another possibility is to explicitly declare the element within each Column, set the UpdateSourceTrigger
Property of the binding to Explicit and call the UpdateSource() method in the scenarios you want(press Tab, press Enter, etc).
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.