Results 1 to 5 of 5

Thread: a store doesn't load

  1. #1
    Sencha User
    Join Date
    Jul 2010
    Posts
    304

    Default a store doesn't load

    Hi,
    I implemented a store for a grid and the store doesn't load

    Code:
    var forumJsonStore = new Ext.data.JsonStore({
        proxy : new Ext.data.ScriptTagProxy({
                    url: '<c:url value="/forum/retirerListeDiscussion.htm"/>'
                    }),
        storeId: 'forum',
        autoload: true,
        root: 'records',
        totalProperty: 'totalCount',
        fields: champsDiscussion,
        idProperty: 'id'
    });
    
    var barrePageForum = {
            xtype: 'paging',
            store: forumJsonStore,
            pagasize: 25,
            displayInfo: true
    };
    
    var forumGrid = {
            xtype: 'grid',
            columns: forumColonneModel,
            store: forumJsonStore,
            loadMask: true,
            bbar: barrePageForum
    }
    Thank you in advance for your answers

  2. #2

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Posts
    304

    Default

    Hi mankz and thank you for your answer

    When I use a paging tool bar, I need to send the start and limit parameters for the store.

    Those parameters are normally controlled by the paging tool bar. So how can I tell the store to receive automatically those parameters from the paging tool bar ?

    Those parameters are changing while clicking on the paging tool bar. So the store must take into account those changes

  4. #4
    Sencha User ryanyoungsma's Avatar
    Join Date
    Oct 2008
    Location
    Indialantic, FL
    Posts
    66

    Default

    Instead of "autoLoad: true" use:

    PHP Code:
    forumJsonStore.load({params: {start:0,limit:30}}); 
    Place this below your store.
    _____________________________________________
    Ryan Youngsma

  5. #5
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Or:
    Code:
    autoLoad: {params: {start: 0, limit: 30}}

Similar Threads

  1. Store doesn't load
    By pluce in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 10 May 2010, 6:23 AM
  2. Store doesn't load data
    By Sgt.Pepper in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 2 Aug 2009, 7:40 AM
  3. Store doesn't load
    By stevieke in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 13 May 2009, 10:33 PM
  4. store.load doesn't read new values
    By BlackTalon in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 15 Apr 2009, 1:02 PM
  5. Store.load() bound to EditorGrid doesn't refresh
    By andrewjbaker in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 16 Apr 2008, 1:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •