Datatable : FilteredValue always null #2961
-
I want to get the money columns as subtotal in the datatable. I want to do this operation when filtered, so when I want to use the filteredValue operation, it always returns null. If I want to pull this operation lazyModel, it gives the result of the previous query.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Please provide an executable example using the PrimeFaces Test project. It is the only way developers can debug your problem to help. |
Beta Was this translation helpful? Give feedback.
-
You can reach from the link below |
Beta Was this translation helpful? Give feedback.
@kurtomerfaruk i fixed your example:
discussion-2961.zip
I think your issue is that Ajax Filter is Before the filtering not AFTER. The docs say https://primefaces.github.io/primefaces/15_0_0/#/components/datatable?id=ajax-behavior-events "On Filtering" which implies its before the filtering occurs. You want it AFTER the filtering has occurred but i am pretty sure its before to give the user the opportunity to do something before filtering.
The AJAX filter event provides you the Filter Meta to manipulate.