Our state of the art Gantt chart


Post by tasnim »

Hi,

It's happening because you're not passing an element, you're passing the instance which is not an element
So you'd need to pass the gantt element

Like this for example

    useEffect(() => {
        if (ganttRef.current) {
            EventHelper.on({
                element : ganttRef.current.instance.element,
                delegate : '.b-grid-row',
                click : () => {
                    console.log('click');
                }
            });
        }
    }, []);

This should be working for you.

Best of luck,
Tasnim


Post by jhill@achieveit.com »

Thanks, that does work.


Post Reply