Hello team.
Since version 8.0.9 of dhtmlx gantt, the addTaskLayer function does not work properly. The renderer requires us to provide a getVisibleRange function - I cannot skip it. The documentation and the types file says that I can return undefined or void, but if I try to, it doesn’t work properly.
It seems to be a bug in Gantt. Thank you for letting us know about that! In the 8.0.9 version, the dev team added something different to check the range, but it is working correctly on the initial load only. I will add it as a bug to our internal bug tracker, and the dev team will fix it in the future updates.
Now, as a workaround, you need to return an object that contains all task IDs:
Hi,
I’m trying this in v9.0.1 and it is still not working, I’m getting a type error.
This is how the type is defined:
getVisibleRange: ((
gantt?: GanttStatic,
view?: any,
config?: GanttConfigOptions,
datastore?: any,
viewport?: AdditionalTaskLayer[“LayerViewport”],
)=> {start: number, end: number} | undefined | void ),