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
SIGN IN To post a reply.
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,
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.
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
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
KG Kamil Graf
- May 17, 2020 04:13 PM UTC
- May 22, 2020 03:32 AM UTC