1. #1
    Sencha User demon222's Avatar
    Join Date
    Jan 2008
    Location
    Poland, Warsaw
    Posts
    132
    Answers
    4
    Vote Rating
    4
    demon222 is on a distinguished road

      0  

    Default Unanswered: Bug St B3 - plugin pullrefresh

    Unanswered: Bug St B3 - plugin pullrefresh


    when you perform an action refresh - to store devote more records to the list (the same)
    0 refresh: 3
    1 refresh: 6 records
    etc ...

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,824
    Answers
    3470
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I'm sorry, I don't follow
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User demon222's Avatar
    Join Date
    Jan 2008
    Location
    Poland, Warsaw
    Posts
    132
    Answers
    4
    Vote Rating
    4
    demon222 is on a distinguished road

      0  

    Default


    please test senchatouch/2.0.0.B3/examples/list/

    width contact.json
    PHP Code:
    [
         { 
    "firstName""Tommy""lastName""Maintz" },
         { 
    "firstName""Ed""lastName""Spencer" },
         { 
    "firstName""Jamie""lastName""Avins" },
         { 
    "firstName""Aaron""lastName""Conran" }


  4. #4
    Sencha User demon222's Avatar
    Join Date
    Jan 2008
    Location
    Poland, Warsaw
    Posts
    132
    Answers
    4
    Vote Rating
    4
    demon222 is on a distinguished road

      0  

    Default


    is bug or not ????????

  5. #5
    Sencha User demon222's Avatar
    Join Date
    Jan 2008
    Location
    Poland, Warsaw
    Posts
    132
    Answers
    4
    Vote Rating
    4
    demon222 is on a distinguished road

      0  

    Default


    You can litter amendment to this plugin (override)?

  6. #6
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    162
    Answers
    7
    Vote Rating
    2
    UbuntuPenguin is on a distinguished road

      0  

    Default


    I think he is saying that on refresh, it is adding data to the store instead of replacing it.

  7. #7
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,824
    Answers
    3470
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by UbuntuPenguin View Post
    I think he is saying that on refresh, it is adding data to the store instead of replacing it.
    IF that is the case, it is the expected behavior of this plugin in ST2
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  8. #8

  9. #9
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,824
    Answers
    3470
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by demon222 View Post
    I'm not seeing this with the example that comes with beta3.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  10. #10
    Sencha User demon222's Avatar
    Join Date
    Jan 2008
    Location
    Poland, Warsaw
    Posts
    132
    Answers
    4
    Vote Rating
    4
    demon222 is on a distinguished road

      0  

    Default


    what ??? not ??

    yours code ST B3 (example list)
    i cut json !!

    PHP Code:
    /**
     * This simple example shows the ability of the Ext.List component.
     *
     * In this example, it uses a grouped store to show group headers in the list. It also
     * includes an indicator so you can quickly swipe through each of the groups. On top of that
     * it has a disclosure button so you can disclose more information for a list item.
     */

    //define the application
    Ext.application({
        
    //define the startupscreens for tablet and phone, as well as the icon
        
    tabletStartupScreen'tablet_startup.png',
        
    phoneStartupScreen'phone_startup.png',
        
    icon'icon.png',
        
    glossOnIconfalse,

        
    //require any components/classes what we will use in our example
        
    requires: [
            
    'Ext.data.Store',
            
    'Ext.List',
            
    'Ext.plugin.PullRefresh'
        
    ],

        
    /**
         * The launch method is called when the browser is ready, and the application can launch.
         *
         * Inside our launch method we create the list and show in in the viewport. We get the lists configuration
         * using the getListConfiguration method which we defined below.
         *
         * If the user is not on a phone, we wrap the list inside a panel which is centered on the page.
         */
        
    launch: function() {
            
    //get the configuration for the list
            
    var listConfiguration this.getListConfiguration();

            
    //if the device is not a phone, we want to create a centered panel and put the list
            //into that
            
    if (!Ext.os.is.Phone) {
                
    //use Ext.Viewport.add to add a new component into the viewport
                
    Ext.Viewport.add({
                    
    //give it an xtype of panel
                    
    xtype'panel',

                    
    //give it a fixed witdh and height
                    
    width350,
                    
    height370,

                    
    //make it centered
                    
    centeredtrue,

                    
    //make the component modal so there is a mask around the panel
                    
    modaltrue,

                    
    //set hideOnMaskTap to false so the panel does not hide when you tap on the mask
                    
    hideOnMaskTapfalse,

                    
    //give it a layout of fit so the list stretches to the size of this panel
                    
    layout'fit',

                    
    //insert the listConfiguration as an item into this panel
                    
    items:[listConfiguration]
                });
            } else {
                
    //if we are a phone, simply add the list as an item to the viewport
                
    Ext.Viewport.add(listConfiguration);
            }
        },

        
    /**
         * Returns a configuration object to be used when adding the list to the viewport.
         */
        
    getListConfiguration: function() {
            
    //create a store instance
            
    var store Ext.create('Ext.data.Store', {
                
    //give the store some fields
                
    fields: ['firstName''lastName'],

                
    //filter the data using the firstName field
                
    sorters'firstName',

                
    //autoload the data from the server
                
    autoLoadtrue,

                
    //setup the grouping functionality to group by the first letter of the firstName field
                
    grouper: {
                    
    groupFn: function(record) {
                        return 
    record.get('firstName')[0];
                    }
                },

                
    //setup the proxy for the store to use an ajax proxy and give it a url to load
                //the local contacts.json file
                
    proxy: {
                    
    type'ajax',
                    
    url'contacts.json'
                
    }
            });

            return {
                
    //give it an xtype of list for the list component
                
    xtype'list',

                
    //set the itemtpl to show the fields for the store
                
    itemTpl'<div class="contact2"><strong>{firstName}</strong> {lastName}</div>',

                
    //enable disclosure icons
                
    disclosuretrue,

                
    //group the list
                
    groupedtrue,

                
    //enable the indexBar
                
    indexBartrue,

                
    //enable the pull to refresh plugin
                
    plugins'pullrefresh',

                
    //set the function when a user taps on a disclsoure icon
                
    onItemDisclosure: function(recorditemindexe) {
                    
    //show a messagebox alert which shows the persons firstName
                    
    e.stopEvent();
                    
    Ext.Msg.alert('Disclose''Disclose more info for ' record.get('firstName'));
                },

                
    //bind the store to this list
                
    storestore
            
    };
        }
    }); 

    json:


    PHP Code:
    [
         { 
    "firstName""Tommy""lastName""Maintz" },
         { 
    "firstName""Ed""lastName""Spencer" },
         { 
    "firstName""Jamie""lastName""Avins" },
         { 
    "firstName""Aaron""lastName""Conran" },
         { 
    "firstName""Dave""lastName""Kaneda" }/*,
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Ape", "lastName": "Evilias" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Ape", "lastName": "Evilias" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Ape", "lastName": "Evilias" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Ape", "lastName": "Evilias" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Tommy", "lastName": "Maintz" },
         { "firstName": "Ed", "lastName": "Spencer" },
         { "firstName": "Jamie", "lastName": "Avins" },
         { "firstName": "Aaron", "lastName": "Conran" },
         { "firstName": "Dave", "lastName": "Kaneda" },
         { "firstName": "Michael", "lastName": "Mullany" },
         { "firstName": "Abraham", "lastName": "Elias" },
         { "firstName": "Jay", "lastName": "Robinson" },
         { "firstName": "Zed", "lastName": "Zacharias "}*/