How to custom-refresh data onExport
#7720
Labels
help-wanted
Issues we need or would love help from the community to resolve.
onExport
#7720
Description
I am not using the built-in server-side pagination, which is a separate issue^. I am using my own server-side pagination by sending queries to my Django view
onSort
,onSearch
, andonColumnSearch
, which uses the BST options (limit
,offset
,search
,order
, andsort
[and some yet-to-be-developed column search params]) to retrieve a page's worth of a Djangoobject_list
QuerySet
data for display.I would like to add an
onExport
event code to grab all the JSON data for export. I.e. Let's say I would have 1000 pages, but the only data currently present is 10 rows worth. Since I'm not using the built-in server-side pagination, how can I retrieve that JSON data and make the export operate on it instead of on the data currently displayed in the django template? Is that possible?I realized that if I used the same mechanism to retrieve the Django
QuerySet
object containing all of the data to populate the page, it would interrupt the export operation, though perhaps upon page load, I could call the export... (I'm still thinking this through.)^ I want to use a django template to render the table rows, but when I use the built-in server-side pagination, it replaces my customized row template with the retrieved JSON data without all of the template decorations.
Example(s)
The text was updated successfully, but these errors were encountered: