1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    17
    Vote Rating
    0
    onedaysale is on a distinguished road

      0  

    Default gridpanel store.loadData doesnt refresh data

    gridpanel store.loadData doesnt refresh data


    I am trying to refresh the data on a grid using loadData but it doesnt refresh.

    Code:
    grid.getStore().loadData(Ext.grid.ResultData, false);
    I've read the documentation and grid FAQ but I couldnt find anything that helped.

    Thanks in advance.

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Did you confirm that the data in the local store changed? Some other process changed the data store?

  3. #3
    Sencha User
    Join Date
    Jun 2008
    Posts
    17
    Vote Rating
    0
    onedaysale is on a distinguished road

      0  

    Default


    Yes. i am doing a debug on the JSON string and its definately different.

  4. #4
    Sencha User
    Join Date
    Jun 2008
    Posts
    17
    Vote Rating
    0
    onedaysale is on a distinguished road

      0  

    Default


    another thing that i thought was weird was i alert the grid.getStore().getCount() before and after I load data and its correctly says 0 and 26 the first time. When i refresh the data, the first alert is 0 again!? shouldnt it be 26?

  5. #5
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Some of your code would help here...


    I recall looking into this before, I recall from checking the source that the grid should refresh regardless of the data source.

  6. #6
    Sencha User
    Join Date
    Jun 2008
    Posts
    17
    Vote Rating
    0
    onedaysale is on a distinguished road

      0  

    Default


    There isnt much code to post. I'm doing an ajax call to get the data again.
    and the only thing I have is what i posted originally


    Code:
    Ext.grid.ResultData = eval(jsonString);grid.getStore().loadData(Ext.grid.ResultData, false);

    here's the config for the grid

    Code:
     
    var xg = Ext.grid;
    // reader for attributes grid
    var reader = new Ext.data.ArrayReader({}, [
    {name: 'name'},
    {name: 'value'}
    ]);
    var attribData = [];
    var gridAttrib = new xg.GridPanel({
    id:'docAttrib',
    title: 'Document Attributes',
    store: new Ext.data.Store({
    reader: reader,
    data: attribData
    }),
    cm: new xg.ColumnModel([
    //new xg.RowNumberer(),
    {header: "Name", width: 150, sortable: true, menuDisabled:true, dataIndex: 'name'},
    {header: "Value", width: 450, sortable: true, menuDisabled:true, dataIndex: 'value'}
    ]),
    width:638,
    height:400,
    frame:true,
    hideBorders:true,
    bodyBorder:false,
    disableSelection:true,
    trackMouseOver: false
    });
     
    if (docReviewWin==null) {
    docReviewWin= new Ext.Window({
    id:'docReviewWin', 
    el:'docReviewDiv',
    title:'Document for Review',
    width:660,
    height:560, 
    closable:true, 
    minimizable:false,
    maximizable:false,
    draggable:true,
    plain: true,
    floating:true,
    shadow:true, 
    hideBorders:false,
    bodyBorder:true,
    resizable:false,
    ismodal:true,
    border:true,
    autoScroll:true,
    manager: windows,
    closeAction: 'hide',
    items: [notes, gridAttrib]
    });
    }
    docReviewWin.show();

Thread Participants: 1

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