I have a data grid which implement by ng-grid.
As I click "利率明細", it should popup a modal dialog.
The popup modal dialog will have a data grid in the modal dialog. But as I popup the modal dialog, the data grid does not show properly.
Chrome console have error message:
Here is code snippet, ng-grid part, for the modal dialog in HTML:
The modal has it's own scope not inheriting from the scope where you defined the gridOptions, this error occurs if it can't find the gridOptions to set the gridDim on it.
Hence, you need to move line31~41 in to ModalInstanceCtrl as bellows:
After updated, the data grid can show properly in modal dialog