Gantt smart rendering problem

Hello!

I have a strange issue when smart rendering is on. Here is what happens:

  • load a large dataset, so that it doesn’t fit on the screen (vertical scroller appears)
  • scroll down to the bottom so that new rows appear
  • try to load only a task, that was primarily not rendered, using client filter, AJAX, … so that the page does not reload
  • the task WON’T show even if data is properly passed to parse()
  • if I disable smart rendering, all’s good

Using dhtmlxGantt v.4.0.0 Professional

I’ve tried to reproduce the problem on a fiddle, but without success. Is this bug version related? It seems that newer plugins are totally rewritten.

Thank!

It seems like the problem comes from:

getRange: function(buffer){}

I detected calculations where

gantt._order.slice(firstTask, lastTask);

was trying to find records that doesn’t existst!
Smart_rendering doesn’t take into account, that data (tasks) might change between the last and next rendering…
Does it make sense? Can you provide a patch?
Thank you.

Hi,

So far we can’t reconstruct the issue locally, still there really can be an issue with dataset size changes while in the smart rendering mode.
We will double-check our codebase.

If you can share any sample, where the issue can be reconstructed, it will help a lot ( you can send a demo link directly to the support@dhtmlx.com )

Hi Stanislav

Thank you for your effort.

I’ve just send a mail to support@dhtmlx.com with a test case.

Unfortunately, I’ve found no way to fix this, with or without support. Turned smart rendering OFF, version 4.0 is of no use to me. What a disappointment. :angry: