Hi!, im evaluating Grid, when i set a Filter
When i start to write really takes too long filtering data (aprox 200 items only), but when i try this Grid in your 50K examples works very fast including INTERNET…how can this be posible? The PRO source code is different for autofiltering?
The filtering on “50K example” made on server side, and grid load only part of data initially so it works relative fast.
Are you using built in filtering functionality or custom one, the oncoming version will have built support of fast filtering, if you need it - please contact us at firstname.lastname@example.org - we will send you necessary code and samples.
In case of built in filtering next can be done to improve filtering speed
a) call filterBy not directly but through timeout ( please check original filtering samples ) - it will prevent calling filtering after each keystroke, but will call filtering after pause in typing.
b) you can enable static smart rendering mode ( just add enableSmartRendering command ) - in this mode filtering will be much faster ( actually filtering will take the same time , but rendering of filtered dataset may be much faster )
I’m using the example function on the client side:
var tVal = document.getElementById(“title_flt”).childNodes.value.toLowerCase();
for( var i=0; i< mygrid.getRowsNum();i++ )
var tStr = mygrid.cells2(i,0).getValue().toString().toLowerCase();
if( (tVal=="" || tStr.indexOf(tVal)==0) )
I can’t find the timeout example you mention.