1rosehip / jplist

jPList jQuery Data Grid Controls is a flexible jQuery plugin for sorting, pagination and filtering of any HTML structure (DIVs, UL/LI, tables, etc).
http://jplist.com
Other
438 stars 176 forks source link

How to reset single filter in JPList #222

Closed Amol-Dhokane closed 8 years ago

Amol-Dhokane commented 8 years ago

Hi,

Thanks in advance. Can anyone help me "How to reset single filter in JPList?" Currently JPList clear the all filters, however I have given Reset option under each filter and want to clear a single filter.

1rosehip commented 8 years ago

Unfortunately it's not possible out of the box using the reset button control. But you may create a custom button once clicked it resets your filter. The implementation depends on the kind of filter you need to reset.

iManu commented 7 years ago

Hi @1rosehip, Can you explain how to implement the custom button you are talking about ? For example I need to reset only range slider filter but not the others.

Actualy I use deepLinking, on custom button click I get hash with JS and clean data on desired filter to remove, then set new cleaned hash to location and reload page. That's working but it's a little bit tricky :/

Thanx !