PDA

View Full Version : DataView Paging



tino7_03
18 Dec 2011, 9:27 AM
Dear,
I'm working for create an application with large data to display. Is it a paging solution in sencha touch 2 for DataView component? I'm testing Ext.ux.touch.grid. It is a very good component!!!! Buat when I load 1000 records the dataview performances are very slow...
Can you give me an idea for using st2 in this scenario?
thanks in advance.

Fausto

mitchellsimoens
19 Dec 2011, 7:22 AM
You are programming for a mobile device. In the user of your app mindset, would you want to scroll through 1,000 rows? I wouldn't so yes... you should page your records. I find 25 to be pretty good but for performance it depends on your template structure.

If I have time, I will be building a paging feature to the grid.

tino7_03
19 Dec 2011, 11:17 PM
You are th number one! The paging solution is perfect for me!
Thanks very much!!!

tino7_03
19 Dec 2011, 11:20 PM
In the 1.x framework version there is a Buffered List. It is not important (because now i can use paging), but can you think is it possible to extend the buffer to your grid component?
Thanks again.
Fausto

mitchellsimoens
20 Dec 2011, 3:34 AM
In the 1.x framework version there is a Buffered List. It is not important (because now i can use paging), but can you think is it possible to extend the buffer to your grid component?
Thanks again.
Fausto

I do not like the buffered list as on a mobile device, I don't want to keep scrolling. I'd rather use paging.

MahlerFreak
20 Dec 2011, 12:51 PM
I'm currently working on a version of the BufferedList for ST2, which will include paging, essentially turning it into an "infinite list". The basics are up and running, but I've got several more days work on all of the features and corner cases before I can release it.

On the paging vs. scrolling thing for large data sets, it depends on both personal preference and the nature of the data. Large data sets with scrolling and index bar are a basic browsing paradigm in the mobile iTunes and iTunes Remote apps, for instance. But having some kind of rational way to group the data against index bar entries is necessary for that kind of implementation.

mitchellsimoens
20 Dec 2011, 12:57 PM
On the paging vs. scrolling thing for large data sets, it depends on both personal preference and the nature of the data.

That's why I never say don't do it :)

Is your BufferedList work on DataView or are you just targeting List?

MahlerFreak
20 Dec 2011, 1:16 PM
I'm specifically targeting List at the moment, but in fact generalizing it to dataView (at least for scrolling in only one direction) would be pretty easy. I'm having to override a big chunk of dataView implementation, as it is (mostly because the assumption of 1-1 mapping between list dom nodes and data records is baked into so many functions there).

There appears to be enough flux from release to release right now, that I probably won't try to do the generalization until we think the APIs are fairly nailed down.

torre76
26 Mar 2013, 8:39 AM
Hello,

since I needed a solution for DataView Paging, I extended the ListPaging plugin that came with Sencha Touch Framework.
It is a bare implementation but it is a working one.

https://github.com/torre76/ST2-DataViewPaging

Feel free to use and enhance it.