We have encountered some issues using grid v3pro. It is parsing json data correctly but when using .load method, passing ‘json’ as data type fails. We have found bug and fixed it, can this be applied to furter versions?
dhtmlXGridObject.prototype._process_json = function (a) {
this._parsing = !0;
try {
a && a.xmlDoc ? eval("a=data=" + a.xmlDoc.responseText + ";") : typeof a == "string" && eval("data=" + a + ";")
} catch (b) {
dhtmlxError.throwError("LoadXML", "Incorrect JSON", [a.xmlDoc || a, this]), a = {
rows: []
}
}
var c = parseInt(a.pos || 0),
d = parseInt(a.total_count || 0),
e = !1;
(....)
a= was added to eval(“a=data=” + a.xmlDoc.responseText + “;”) as ‘a’ is valid json variable to iterate over, before it was an object used to fetch data.
There was build, where in compressed version of code, part which related to “eval” was compressed incorrectly. ( parsing json string to object was affected )
If you are using latest build - there is no need for update.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan