pratik227 / quasar-qgrid

QGrid is a Quasar App Extension. It allows you to filter data for each column, Drag and Drop Rows and also allows you to filter data using header filters.
https://next-quasar-qgrid.netlify.app/
MIT License
112 stars 90 forks source link

How to get filtered data when the column filtered #90

Closed murataras closed 1 year ago

murataras commented 1 year ago

Required to display subtotals when filtering

kurtisas-k commented 1 year ago

Short-term solution for me was to throw a ref in the table and call this.$refs.tableId.rows and then throw a deep watch on the data object in the :rows prop. I didn't need it for calculation but for synchronizing data to an external DB, as well as exporting the winnowed data to the CSV as opposed to the full data set.

pratik227 commented 1 year ago

Hi @kurtisas-k @murataras,

New emit event is added for getting filtered data.

FilteredData

Description For getting filtered data

Example

@FilteredData="filteredData($event)"

https://next-quasar-qgrid.netlify.app/

Thanks, Pratik Patel

pratik227 commented 1 year ago

Closing this issue.