Hello. My question is about how to load XML file using structure like this?
mygrid.init();
mygrid.loadXML("…/LoadXMLFile.ashx?Path=myxml.xml");
This XML is in System Temp Directory. We can’t generate XML file into project directory because there is problem with FCN (File Change Notifications). Here is a link to the problem support.microsoft.com/kb/911272
So we need to generate XML files for dhtmlxGrid to the System Temp and load it using some service.
There is no problem to load grid in the first time, but when I click on plus image (Expand command) I get an error that “Error loading XML. XML is incorrect”.
How to fix this problem? How should I change the loading of XML file?
>>There is no problem to load grid in the first time, but when I click on plus image (Expand command) I get an error that “Error loading XML. XML is incorrect”.
If you want to load subgrid by clicking on plus image you can use “onSubGridCreated” event which can be used to customize sub-grid loading:
grid.attachEvent(“onSubGridCreated”,function(sub,id,ind,value){
//sub - subgrid object
//value - value from XML for related cell
sub.loadXML(necessary path to the file)
return false; //block default logic
});