Support for v6.x of our Scheduling components


Post by Arno Voerman »

Morning,
I'm working on loading sub-projects (which works now...)
My technique is simple:
1: execute cm.load with some extra parameters to get the data of the sub-project
2: in beforeloadapply manually load the data on the right spot and return false...

This works fine, but the loadmask keeps active. To prevent his, I had to add a callback function in cm.load() and execute the following two commands:

cm.activeRequests.load && cm.cancelRequest(cm.activeRequests.load.desc);
cm.fireEvent('loadcanceled', cm);

Is this the right way or am I missing a step.

Arno


Post by arcady »

Triggering loadcanceled should be enough I think.
As an option you could call gantt.onCrudOperationComplete() private method which hides the mask.


Post by Arno Voerman »

Thanks. Arcady. But should it not be part of the beforeloadapply-method when someone returns false?

Maybe a nice extension for the gannt to except links/load subprojects.

Arno


Post by arcady »


Post by Arno Voerman »

thanks


Post Reply