Demonstration of an asynchronous working CacheTableTo improove the handling of the scrollbar you may write an async dataProvider. In this case write getData(from, count) so that it returns false instead of the requested data. Before returning false, you may start an AJAX-Call or however you reach your needed data. If later on you get the data u pass the records to the table via setData(). In this case you have to implement your dataProvider so that it has access to th cacheTable Object. In this example a (Database-) response time of 40ms + 5ms per requested record is simulated. The progressive-load mechanism (by default on) is switched off in this example to show better how the loading and inseriting of the data works. ProgressiveLoad means that alwa after the table has got displayd all data for the visible part, it starts to preload the next records in the background. |