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,
I’m Oscar.
I have a TabBarSplitterControl that contains only a GridControl for each TabBarPage and also the following problem:
I try to split a Grid using the SplitBars of the TabBarSplitterControl. When the horizontal position of the splitter is 100% the grid is redrawn and all data contained in the grid are lost. The same thing occurs when Vertical position is 100%. Please could you suggest me a workaround to solve this problem?
I have tried to read the split position using the HSplitPosChanged and VSplitPosChanged events but when the events are arising the data are already lost.
Thanks in advance for your help,
Oscar
ADAdministrator Syncfusion Team August 26, 2003 01:30 PM UTC
This is by design as the GridControl objects come and go with the split views, so you cannot rely on a particular GridControl object being around after a series of splits. New gridcontrols are created when new panes are created.
Instead, just retrieve the object that is currently available. For example, you can get the active grid control with code like:
GridControl grid = this.tabBarSplitterControl1.ActivePane as GridControl;
if(grid != null)
{
//got the active grid....
}