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

Angular UI grid column filter doesnt appear after pin / unpin column:

Open JaydeepPatoliya opened this issue 7 years ago • 10 comments

down vote favorite I am using latest version of angular UI grid.

Angular UI grid filter doesn't appear after pin / unpin column:

Steps to follow:

Pin any column (Email / phone) etc. Unpin same column Now click toggle filtering button Textbox for filtering on same column doesn't appear I have created Plunker to demonstrate this:

Plunk Demo

I tried refreshing grid / notifyDataChange, but seems doesn't work. Please suggest possible solutions.

JaydeepPatoliya avatar Mar 06 '17 06:03 JaydeepPatoliya

Hi All,

Can anyone face same problem? I am stuck to find solutions. Appreciate if anyone find this solutions. Thank

JaydeepPatoliya avatar Mar 07 '17 09:03 JaydeepPatoliya

I am working on it

mportuga avatar Mar 10 '17 05:03 mportuga

I am also facing same issue. Is there any workaround to resolve this.

BhagyashriJ avatar Mar 10 '17 08:03 BhagyashriJ

@mportuga is there any update?

JaydeepPatoliya avatar Mar 14 '17 10:03 JaydeepPatoliya

None yet.

mportuga avatar Mar 24 '17 21:03 mportuga

gridApi.pinning.on.columnPinned($scope, function (colDef, container) { if (isRenderingComplete && !container) { var gridCol; angular.forEach($scope.gridApi.grid.columns, function (val) { if (val.field === colDef.field) { gridCol = val; } }); if(gridCol) { uiGridGridMenuService.toggleColumnVisibility(gridCol); $timeout(function () { uiGridGridMenuService.toggleColumnVisibility(gridCol); }, 0); } } });

feehong avatar Dec 07 '17 09:12 feehong

Hi everyone So this issue still happens. I'm using the last published version, with a custom modification, and for what I gather from debbuggin is this:

When I unpin the method updateHeaderOptions runs before the event $destroy hits, wich makes the $scope.col.filterable become undefined, and the filter input vanish. When I pin the exact opposite occurs, and everything gets corrected.

Do you @mportuga have any ideas? I need to put this to work, even though it takes time to be release in the official version.

ThCC avatar Jun 06 '19 12:06 ThCC

Hello Everyone,

Have there been any updates on this fix? The company that I work for is still facing this issue. I was wondering if a solution has been tested to be incorporated into a future release? If not, is there any plan for resolving this issue and what is the associated timeline?

Thank you for any information that you can provide.

BreTuck avatar Sep 15 '20 19:09 BreTuck

Hey Everyone, Any update on this issue?

deeprajmaurya avatar Feb 16 '21 16:02 deeprajmaurya

Hi everyone So this issue still happens. I'm using the last published version, with a custom modification, and for what I gather from debbuggin is this:

When I unpin the method updateHeaderOptions runs before the event $destroy hits, wich makes the $scope.col.filterable become undefined, and the filter input vanish. When I pin the exact opposite occurs, and everything gets corrected.

Do you @mportuga have any ideas? I need to put this to work, even though it takes time to be release in the official version.

Hey Everyone, Any update on this issue?

ThCC avatar Mar 23 '21 13:03 ThCC