Child items not displayed when TabPage with GridGroupingControl is not first

Hi,
I cannot figure out why the order of TabPage with GGC affected the display of nested children.

I have TabControl with TabPages. Currently, the first and second TabPage contain GGS. Both of them using relationships and display nested children. 
One of them displays the Invoices with Payments, where Invoice class contains the property of Payments (BindingList<Payment>).
The second using the same pattern but displays Contracts with child Invoices.

When I added a new TabPage before the previous, the Invoices from Contracts disappears. 
When you change the order of TabPages so that TabPage with Contracts is first, their children appear.
Any tip? 

Thanks, 
Kamil

4 Replies

AR Arulpriya Ramalingam Syncfusion Team May 19, 2020 01:45 AM UTC

Hi Kamil, 
 
Thank you for your interest in Syncfusion products. 
 
We could understand the reported scenario and forwarded the query to our development team for further validation. So, we need some more time to look into this requirement and we will update you with proper details on 20th May 2020. 
 
We appreciate your patience till then. 
 
Arulpriya 



KG Kamil Graf May 19, 2020 05:22 AM UTC

Hi,

I created a simple app using the same pattern.
The main form contains TabControlAdv with tree pages. Each TabPage host instance of UserControl1.
The UserControl1 has GGC and bindSource with an inline instance of Parents and Children.

When the app is launched, the first TabPage displays parents and their child but the following TabPages display only parents.
The source code is attached. The zip file contains the issue.png also.

Thanks,

Kamil

Attachment: WindowsFormsApp1_feaae67c.zip


AR Arulpriya Ramalingam Syncfusion Team May 21, 2020 02:32 AM UTC

Hi Kamil, 
 
Thank you for the update. 
 
We could understand your requirement that you need to expand inner child records in different tabpages. We have forwarded to our development team to analyze the possibilities to implement the requirement and we will update you with further details on 21st May 2020. 
 
Regards, 
Arulpriya 



AR Arulpriya Ramalingam Syncfusion Team May 22, 2020 03:32 AM UTC

Hi Kamil, 
 
Thank you for your patience. 
 
The reported scenario can be achieved by expanding the specified record when the SelectedIndexChanged occurred for TabControl. We have created a simple sample as per your requirement and please make use of the code sample. 
 
Example code 
 
//Event subscription. 
tabControl1.SelectedIndexChanged += TabControl1_SelectedIndexChanged; 
 
//Event customization 
private void TabControl1_SelectedIndexChanged(object sender, EventArgs e) 
{ 
    if(tabControl1.SelectedTab.Name == "tabPage2") 
    { 
        Record record = gridGroupingControl2.Table.Records[gridGroupingControl1.Table.Records.IndexOf(gridGroupingControl1.Table.CurrentRecord)]; 
        record.SetCurrent(); 
        record.IsExpanded = true; 
    } 
} 
 
 
Please let us know, if you have any other queries. 
 
Regards, 
Arulpriya 


Loader.
Up arrow icon