Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Brett on Mar 31, 2008 06:39
open dhtmlx forum
loadXMLString and Dynamic Loading

Does loadXMLString support the Dynamic Loading feature where dhtmlxGrid will only load x number of rows and then load more as the user scrolls? If so, is there any sample code?
Answer posted by Support on Mar 31, 2008 08:11
The dynamical loading support only from external XML sources ( through loadXMLString )
    http://dhtmlx.com/docs/products/dhtmlxGrid/samples/loading_big_datasets/50000.html?un=1206974295000
It is not complex to update code , to use loading from XML string instead of loading from external source

dhtmlxgrid_srnd.js , line 367


 this.xmlLoader.loadXML(this._dload+((this._dload.indexOf("?")!=-1)?"&":"?")+"posStart="+start+"&count="+count+"&sn="+(new Date()).valueOf());

can be replaced with
    var xml=generate_xml_for(start,count);
    this.xmlLoader.loadXMLString(xml);