Grid smartrendering not rendering smartly

Hi,

I have a grid that’s not very large, only 6,500 lines, but it causes Firefox and IE to complain about a script not responding while the grid is loading. A dialog box asks if I want to continue or stop the script. If I keep continuing the grid eventually renders. I gave smart rendering a shot because it looks like this should be easy, but there were a couple problems. First I just did this before the init:

sourceCodeGrid_g.enableSmartRendering(true);

Only 30 lines rendered and there was no scrollbar. So I set this:

sourceCodeGrid_g.setAwaitedRowHeight(1);

I didn’t deliberately change the row height, so I don’t know why I would need this, but it mostly works. Unfortunately, if I scroll too fast it will skip lines and not allow to scroll all the way to the end of the grid.

I’m not doing dynamic loading. I’m just attaching everything to the grid. The order I’m doing things is:

  1. enableSmartRendering
  2. setAwaitedRowHeight
  3. init
  4. loadXMLString

Any ideas on how to get scrolling to work correctly?

Please, make sure that you didn’t enable paging functionality, or make sure that dhtmlxgrid_srnd.js was added to your page.

Here is the working example of the smart rendering functionality:
dhtmlx.com/docs/products/dht … 50000.html

If issue still occurs - please, provide a sample of your code to reconstruct the issue.

Paging is definitely off and dhtmlxgrid_srnd.js is included. The smart rendering works as long as you scroll slowly. If you scroll too fast it will skip lines. I’m just loading static xml, and not doing dynamic fetching like in the example.

What would you need to reconstruct the issue?

Thanks!

Terry

please, provide a sample of your code to reconstruct the issue.
Maybe you have a demo link where the issue can be reconstructed or you may create a complete demo (here is the tutorial):
docs.dhtmlx.com/doku.php?id=othe … leted_demo

I have the same problem.

The issue only occurs on the Terrace skin.

Eliéser

Unfortunately it’s not available to use more than 800 000 rows with the terrace skin for the reason of increased row height. Total height of the grid in case one million rows will be 40 000 000 pixels, which is really hard for rendering.