Our state of the art Gantt chart


Post by shaveta »

Hi,

I am using server-side Gantt when loadData API call fails I have added error handling https://www.bryntum.com/docs/gantt/api/Scheduler/crud/AbstractCrudManagerMixin#event-loadFail it is working fine but along with that code is throwing exceptions and a Toast message from the bryntum library is added behind the popup.

Is there a way to overwrite/hide the message when loadFail event

Screenshot 2022-09-09 at 6.16.14 PM.png
Screenshot 2022-09-09 at 6.16.14 PM.png (1.29 MiB) Viewed 231 times

triggers?


Post by marcio »

Hi shaveta,

You can use https://www.bryntum.com/docs/gantt/api/Core/mixin/LoadMaskable#config-loadMaskError

new Gantt({
	loadMaskError : false
})            

Best regards,
Márcio


Post by shaveta »

marcio wrote: Fri Sep 09, 2022 4:08 pm

Hi shaveta,

You can use https://www.bryntum.com/docs/gantt/api/Core/mixin/LoadMaskable#config-loadMaskError

new Gantt({
	loadMaskError : false
})            

I have tried the below code but it is still the same

const gantt = new Gantt({
        project: project,
        loadMaskError: false,
        id: 'theGantt',
        stateId: 'b-gantt-state',
        flex: '80%',
        dependencyIdField: 'sequenceNumber',
        columns: arrShowColumns,
        ......
    })    
        

Post by marcio »

Hey,

Which version are you using?? In the last version of Gantt that worked as expected.

A possible workaround for you would be to check the CSS selector for that toast message and add

display: none;

to it.

Best regards,
Márcio


Post Reply