zalex
June 9, 2016, 1:54pm
1
I want to use different data table views with a single data collection.
Backend output formed to match that doc: http://docs.webix.com/desktop__plain_dynamic_loading.html#serversiderequest
First amount of rows shown well. However, further data is not shown on scrolling (rows are empty).
Here is my webix snippet: http://webix.com/snippet/7ee042cd
Here is backend code (RoR): webix-experiments/currencies_controller.rb at 1437ca9872994cb316f34ee630099697c17fe669 · AlexanderZagaynov/webix-experiments · GitHub
Here is the data URLs:
Maria
June 13, 2016, 12:51pm
2
Hello,
the datasources are correct. The problem is that the DataTable takes loaded data from “currencies” DataCollection and does not send own requests. If you want that DataTable sends requests on scrolling, you need to set up data loading for it:
http://webix.com/snippet/975cb9ad
There are two possibilities if you want to use common DataCollection for all datatables:
do not use dynamic loading (rendering of DataTable is very fast, so possibly you don’t need dynamic loading)
use standalone pager. In this case you can call loadNext method for DataCollection on page change:
http://docs.webix.com/desktop__paging.html#standalonepager
http://docs.webix.com/samples/25_pager/12_standalone_pager.html