Our state of the art Gantt chart


Post by rahulranjan »

Hi
How can we disable resource assignment for certain task

Post by rahulranjan »

Hi
Can you look into this.

Post by rahulranjan »

Hi how can we disable resource assignment column for particular task type.

Post by mats »

Please don’t post multiple times, or we cannot support you at all I’m afraid.

Post by rahulranjan »

Okay mistake it has gone , I didn't see the last one

Post by pmiklashevich »

It's not supported out of the box. Ticket here: https://app.assembla.com/spaces/bryntum/tickets/8459

Pavlo Miklashevych
Sr. Frontend Developer


Post by rahulranjan »

Hi Is it possible to achieve right now ?

Post by pmiklashevich »

Everything is possible. Please override CellEdit.startEditing function:
class CellEditFeatureOverride {
    static get target() {
        return {
            class   : CellEditFeature,
            product : 'gantt'
        };
    }

    startEditing(cellContext = {}) {

        const me = this;

        if (!(me.editorContext || me.grid.readOnly || me.grid.disabled)) {
            const normalizedContext = me.grid.normalizeCellContext(cellContext),
                record            = me.store.getById(normalizedContext.id);

            if (record.name === 'Linda') {
                return false;
            }
        }

        return this._overridden.startEditing.call(this, cellContext);
    }
}

Override.apply(CellEditFeatureOverride);

Pavlo Miklashevych
Sr. Frontend Developer


Post by rahulranjan »

Hi
So for this i need scheduler package right ?

Post by mats »

No it'll be part of the core package which the Gantt builds upon. Btw this ticket is now fixed, coming in the next release: https://app.assembla.com/spaces/bryntum/tickets/8459

Post Reply