1. #1
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    62
    Answers
    3
    Vote Rating
    0
    alexdran is on a distinguished road

      0  

    Default Unanswered: sencha touch 2 - long list -- pagination and filter

    Unanswered: sencha touch 2 - long list -- pagination and filter


    Hello all,
    I have to manage a list of elements, downloaded as json from a website

    however the list is 3,000 elements (probably more) long and of course listening all these items is not efficient
    - for viewing it on portable device
    - for downloading bandwidth limit (1,1 Mb)

    is there an example, how can i perform an efficient list view with many elements?
    I suppose do I have to use pagination but how can I filter as well on the list ?
    is there an example I can have access


    thank you in advance for any support in this
    Alex

  2. #2
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    62
    Answers
    3
    Vote Rating
    0
    alexdran is on a distinguished road

      0  

    Default


    hello all
    any news about how to use long list with sencha (with pagination and filtering)

    thank you in advance for any help, tips or useful link / example

    alex

  3. #3
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    62
    Answers
    3
    Vote Rating
    0
    alexdran is on a distinguished road

      0  

    Default


    I'm now using listpaging plugin (as reference for anyone with the same question)

    I required it by
    'Ext.plugin.ListPaging'


    and used in my List view class in config with

    Code:
            plugins: [
                {
                    xclass: 'Ext.plugin.ListPaging',
                    autoPaging: true
                }
            ],


    on the store
    I added the params (pageParam) and pageSize in config

    Code:
                reader: {
                    type: 'json',
                    pageParam: 'page'
                }
    of course on the php server side I modified the query to accept page parameter and set LIMIT based on it and on pageSize (for me a constant value)

    I'm now trying to:

    - add a filter to the page (suppose to perform in a similar way but has to identify the params on store)
    - would like to have the same performance storing list data on localstorage after first load


    thank you again for any help in this, alex

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar