Custom viewPreset request
Custom viewPreset request
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.
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.
- Attachments
-
- calender by.png (50.41 KiB) Viewed 7445 times
Last edited by didot on Tue Oct 29, 2019 3:00 am, edited 1 time in total.
- sergey.maltsev
- Core Developer
- Posts: 683
- Joined: Mon Dec 24, 2018 9:15 am
Re: Custom viewPreset request
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
or in code
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),
...
});
Code: Select all
scheduler.startDate = new Date(2019, 10, 1);
scheduler.endDate = new Date(2019, 10, 11);
Re: Custom viewPreset request
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 ..
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 ..
- sergey.maltsev
- Core Developer
- Posts: 683
- Joined: Mon Dec 24, 2018 9:15 am
Re: Custom viewPreset request
Hi!
Please try to use autoAdjustTimeAxis: false config option.
https://www.bryntum.com/docs/gantt/#Scheduler/view/TimelineBase#config-autoAdjustTimeAxis
Please try to use autoAdjustTimeAxis: false config option.
https://www.bryntum.com/docs/gantt/#Scheduler/view/TimelineBase#config-autoAdjustTimeAxis
Re: Custom viewPreset request
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
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