Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilize the xhr.dt event in DataTables to return additional metadata from server side call #115

Open
6 tasks
EitanBlumin opened this issue Apr 10, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@EitanBlumin
Copy link
Owner

EitanBlumin commented Apr 10, 2019

The xhr.dt event in DataTables allows intercepting the Ajax data returned from the server side call.

https://datatables.net/reference/event/xhr

This should let us use additional data returned by the server, such as dataview metadata:

Some metadata types shouldn't be returned on every draw, such as available values for lookup fields (or maybe we do need to return them every time because data might be changed), and dataview metadata, so for that purpose we could utilize the draw parameter and return this metadata only when draw=1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant