Our state of the art Gantt chart


Post by danmperez »

Hii,

We need to show form panel in place of left grid panel (locked grid) when any scheduling view bar is clicked, is there any possibility to replace left grid panel with any form panel.
Please find the attachment for the requirement that we have.
Please let me know regarding this.

Attachments
FormInLeftGanttView.png
FormInLeftGanttView.png (15.99 KiB) Viewed 217 times

Post by Maxim Gorkovsky »

Hello.
It is not possible to replace, but you can place popup over the locked grid and size it accordingly:

gantt.on({
    beforeTaskEditShow({ editor }) {
        editor.width = gantt.subGrids.locked.width;
        editor.height = gantt.scrollable.clientHeight;
        editor.centered = true; // disable auto align to task

        editor.on({
            show() {
                editor.setXY(...gantt.subGrids.locked.getXY()); /// move editor after show
            },
            once : true // remove listener each time
        });
    }
});

Post Reply