Skip to Content
avatar image
Former Member

How to remove clear filter button in filter panel (Ds 1.6)

HI Experts,

searched blogs before posting

https://archive.sap.com/discussions/thread/3833726

I am using Filter panel for one of our requirement but unfortunately Clear filter button not working as expected. once we click on clear filter button user again need to click apply button then only filters is getting cleared i am not user whether it is expected behavior of filter panel or not?

i am planning to remove Clear filter button and place another button to clear all filter with single click

after debugging in f12 i got a code

.sapzenfilterpanel-PopupContainer .sapUiBtnS, .sapzenfilterpanel-PopupContainerDialog .sapUiBtnS

{

display:none ;

but unfortunately it was deleting all buttons in filter panel like we have apply and back button i am not able to see those as well but i wanna delete only clear filter button .

could anyone guide me on this

Thanks,

varun

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Feb 06, 2017 at 08:45 AM

    try this one

    .sapzenfilterpanel-PopupContainerFooter>.sapuiVltCell, .sapzenfilterpanel-PopupContainerFooter2>.sapuiVltCell:last-of-type
    {visibility: hidden !important;}

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02, 2017 at 08:43 PM

    Hi - if you select clear filters, then apply, it should work. Why is that not acceptable? Why go through the trouble to remove it?

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 03, 2017 at 06:37 AM

    Hi Varun,

    Don't use much time on CSS, you can just place a button over the clear filter button position on filter panel and align it accordingly for your requirement.

    So the filter panel will look as it is and your required functionality will be achieved.

    Thanks,

    Poovarasan

    Add comment
    10|10000 characters needed characters exceeded