Hi all,
I made a mobile app which has a dataview with static data loaded from server. When I swipe on the dataview items, a white page appears before the page is filled by items, how can avoid this beauvoir? I would like to show a spinner loading image while swipe transition, is it possible?
Thanks
Hi,
Unfortunately, we’ve found a bug related to the dataview rendering on mobile. For now, items doesn’t render while scrolling.
As for the spinner or another indicator, perhaps will be handier to extend a parent layout with the progress bar. In the following sample, the delay corresponds to the predefined datathrotle
parameter:
http://webix.com/snippet/a6530211
Moreover, default type
assumes that items have a different template (an “overlay”) while loading. You can modify it using the templateLoading
property.
Ok, thank you for your hint, I will give it a try. But I use static data so I don’t think that progress bar it will work since onDataRequest is called once at startup and not while swiping
> a white page appears before the page is filled by items
By the way, if data is rendering somehow, can you please specify the model of the device and OS/browser versions?
Another option for the dataview is onAfterScroll
event, but it will occur regardless of the difference between the initial and final scroll positions:
Hi Listopad,
my device is an LG G3 with Android 6.0
I think that swipping never releases the cpu time.
I found two way to avoid white page appears before the page is filled by items
: the first is to use the prerender: true
attribute but it’s very slow, the second is to put the datatable into a scrollview
component, the rendering transition is smooth but a little slow.