expandable grid error when expanding
When I click to expand the grid i get an error "TypeError: Cannot read property 'expandableRowHeight' of undefined" and "TypeError: Cannot read property 'rowExpandableTemplate' of undefined". I referenced 'ui.grid.expandable' in my app.js. Any Ideas?
It may mean you haven't set those values, or that you haven't set one of the other expandable mandatory parameters. Expandable has rather poor error handling at present - it just assumes you know what you're doing and that all it's values are present. I'd start by adding every single value that's present in the tutorial, and then work backwards removing them until you find out which one is causing the error.
I wasn't using the proper version of ui-grid
I'm using rc-12, and I got same error. I have to change it to $scope.gridOptions = { data: [], expandable: { expandableRowTemplate: '
', rowExpandableTemplate: '', expandableRowHeight: 140, expandableRowScope: { subGridVariable: 'subGridScopeVariable'}, }, }And I don't know what conflict I have, my expandable icon column is on top, and real data table is under that, close to the ui-grid-container end.
I'm new to AngularJS, Appreciate any help.
OK. I changed to rc-16 and the way as 'expandable grid' in tutorial seems working.
For whoever might stumble on this having issues with the expandable grid: the expandableRowScope in the tutorial is not used so it may be a red herring with your debugging.