Integrating Calendar with Scheduler

We are using your Scheduler and would like to integrate your Calendar control. I am able to get the Calendar to change the dates on the Scheduler using the scheduler.setCurrentView(new Date()) with the onClick event but I cannot get the Scheduler (forward and back arrows, Today, etc.) to update the Calendar.

Could you provide some input/examples of this type of integration. I find it interesting that your Scheduler doesn’t have a calendar control built in. It would certainly enhance the navigation.


Scheduler has onViewChange event. So, you can call any custom code when view is changed:


scheduler.attachEvent(“onViewChange”,function(mode,date){


/your code here/


})

Hello There JohnMcGrath,

are you able to tell me more abou thow to integrade the minicalendar into the schedule?
Think you use it next to each other, right?

Perhaps you can contact me out of this via mail: bbincl [AT] netcologne.de

Would be really happy about help doing this, what you did…


Bets wishes,
Benjamin

There is no special integration features so far.
You can just place both on page, and attach code so on select in mini-calendar call
scheduler.setCurrentView
and on onViewChange event, change setDate of calendar

Hey there,

quite missed this ticket so i can reply yet:
Ok, of course just both on one page :slight_smile:

Do you think there is a possibility to lay the minicalc over the Scheduler?
I mean, sorry, this is not a dhtmlx question, quite a CSS question, right?

I thought about overlaying it in the bottom-right :slight_smile:
Is there (just out of ya head) any major problem?
How should i declare it? Not absolute, right? :confused:
Hopefully i get the point to configure it, but i think the positionig is worser.

By the way, is it possible, that the commercial project (web2cal) where a minicalc is next to it leftside made with your DHTMLX Source? It feels exactly like your Schedule and today i thought about it, that i could imagine, that it is possible to create such a calender out of the basic scheudle if ya want :slight_smile:

Deep in night i am developing and tried to integrate this minicalc…
Problem is, that the stops the calendar to run!
If i delete this, calender runs perfectly (but shceduler not any more)…

Should it be not so easy to integrate?

Again very confusing…
Put the init(); in the end of the window.onload = function() from calendar and it works… even down, but not at the rigth yet :slight_smile:
I wish i could edit… sos orry guys!

I thought about overlaying it in the bottom-right :slight_smile:
Actually you can inject any content directly in scheduler’s template





any html code for mini-calendar here



>>By the way, is it possible, that the commercial project (web2cal) where a minicalc is next to it leftside made with your DHTMLX Source?
Nope, this is independent project and while both calendars provide similar functionality they are very different in API and inner code.

Problem is, that the stops the calendar to run!
>>If i delete this, calender runs perfectly (but shceduler not any more)…

If you need to have multiple independent onload handlers, instead window.onload and “<body onload=” you can use

dhtmlxEvent(window,“load”,function(){
any code here
})

there can be many such blocks on the page and which will be executed on page loading.