Support Forum
the date range for bryntum scheduler is always remains 30 days (1 month).
If I make the date difference between the start date and end date of the scheduler as 3 months,
the range has been set one for one month from start date.
view preset is dayandweek
Is this the functionality of bryntum scheduler?
or else i have to change anything?
If I make the date difference between the start date and end date of the scheduler as 3 months,
the range has been set one for one month from start date.
view preset is dayandweek
Is this the functionality of bryntum scheduler?
or else i have to change anything?
Start date and end date of the bryntum scheduler has set dynamically in app.js file.
the code will be,
where, me is the object of vue.
the date difference between the start date and end date is 90 days.
But the date range is set only for 30 days in bryntum scheduler
the code will be,
setRVWData:function(response)
{
var me = this;
me.resources = response.resources;
me.events = response.events;
me.startDate = new Date(response.startDate);
me.endDate = new Date(response.endDate);
}
the date difference between the start date and end date is 90 days.
But the date range is set only for 30 days in bryntum scheduler
The values has been set for scheduler instance.
But the date range is always 30 days from the start date.
But the date range is always 30 days from the start date.
setRVWData:function(response)
{
this.$refs.scheduler.resources = response.resources;
this.$refs.scheduler.events = response.events;
this.$refs.scheduler.startDate = new Date(response.startDate);
this.$refs.scheduler.endDate = new Date(response.endDate);
}
Basically setting start and end dates as you did in you code snippet should work as well. Please go to our Basic demo and run in console:
Please make sure your dates are correct.
If you need further assistance with this issue, please provide a runnable testcase that we can check.
Cheers,
Pavel
scheduler.viewPreset = 'monthAndYear'
// you see one month
scheduler.startDate = new Date(2019, 0, 1)
scheduler.endDate = new Date(2019, 5, 1)
// you see 5 months
If you need further assistance with this issue, please provide a runnable testcase that we can check.
Cheers,
Pavel
Pavlo Miklashevych
Sr. Frontend Developer
I tried with 'weekAndDay' against Basic demo:
Works fine for me.
How can we reproduce your issue? Could you please zip up your app and send it to us?
scheduler.viewPreset = 'weekAndDay'
scheduler.startDate = new Date(2019, 0, 1)
scheduler.endDate = new Date(2019, 5, 1)
How can we reproduce your issue? Could you please zip up your app and send it to us?
Pavlo Miklashevych
Sr. Frontend Developer
when i give like this
i got only 2 month of date range
date range in scheduler will be Jun 1 to Aug 12
this.$refs.scheduler.viewPreset = 'weekAndDay'
this.$refs.scheduler.resources = response.resources;
this.$refs.scheduler.events = response.events;
this.$refs.scheduler.startDate = new Date(2019, 5, 1);
this.$refs.scheduler.endDate =new Date(2019, 10, 1);
date range in scheduler will be Jun 1 to Aug 12