0

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?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.