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

Grid data is not seen until the window is resized

Open RajaSreekanth opened this issue 11 years ago • 7 comments

I've migrated from ngGrid to use the latest ui-grid. When the page is loaded I see an empty grid, on checking the developer tools I realized that data is indeed come to the widget. When I resize the window the grid data is visible. This is happening when the page is loaded for the first time. Subsequent changes in the data are seen properly. I tried to change the default grid options, but they didn't fix the issue.

Not sure if this is already observed and reported, please let me know if I can do something to fix this.

RajaSreekanth avatar Sep 11 '15 08:09 RajaSreekanth

What are your grid options?

JLLeitschuh avatar Sep 18 '15 16:09 JLLeitschuh

+1

vm.gridOptions = { enableFiltering: true, enableRowSelection: true, enableColumnMenus: false, enableRowHeaderSelection: false, multiSelect: false, data: rallies, paginationPageSizes: [ 10, 20, 30 ], paginationPageSize: 15, enableVerticalScrollbar: uiGridConstants.scrollbars.NEVER, rowTemplate: '

' }; vm.gridOptions.minRowsToShow = vm.gridOptions.paginationPageSize + 1;

ekaram avatar Oct 12 '15 17:10 ekaram

Sorry, for missing to reply earlier. We are not passing any additional parameters.

gridOptions = { data: data.rows, columnDefs: data.columnNames, enableSorting: true };

RajaSreekanth avatar Oct 14 '15 05:10 RajaSreekanth

for ng-grid i think you need to call gridOptions.ngGrid.buildColumns(); for ui-grid you need to call gridApi.core.refresh();

JavaBasketball avatar Oct 21 '15 05:10 JavaBasketball

Have you defined the div width ? The issue goes away if you define the width.

abhinavsayan avatar Dec 28 '16 10:12 abhinavsayan

@abhinavsayan - thanks a ton for this suggestion! None of the other answers to this bug worked for me.

gsalisbury-advera avatar Dec 14 '17 19:12 gsalisbury-advera

prefect!! set width. Thats it

Jimmy31071987 avatar Apr 01 '18 00:04 Jimmy31071987