How to setup paging with related table

I am using the GridGroupingControl to be able to use the paging functionality (Pager.Wire), which seems to be working just fine. However, I tried adding a related table and the paging disappeared. I tried setting it up a couple of different ways, but it didn't work. If I don't use paging, I get the detail row functionality I expect, but without paging. If I use paging, I don't get the detail row functionality.

   GridRelationDescriptor relVendorItemsToItemNeeds = new GridRelationDescriptor()
   {
      ChildTableName = "ItemNeeds",
      RelationKind = RelationKind.RelatedMasterDetails
   };
   relVendorItemsToItemNeeds.RelationKeys.Add("ITEM_NO", "ITEM_NO");

   ItemsGrid.TableDescriptor.Relations.Add(relVendorItemsToItemNeeds);

   ItemsGrid.Engine.SourceListSet.Add("VendorItems", dsVendorItemData.Tables["VendorItems"]);
   ItemsGrid.Engine.SourceListSet.Add("ItemNeeds", dsVendorItemData.Tables["ItemNeeds"]);

   itemsGridPager.PageSize = 15;
   //itemsGridPager.Wire(ItemsGrid);  //, dsVendorItemData.Tables["VendorItems"]);
   // NOTE: Using Pager.Wire does not work with related tables; only Grid.DataSource works.

   ItemsGrid.DataSource = dsVendorItemData.Tables["VendorItems"];
   itemsGridPager.Wire(ItemsGrid);  //, dsVendorItemData.Tables["VendorItems"]);

Any suggestion on how to set this up? Is this possible?

1 Reply

AR Arulpriya Ramalingam Syncfusion Team May 3, 2020 06:09 PM UTC

Hi Kevin, 
 
Thank you for your interest in Syncfusion products. 
 
We have validated the reported scenario and we regret to let you know that the GridGroupingControl does not have pager support for nested grids. So, we suggest that you to use RecordNavigationBar which let you to navigate through records instead pages. Please make use of the below UG for further details. 
 
 
Please let us know, if you have any other queries. 
 
Regards, 
Arulpriya 


Loader.
Up arrow icon