ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

ui-grid is not shown inside an accordion

Open divyamv opened this issue 12 years ago • 7 comments

https://github.com/angular-ui/ng-grid/issues/50

this issue is closed and it said that it is fixed in 1.7

Currently i am using 3.0 ,still i am getting the same issue.

divyamv avatar Nov 18 '14 11:11 divyamv

I reported this one a little while back. The difference was it was within a tab.

Here is a solution: https://github.com/angular-ui/ng-grid/issues/1776

keeper3000 avatar Nov 18 '14 12:11 keeper3000

https://github.com/keeper3000

Thanks Let me check it out!

divyamv avatar Nov 18 '14 12:11 divyamv

I cannot use either of these solutions mentioned there!

window.resize() width=100%

divyamv avatar Nov 18 '14 12:11 divyamv

No, try it this way instead.

    columnDefs: [  ],
    onRegisterApi: function( gridApi ) {
        $timeout(function () {
            gridApi.grid.handleWindowResize();
        });
    }

Hopefully no syntax errors in there, I just typed it out really quick.

keeper3000 avatar Nov 18 '14 13:11 keeper3000

grid is displayed but very small grid is rendered

divyamv avatar Nov 18 '14 13:11 divyamv

Please check these plunkers for examples of how to approach grids that are not set to be displayed on page load:

http://plnkr.co/edit/fwdXMamTBrR1yKVwcohZ?p=preview http://plnkr.co/edit/LtpFnDUTofuxitb4Vh9x?p=preview

The demonstration is with tabsets but accordions will be the same.

c0bra avatar Nov 18 '14 15:11 c0bra

You can also now refer the tutorial that @c0bra has updated: http://ui-grid.info/docs/#/tutorial/108_hidden_grids

PaulL1 avatar Nov 19 '14 23:11 PaulL1