I want “jump to” functionality where events can be scheduled for 3mths,
6mths and 1yr in the future. Jump to 3mo, 6mo, 12mo. Have to go example 6 months and one day.
Also, if you choose wednesday it will jump to another wednesday.
There is no such built in functionality, but you can build your own time section with custom buttons, which will change time of event to desired dates.
How can i jump to 3 month, 6 month, 12 month in the calendar. Is there any function to add months to current calendar view and jump? Please reply asap.
Thanks in advance
Shiju
If you want to have your own function, you can base it on scheudler._date + (months * x).
So you can use a Javascript date add function and add the number of months you would like to jump ahead.
If you wanted to jump ahead 6 months, you would call your date add function with the parameters of scheduler._date (start date) and 6 (number of months from start date to jump).
HI,
I got it worked in this way
currentDate = new Date();
start = new Date(currentDate.getFullYear(), currentDate.getMonth()+parseInt(jump_to), currentDate.getDate());
scheduler.setCurrentView(start,“week”);
Is there any problem working in using this?
Thanks in advance
Shiju
That is fine, well done.
Thank you for sharing.