How to access json object returned from server.

I have a datatable component that uses dynamic loading. The server responds with an object containing the following:

  • data [array or records to be displayed]
  • total_count
  • pos

as in the samples:

http://docs.webix.com/samples/15_datatable/16_dyn_loading/data/data_dyn.php

I can access the data with dtable.data.serialize() if needed, but I cannot find a way to access the whole json object returned from the server (ie access the total_count and pos properties).

I could add some more properties needed for my app in a single response instead of doing a second ajax call for these. These could be statistical data for my whole set to display in my app.

You can use the onParse event as in the following snippet:

http://webix.com/snippet/59e90bc3

Awesome! Thank you :slight_smile: