Whenever I click for filter/sort for remote filtering, Forms.asp
triggers using a proxy and automatically reloads. Previously, when I used the script below to reload the ExtJS grid with Forms.asp
returning new XML with filtered grid data, everything worked smoothly.
var gridStore = new Ext.data.Store({
gridId :'d_grid',
reader: new Ext.data.XmlReader({ record: etc }, etc etc),
proxy: new Ext.data.HttpProxy({ url: "Forms.asp?",
timeout: 120000 }),
baseParams:{
XML:$$("XML").value,
some more params
},
data: doc,
remoteSort: true});
However, when I tried to modify it with a WCF call like:
var gridStore = new Ext.data.Store({
gridId :'d_grid',
reader: new Ext.data.XmlReader({ record: etc }, etc etc),
proxy: new Ext.data.HttpProxy({ url: "Forms.asp?",
timeout: 120000 ,
success: function (response) {
FilterXml = response.responseText;
created new XmlDoc= with somechanges(FilterXml)
Ext.Ajax.request({
method: 'POST',
url:'/mayo/Service.svc/GetnewXML',
params: {'strIPXML': XmlDoc.xml}});
}}),
baseParams:{
XML:$$("XML").value,
some more params
},
data: doc,
remoteSort: true});
Here, I am capturing the response from the earlier ASP and further modifying it by sending it to a web service. With the newly added AJAX, the same formatted XML is returned as in the previous case (confirmed using success: function{ alert etc}
).
However, "The new XML is not feeding to the grid as it was in the previous case." No errors are thrown. I am using ExtJS 3.4. Please help.