I had previously posted a topic “Using xmlB, define column order” and I got a response w/ the fix in 1 day ! ! ! Thx a million.
I found another potential bug.
I modified the sample “init_grid_xml.html” to use mygrid.parse() with an xmlB format. I could not get that to work. There were no errors but it displayed the 3 rows w/ no data ? ? ?
Here are my modifications to “init_grid_xml.html”…
Reload from XML string custom
0
loaded from xml string
1
loaded from xml string
2
loaded from xml string
fyi… this did not work w/ the original version of dhtmlxgrid_data.js (before the fix)
Thx in advance
You have missed loading type, the correct command will be
mygrid.parse(document.getElementById(‘str_xml_custom’).value,“xmlB”);
It must work with latest version of dhtlmxgrid_data.js
I added the “xmlB” parameter to the mygrid.parse() and I now get an error.
"Object doesn’t support this property or method"
I believe the error occurs here…
dhtmlXGridObject.prototype._process_xmlB=function(xml){
this._parsing=true;
var top=xml.getXMLTopNode(this.xml.top);
…
}
Hi, thx for the sample.html, however, the sample does not address the fix in the posting…
Using xmlB, define column order | Jul 24, 2008 02:11 |
Can I get a zip file that contains a working example of both fixes ?
Also, as a separate request, the sorting is based on the xml’s having an attribute of “id.” Can the library use an “id” tag instead ?
for example, instead of …
0
loaded from xml string
1
loaded from xml string
2
loaded from xml string
we have…
1
0
loaded from xml string
2
1
loaded from xml string
3
2
loaded from xml string
Sorry for inconvenience, correct js file attached to email.
>>Also, as a separate request, the sorting is based on the xml’s having an attribute of “id.”
dhtmlxgrid_data.js , line 62
var id=rows[i].getAttribute(“id”);
can be replaced with
var id=xml.doXPath(“./id”,rows[i])[0].firstChild.data;
dhtmlxgrid_data.zip (1.26 KB)