I have a grid initially loaded with some data from the Store. I have search field in the form through which I can filter data. After the entering search criteria in the search field... I am calling an ajax request and getting data into the app, but unable to load this data into the store and update the grid.
var myStore = Ext.data.StoreManager.get("driveScheduleStore");
var tempStore = Ext.data.StoreManager.get("tempDSStore");
var strSearch = Ext.getCmp('VoiceDIDSearch').getValue();
Ext.Ajax.request({
url: '.../TEST/GetDriveScheduleDataFilter.php',
method: 'POST',
params: {
VDID:strSearch
},
success: function(result, request) {
var json = result.responseText;
var temp = JSON.parse(json);
myStore.load(temp.SCHEDULE);
Ext.Msg.alert('Message',myStore.getTotalCount());
},
failure: function(result, request) {
Ext.Msg.alert('Error', 'An Error occured...');
}
});
Please help.
Thanks in advance.