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

UI Issue with injecting custom filters template

Open msrikanth508 opened this issue 9 years ago • 10 comments

I am trying inject custom filters (Angualr ui-select controls) using filterHeaderTemplate property. Filter controls are getting rendered successfully but facing UI issues.

Filter controls are not visible properly.

image

As control is rendering in "ui-grid-header-canvas" element, because of overflow-hidden property it is happening.

But, when I added following styles

.ui-grid-header-viewport { overflow: visible; }

.ui-grid-top-panel { overflow: visible; }

.ui-grid-cell > .ui-grid-cell-contents { overflow: visible; }

grid becomes

image

Is there any way where it can be rendered properly?

msrikanth508 avatar Oct 09 '15 09:10 msrikanth508

@c0bra / @PaulL1 Could you please chime in here?

msrikanth508 avatar Oct 12 '15 07:10 msrikanth508

Having same problem:

http://plnkr.co/edit/rtUZ2nY39Bu7GUQZmuDw?p=preview

But your solution seems to fix. Although not sure if it is the best way to do this. The dropdown is there but behind the div.

With the css change you suggest:

http://plnkr.co/edit/zcAu3jN7wpMy2l80PS3f?p=preview

Related: #4506

bjaraujo avatar Oct 12 '15 15:10 bjaraujo

If you take a look here: http://brianhann.com/ui-grid-and-dropdowns/ you'll see I used UI-Select and the append-to-body option to get around the overflow issue.

c0bra avatar Oct 20 '15 15:10 c0bra

@c0bra Thank you for article that you have pointed out. It is working great after using "append-to-body" option like

image

But, it is behaving strangely while scrolling when drop-down is opened

image

msrikanth508 avatar Oct 21 '15 05:10 msrikanth508

@billyaraujo Did you find any solution?

@c0bra, do we have a any workaround here?

msrikanth508 avatar Dec 02 '15 16:12 msrikanth508

@msrikanth508 Changing the css seems to help but not sure that is right way to go. On the other hand, not all controls have the option append-to-body.

So I am still waiting for a better solution for this.

bjaraujo avatar Dec 02 '15 16:12 bjaraujo

Any better solution to this?

ichintan avatar Jan 21 '16 15:01 ichintan

@msrikanth508 Did this get resolve for you? I am stuck with the same issue. Infact after doing the css changes you recommended , I got the same issue like yours. Append-to-body tag not working for me. Can you help here? Thx

PS: I am not using angular ui-select since i want multi select functionality.

meenakshijha avatar Apr 29 '16 15:04 meenakshijha

@msrikanth508 Can share the sample code is a for me? email: [email protected] thanks!

sun1711asd avatar Feb 11 '17 11:02 sun1711asd

how to resolve same problem in react Bootstrap

Akhilll00 avatar Jul 25 '19 07:07 Akhilll00