Custom viewPreset request

Request new features or modifications
Post Reply
User avatar
didot
Posts: 11
Joined: Thu Mar 21, 2019 9:35 am

Custom viewPreset request

Post by didot » Mon Oct 28, 2019 4:54 am

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.
Attachments
calender by.png
calender by.png (50.41 KiB) Viewed 164 times
Last edited by didot on Tue Oct 29, 2019 3:00 am, edited 1 time in total.

User avatar
sergey.maltsev
Core Developer
Core Developer
Posts: 313
Joined: Mon Dec 24, 2018 9:15 am

Re: Custom viewPreset request

Post by sergey.maltsev » Mon Oct 28, 2019 11:34 am

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);

User avatar
didot
Posts: 11
Joined: Thu Mar 21, 2019 9:35 am

Re: Custom viewPreset request

Post by didot » Tue Oct 29, 2019 2:59 am

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 ..

User avatar
sergey.maltsev
Core Developer
Core Developer
Posts: 313
Joined: Mon Dec 24, 2018 9:15 am

Re: Custom viewPreset request

Post by sergey.maltsev » Tue Oct 29, 2019 5:06 am

Hi!

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

Post Reply