1. #1
    Ext User
    Join Date
    Feb 2010
    Posts
    3
    Vote Rating
    0
    diegouc is on a distinguished road

      0  

    Question GridPanel with xmlstore and PagingToolbar

    GridPanel with xmlstore and PagingToolbar


    Hi, I have this code
    Code:
        Ext.onReady(function(){
    
       var store = new Ext.data.XmlStore({
       
      proxy: new Ext.data.HttpProxy({
                url: 'http://localhost/TestUserControlYUI.NetEnvironment/sheldon.xml'
            }),
      
        record: 'Item', // records will have an "Item" tag
    
        id: 'ASIN',
        totalRecords: '@total',
        remoteSort: true,
        
        fields: [
            // set up the fields mapping into the xml doc
    
            // The first needs mapping, the others are very basic
    
            {name: 'Author', mapping: 'ItemAttributes > Author'},
            'Title', 'Manufacturer', 'ProductGroup'
        ]
    });
    
        
    
        var grid = new Ext.grid.GridPanel({
            width:700,
            height:500,
            title:'ExtJS.com - Browse Forums',
            store: store,
            trackMouseOver:false,
            disableSelection:true,
            loadMask: true,
    
             columns: [
                {header: "Author", width: 120, dataIndex: 'Author', sortable: true},
                {header: "Title", width: 180, dataIndex: 'Title', sortable: true},
                {header: "Manufacturer", width: 115, dataIndex: 'Manufacturer', sortable: true},
                {header: "Product Group", width: 100, dataIndex: 'ProductGroup', sortable: true}
            ],
    
    
          
    
            // paging bar on the bottom
            bbar: new Ext.PagingToolbar({
                pageSize: 5,
                store: store,
                displayInfo: true
           
    
    
          })
        });
    
        // render it
        grid.render('topic-grid');
    
      
        store.load({params:{start:0, limit:5}});
    });
    The problem is that not show nothing but i don't know why
    Tranks for help me.

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    9
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default


    Add a loadException handler for your store. Also use FireFox + FireBug.

  3. #3
    Ext User
    Join Date
    Feb 2010
    Posts
    3
    Vote Rating
    0
    diegouc is on a distinguished road

      0  

    Default


    How Add a loadException?
    Sorry i new in extjs

  4. #4
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    9
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default


    I'd suggest some smaller simpler steps then before jumping into it

    Definitely get yourself set up with FireFox + FireBug - indispensible for development/debugging, and start with http://www.extjs.com/learn/Main_Page

    For this particular problem see: http://www.extjs.com/learn/Ext_FAQ_G...ing_load.28.29

  5. #5
    Sencha User bclinton's Avatar
    Join Date
    Nov 2007
    Posts
    274
    Vote Rating
    6
    bclinton will become famous soon enough

      0  

    Default


    Quote Originally Posted by diegouc View Post
    How Add a loadException?
    Sorry i new in extjs
    There is an exception event in the XmlStore class:
    http://www.extjs.com/deploy/dev/docs....data.XmlStore

    so, do something like this:
    Code:
    store.on('exception', function(proxy, type, action, options, response, arg) {
        console.log('I am seeing this message in my console because I installed Firebug!');
    });

  6. #6
    Ext User
    Join Date
    Feb 2010
    Posts
    3
    Vote Rating
    0
    diegouc is on a distinguished road

      0  

    Default


    Now add this line method : 'GET' in the HttpProxy
    and load all record but not is paging

  7. #7
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    9
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default


    You really need to read the FAQs.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi