0

Column Menu of Angular ag-grid ver 33.0.4 is throwing the below error , I am using enterprise version and passing the basic coldef object

 colDefs: ColDef<IRow>[] = [
    { field: "make" },
    { field: "model" },
    { field: "price" },
    { field: "electric" },
  ];

TypeError: columnGroup?.getColGroupDef is not a function
    at ColumnMenuFactory.getMenuItems (main.cjs.js:17048:70)
    at EnterpriseMenuFactory.createMenu (main.cjs.js:17929:51)
    at EnterpriseMenuFactory.getMenuParams (main.cjs.js:17915:23)
    at EnterpriseMenuFactory.showMenu (main.cjs.js:17842:29)
    at EnterpriseMenuFactory.showMenuAfterButtonClick (main.cjs.js:17814:10)
    at MenuService.showColumnMenuCommon (main.cjs.js:14797:20)
    at MenuService.showColumnMenu (main.cjs.js:14739:10)
    at Object.showColumnMenu (main.esm.mjs:13572:18)
    at HTMLSpanElement.click (main.esm.mjs:27448:66)
    at e.invokeTask (zone.min.js:13:7855)
1
  • Could you please provide entire usage example of you use case? In order to figure things out we need complete example including angular template and complete js code with an input object, not just a piece (colDefs). Commented Feb 7 at 21:16

1 Answer 1

0

Make sure your versions all match.

"ag-grid-community" and "ag-grid-enterprise" should be exactly the same.

I had these and had the same error:


"ag-grid-community": "^34.1.1"
"ag-grid-enterprise": "^34.1.0"
Sign up to request clarification or add additional context in comments.

Comments

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.