5 Answers, 1 is accepted
0
Hi Li,
This behavior is controlled by the ActionOnLostFocus property of RadGridView. You can set it to None.
All the best,
Veselin Vasilev
the Telerik team
This behavior is controlled by the ActionOnLostFocus property of RadGridView. You can set it to None.
All the best,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Li
Top achievements
Rank 1
answered on 09 Feb 2011, 06:26 PM
I have set ActionOnLostFocus = None; This only prevents committing when click another control. If I click another row, it commits editing row.
0
Hello Li,
You are right - this property works on a gridview level, not on a row/cell levels.
Can you give us some more information about your scenario, so we can think of any workaround.
Kind regards,
Veselin Vasilev
the Telerik team
You are right - this property works on a gridview level, not on a row/cell levels.
Can you give us some more information about your scenario, so we can think of any workaround.
Kind regards,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Li
Top achievements
Rank 1
answered on 10 Feb 2011, 02:58 PM
I found a workaround by using PreviewMouseLeftButonDown event, let me know if you have better way to do it. Thanks.
FrameworkElement originalSource = e.OriginalSource as FrameworkElement;
GridViewRow clickedRow = originalSource.ParentOfType<GridViewRow>();
RadGridView gridView = sender as RadGridView;
if (gridView.RowInEditMode != null &&
clickedRow != null &&
! clickedRow.IsInEditMode )
e.Handled = true;
0
Henky Wibowo
Top achievements
Rank 1
answered on 16 Feb 2012, 02:31 AM
What is the equivalent of PreviewLeftMouseButtonDown event in Silverlight?