EloquentStudio / StreamTable.js

StreamTable.js streams data for tables in the background, updates and renders them using templating frameworks like Mustache.js, HandleBars.js
http://eloquentstudio.github.io/StreamTable.js/stream.html
MIT License
385 stars 77 forks source link

Custom Filters data loading #38

Closed vaibhav8186 closed 5 years ago

vaibhav8186 commented 5 years ago

Once my data is loaded in the table, then I applied my custom filter which is one dropdown. If I select one value from a dropdown then request will go the backend and my query will return only 20 records out of 400 records. So stream-table fill these records and again request will go the backend, and again it will fetch the record and fill the table till it completes 400 records. So If my query returns 20 records then stream-table has to fill only 20 records in a table. why it is going to the backend again?

jiren commented 5 years ago

I don't think so this is correct behavior. On select StreamTable will do only filtering it is not going to fetch data from the remote service. FYI - StreamTable will start fetching data when StreamTable object initializes and it requesting data in batches until empty response not receives.