Categories | Question details Back To List | ||
DistributedParsing and SmartRendering I am looking for a way to load a large grid via Distrubuted parsing like "mygrid.enableDistributedParsing(true,200,500);" and after the entire grid is loaded turn on smartRendering to benifit from all the performance improvements. The main reason is I want to be able to sort the columns and with smart rendering initially I cant I get buffer Null Error If i set up a button to turn on smart rendering after loaded it seams to work and i can always scroll. I basically need an event to attach to to know when the distrubuted Parsing has recieved all records. Thanks in advance. Adam Answer posted by Support on Feb 05, 2009 08:06 >>I am looking for a way to load a large grid via Distrubuted parsing like Actually just enabling smartRendering will work much faster than mixed scenario. >>The main reason is I want to be able to sort the columns and with smart rendering initially I cant I get buffer Null Error This actual if you are using dyn. smart rendering with client side sorting. If you are using static smart rendering - when all data loaded at once you will be able to use client side sorting without any additional steps. If you need to use dyn. SRND mode and want to load all data in grid you can add next code snippet to the grid's code /** * @desc: force grid in dyn. srnd mode fully load itself from server side * @type: public * @param: buffer - how much rows grid can request from server side in one operation * @topic: 0 */ dhtmlXGridObject.prototype.forceFullLoading=function(buffer){ buffer=buffer||50; for (var i=0; i<this.rowsBuffer.length; i++) if (!this.rowsBuffer[i]){ if (this.callEvent("onDynXLS",[i,buffer])){ var self=this; this.load(this.xmlFileUrl+getUrlSymbol(this.xmlFileUrl)+"posStart="+i+"&count="+buffer, function(){ window.setTimeout(function(){self.forceFullLoading(); },100); }, this._data_type); } return; } }; It will enable grid.forceFullLoading(chunk_size) command, which force grid in dyn. srnd mode fully load itself from server by chunks |