1. #1
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475
    Vote Rating
    2
    smokeman is on a distinguished road

      0  

    Default store loadRawData callback

    store loadRawData callback


    I need to show a window with a grid tied to a store, but not before the store is loaded via a loadRawData request. how would I create a callback for this instance?
    Code:
     Ext.Ajax.request({
            url:'../../AjaxUserTR1Interface',
            method: 'POST',
            params:{fn:'gettr1triptotal',trid:trid,tripid:tripid},
            callback:function(opts,suss,resp){
                if(resp !== null){
                    var json=Ext.JSON.decode(resp.responseText);
                    console.log(json);
                    if(json){
                        var tripdata = Ext.decode(json.data[0].Td_tripjson);
                        var tbstore = Ext.getStore('tripBldrStore');
                        console.log('loading json records');
                        console.log(tripdata);
                        tbstore.loadRawData(tripdata);
                       //callback on this, so I know when it's finished!
                    }          
                }
            }
        });

  2. #2
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475
    Vote Rating
    2
    smokeman is on a distinguished road

      0  

    Default


    nevermind, this is synchronous so it shouldn't be needed.

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