The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
We are using Syncfusion v 3.2.1.0.
I have a GGC with record preview row being toggled on/off. When i have more records, I see a vertical scrollbar in the grid.
When preview is OFF, click on a record and pressing down arrow key will scroll the VScrollBar down, which is correct. But when preview is ON, VScrollBar is not moving down and selected record is not visible to the user. But record selection is happening correctly. I think it is only about moving the VScrollBar.
Can you please help me in this?
Rgds
Rajani Kanth
ADAdministrator Syncfusion Team May 31, 2006 09:38 AM UTC
Hi Rajani,
You need to scroll the currentcell into view after preview is ON. Here is a code snippet.
GridCurrentCell cc = this.grid.TableControl.CurrentCell;
this.grid.TableControl.ScrollCellInView(cc.RowIndex,cc.ColIndex);
Please let me know if this helps.
Regards,
Haneef
BRBadri Rajani KanthJune 1, 2006 02:20 PM UTC
Hi Haneef,
I tried using that. But still the sam problem.
Can you plz look into this again?
Rgds
Rajani Kanth
ADAdministrator Syncfusion Team June 2, 2006 04:17 AM UTC
Hi Rajani,
Sorry for the inconvenience caused.
Try this code to scroll the current cell into view. Here is a code snippet
if(IsPreview)
{
IsPreview = false;
this.gridGroupingControl1.TableDescriptor.TableOptions.ShowRecordPreviewRow = false;
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
this.gridGroupingControl1.TableControl.ScrollCellInView(cc.RowIndex,cc.ColIndex);
}
else
{
IsPreview = true;
this.gridGroupingControl1.TableDescriptor.TableOptions.ShowRecordPreviewRow = true;
//Extra one row added for each row.... so you need to scroll the two times of the current rowIndex.
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
this.gridGroupingControl1.TableControl.ScrollCellInView(cc.RowIndex * 2,cc.ColIndex);
}
Here is a sample.
http://www.syncfusion.com/Support/user/uploads/PreviewRow_ccb4c1f4.zip
Please let me know if this helps.
Regards,
Haneef