Completed
Last Updated: 05 Dec 2016 11:59 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 15 Jun 2016 07:30
Category: GridView
Type: Bug Report
2
FIX. RadGridView - when entering edit mode for the new row, the grid is navigated to the first page if the AddNewRowPosition property is set to Bottom
To reproduce: populate the grid with data and use the code snippet below:

public Form1()
{
    InitializeComponent();
    this.radGridView1.EnablePaging = true; 
    this.radGridView1.AddNewRowPosition = Telerik.WinControls.UI.SystemRowPosition.Bottom;
}

Select the third page and click the new row at the bottom. The editor is activated as expected but the first page is made current.

Workaround: use the CellEditorInitialized event and move to the desired page

 private void radGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
 {
     if (e.Row is GridViewNewRowInfo)
     {
         this.radGridView1.MasterTemplate.MoveToPage(2); 
     }
 }
0 comments