PrimeReact datable filtered value is not working #3712
Unanswered
nehawankar174
asked this question in
PrimeReact Blocks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Everyone,
I have added primereact datable feature in my code using react js. My data is getting filtered but I wanted to get filted data which is undefined for me. Please help me to debug these things or guide me if I am wrong.
<DataTable
value={salesTableData}
filters={filters}
onFilter={onFilter}
filterDisplay="menu"
removableSort
selection={selectedDatas}
onSelectionChange={(e) => {
console.log(e.value);
setSelectedDatas(e.value);
}}
paginator
rows={numberOfRows}
rowsPerPageOptions={[5, 10, 25, 50]}
dataKey="id" // Important for unique row finding
>
const onFilter = (e) => {
console.log("Filter Event: ", e);
}
e.filteredValue is undefined for me. Please help me to get filtered data.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions