clear GVnix datatables filter

64 Views Asked by At

whit gvnix-2.0.0.M1

the filter (automatic input generated) for search in table persist value after submit or close or reload page

I need clear this

example for filter

2

There are 2 best solutions below

0
On BEST ANSWER

Datatables componentes stores that values using the localStorage feature provided your browser.

Use the localStorage.clear() javascript function to clear the values of your component.

Read more about the localStorage here:

https://www.w3schools.com/html/html5_webstorage.asp

Hope it helps,

0
On

If you need DT, I recommend you the latest release of Spring Roo, the version RC1.

http://projects.spring.io/spring-roo/

Hope it helps.