[Again]: SmartRendering doesn't work

The same procedure as every year: SmartRendering doesn’t work and i don’t now why. :cry:
I use v3.x Pro with the following code:

script type="text/javascript" src="dhtmlxcommon.js"></script>
<script type="text/javascript" src="dhtmlxgrid.js"></script>
<script type="text/javascript" src="dhtmlxgridcell.js"></script>
<script type="text/javascript" src="dhtmlxgrid_srnd.js"></script>
<script type="text/javascript" src="dhtmlxgrid_filter.js"></script>
<script type="text/javascript" src="dhtmlxdataprocessor.js"></script>
<script type="text/javascript" src="dhtmlxwindows.js"></script>
<script type="text/javascript" src="dhtmlxcontainer.js"></script>
<script type="text/javascript" src="dhtmlxtabbar.js"></script>
<script type="text/javascript" src="dhtmlxgrid_drag.js"></script>
(...)
mygrid = new dhtmlXGridObject(...);
mygrid.setHeader(...);
mygrid.attachHeader(...)
mygrid.setColumnIds(...)
myGrid.setInitWidths(...);
myGrid.setColumnMinWidth(...);
myGrid.setColAlign(...);
myGrid.setColTypes(...);
myGrid.enableTooltips(...);
myGrid.setColSorting(...);
mygrid.init();
mygrid.enableSmartRendering(true, 50);
(...)
mygrid.loadXML(...);

After loading i get (as example) the following datas:

<?xml version="1.0" encoding="UTF-8"?>
<rows pos="0" total_count="424">
<row id="24">
<cell></cell>
<cell></cell>
<cell></cell>
</row>
{more datas}
</rows>

The XML request has been validated on xmlvalidation.com and is correct, no javascript error is thrown (in Firebug).
If now i scroll down and have reached >50 records no new request is fired by grid with ‘posStart’ and ‘count’ parameters and i don’t now why!?
And yes, more than once i looked in the examples.

Regards, Carsten

Ok, now (i don’t now why) it works, but in table view i’ve some gaps between rows 20…30.

Ok, the same problem like here:
dhtmlx.com/docs/products/kb/inde … dRowHeight

But setAwaitedRowHeight() brings only a little improvement

Do you have the same height for all rows ?

If height of rows is different ( you may have html markup inside rows, which changes their heights ) you can enable multiline mode in grid

grid.enableMultiline(true);

which must fix issue with row height in srnd mode

All rows have the same height and enableMultiline(true) does not improve it.

Ok, i played a little bit with setAwaitedRowHeight() and now it works ‘so la la’.

Grrmpph, new problem with filtering.

mygrid = new dhtmlXGridObject(...);
mygrid.setHeader(...);
mygrid.attachHeader(...);
mygrid.attachHeader(...)
mygrid.setColumnIds(...)
myGrid.setInitWidths(...);
myGrid.setColumnMinWidth(...);
myGrid.setColAlign(...);
myGrid.setColTypes(...);
myGrid.enableTooltips(...);
myGrid.setColSorting(...);
mygrid.init();
mygrid.enableSmartRendering(true, 50);

If i would like to filter i get a javascript error in dhtmlxgrid.js (Line 5483):
TypeError: row is null
if (row._locator){

In get_cell_value:function(row, ind, method) ‘row’ and ‘method’ are undefined. :open_mouth:

You can’t use client side filters with dynamically loaded dataset ( only part of data is available on client side, so client side filtering is not applicable ) - you need to use server side filtering.

docs.dhtmlx.com/doku.php?id=dhtm … lter_types

It’s ok if this doesn’t work but you should fix it like

if (!row)
{ return;}