Page 1 of 1

Custom viewPreset request

Posted: Mon Oct 28, 2019 4:54 am
by didot
Dear Team,
We really need your support, We have a urgent request by client for Chart view.
Now We use viewPreset = 'weekAndDay' but it show all day in that week, Our Client only need show data between start date and end date. How can we make viewPreset is not grouped by week, Please your advice and support.

Re: Custom viewPreset request

Posted: Mon Oct 28, 2019 11:34 am
by sergey.maltsev
Hi!

You could set startDate and endDate for Scheduler to show the exact period.
https://www.bryntum.com/docs/scheduler/#Scheduler/view/TimelineBase#config-startDate

In config

Code: Select all

new Scheduler({

    startDate          : new Date(2019, 10, 1),
    endDate            : new Date(2019, 10, 11),
    ...
    
});
or in code

Code: Select all

scheduler.startDate = new Date(2019, 10, 1);
scheduler.endDate = new Date(2019, 10, 11);

Re: Custom viewPreset request

Posted: Tue Oct 29, 2019 2:59 am
by didot
i already put StartDate and EndDate in config.

for example i setup in config
startDate : new Date(2019, 10, 29),
endDate : new Date(2019, 11, 26),

but in calender show from 27 october 2019 , i dont need group by week ..

Re: Custom viewPreset request

Posted: Tue Oct 29, 2019 5:06 am
by sergey.maltsev
Hi!

Please try to use autoAdjustTimeAxis: false config option.
https://www.bryntum.com/docs/gantt/#Scheduler/view/TimelineBase#config-autoAdjustTimeAxis

Re: Custom viewPreset request

Posted: Thu May 28, 2020 11:54 am
by brule

Bryntum Gantt version 2.1.4 problem: I have made many changes. After clicking undo once, I found that both the undo and redo buttons have become disabled


Re: Custom viewPreset request

Posted: Thu May 28, 2020 6:43 pm
by alex.l

Hi brule,

Could you provide a testcase and describe your problem more detailed? Maybe try to reproduce this problem in one of our examples?

Alex