Page 1 of 1

dataTable don't works after PF('').clearFilters()....

Posted: 20 Nov 2018, 18:23
by nesquivel
I have a list on my table and when i do some filters and I apply clearFilters()... The list donĀ“t accept addrow...i have to reload the browser to recharge a new row.

If I dont use filters everything is fine... but thats not the idea... because I need the filters.

I used dataTable.ResetValue but dont work.

Someone can help me???

Thank you Guys.

Re: dataTable don't works after PF('').clearFilters()....

Posted: 04 Dec 2018, 08:53
by Hawk13
I had the same issue after putting the DataTable inside the repeat Tag
I managed to solve the issue by manually filtering the data
I created a method that would sort the list (if the search input was empty, it would reset the filter)
then I used the <p:ajax> tag and called the method using the action listener
I also added in execute and render atrributes to the ajax tag to reload my datatable

All of this was executed on a button click though so it was no longer on keyup