I have this configuration for my ag grid tree data :
QuoteLineItemsGrid: GridOptions = {
columnDefs: this.initQuoteLineItemsGrid(),
domLayout: 'autoHeight',
rowSelection: 'single',
sideBar: {
hiddenByDefault: true,
toolPanels: [],
},
rowClassRules: {
'ag-grid-red-row': (params) => params?.data?.errorInd === '1',
},
userSidebar: true,
treeData: true,
pagination: true,
paginationPageSize: 15,
getServerSideGroupKey: (dataItem: any) => dataItem.quoteItemNum,
isServerSideGroup: data => data.children && data.children.length > 0,
autoGroupColumnDef: {
field: 'productOfferName',
headerName: 'Quote line item',
cellRendererParams: {
checkbox: true,
},
},
This is server side , but i have problem with paggination because when i say paginationPageSize= 15 and cacheBlockSize=15 it add that on children also. Any suggestion how to apply this pagionation only on parent, so that i return 15 records of parent but all childrens inside that parent?