Unplanned
Last Updated: 26 Jun 2018 08:20 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 10 Jan 2018 07:31
Category: GridView
Type: Bug Report
2
FIX. RadGridView - UserAddingRow is fired multiple times when the grid is inside RadDock and you try to click another control while canceling the event

Please refer to the attached sample project and follow the steps illustrated in the gif file. Note: the same behavior is observed with the CellValidating event in the new row. Workaround: use the RowValidating event instead: private void radGridView1_RowValidating(object sender, Telerik.WinControls.UI.RowValidatingEventArgs e) { if (e.Row is Telerik.WinControls.UI.GridViewNewRowInfo && e.Row.Cells["Id"].Value == null) { this.radGridView1.MasterView.TableAddNewRow.CancelAddNewRow(); this.radGridView1.CurrentRow = this.radGridView1.MasterView.TableAddNewRow; } }

 

NOTE: The CellValidating event is fired multiple times as well when you select a new tab in RadDock. There is a second project attached.

0 comments