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

Grid header auto adjust issue.

Open debayan31 opened this issue 11 years ago • 9 comments

By default in my grid : enableFiltering: false

When I am calling toggleFiltering then filtering panel in coming correctly.But when I am once again calling toggleFiltering for hiding filters then filtering part is disappearing but width of header is not auto adjusting.

$scope.toggleFiltering = function () { $scope.gridOptions.enableFiltering = !$scope.gridOptions.enableFiltering; $scope.gridApi.core.notifyDataChange(uiGridConstants.dataChange.COLUMN); };

screenshot

debayan31 avatar Apr 20 '15 12:04 debayan31

Are you able to provide a plunker? It works on the tutorial still: http://ui-grid.info/docs/#/tutorial/103_filtering, so there must be something different with your code.

PaulL1 avatar Apr 20 '15 20:04 PaulL1

PauL is it possible to provide any mail ID in which I will send whole code base so that you can just able to get exact problem when ever it is running locally.

debayan31 avatar May 18 '15 10:05 debayan31

PauL Issue is coming in below scenario

Filtering part Not coming when ::

id="grid" ui-grid="gridOptions" class="gridFlatStructure " ui-grid="gridOptions" ui-grid-edit ui-grid-selection

But filtering part coming when :: (After deleting ui-grid-selection)

id="grid" ui-grid="gridOptions" class="gridFlatStructure " ui-grid="gridOptions" ui-grid-edit

I think due to filtering textbox length (textbox css length) this problem is happening.

debayan31 avatar May 18 '15 10:05 debayan31

What version of ui-grid are you using?

When you say width of header, do you mean height of header? If so, I don't think the length of the filtering box would have any impact on that.

I'm not clear on "filtering part coming" v's "filtering part not coming" and what that means. Does that mean the header height is adjusting correctly when "filtering part not coming"?

PaulL1 avatar May 18 '15 18:05 PaulL1

I am using "ui-grid-unstable.js" with version "ui-grid - v3.0.0-rc.20-b2fdba9 - 2015-03-22".

I mean to say when I am using "ui-grid-edit and ui-grid-selection" then only issue is coming.

But the header height is adjusting correctly when I am not using "ui-grid-selection" property.

debayan31 avatar May 19 '15 13:05 debayan31

OK, I wonder if this is another flavour of the header height issues. Have you tried upgrading to latest unstable, which has some header height fixes?

PaulL1 avatar May 19 '15 18:05 PaulL1

I had tested this with latest version , height adjusing issue is not there but in this version has a another issue :

When 'Filtering condition is true' is on, 'scroll down data grid' to some extent, and then try to select any row then highlighted row and selection not aligned.

kindly find screenshot for details.

screenshot

debayan31 avatar May 22 '15 07:05 debayan31

Another issue observed: Download All Data As Pdf is now working.

Kindly refer screenshot for more details. adjusting issue not working working agggn function issue

My Current version is ui-grid - v3.0.0-rc.21-11b83eb - 2015-05-21

debayan31 avatar May 22 '15 09:05 debayan31

Duplicate of #3394. Closing, as I think the original issue is resolved. If there are new issues, they should really be raised as new items rather than tacking on to a different topic.

PaulL1 avatar May 23 '15 00:05 PaulL1