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!
}
}
}
});