Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by matthew damon on Dec 18, 2009 00:53
open dhtmlx forum
"dhtmlxCalendar" from "dhtmlxScheduler" or "dhtmlxScheduler" from "dhtmlxCalendar ", can you control?

Hi,

"dhtmlxCalendar" from "dhtmlxScheduler" or "dhtmlxScheduler" from "dhtmlxCalendar ", can you control?

Google calendar, like "dhtmlxScheduler" and "dhtmlxCalendar " is the same place.

"dhtmlxScheduler" from "dhx_cal_next_button" clicked "dhtmlxCalendar" to "month_btn_right" then the effect is like that one?



What should I do if that is possible?


sample image link : http://www.anjeuk.com/test/google_calendar_sample.gif
Answer posted by Alex (support) on Dec 18, 2009 02:44

Hello,

currently there isn't a ready solution. We are working on it. We have plans to release this functionaitly in two month. There will be an opportunity to create small calendars (it won't be dhtmlxCalendar). Changes in the small calendar will affect the scheduler and vice versa. 

Answer posted by matthew damon on Dec 18, 2009 03:26

Thank you.

The day is already waiting. Good you have to do.

Answer posted by ams on Feb 16, 2010 13:41

Before anything Thank You DHTMLx you're products are the best! My coding days have been split in two (before and after I found you guys). That said...


Don't know if this might help. I tried it and it pretty much works.  Can't think of the donwsides though, if they exist please elaborate. 
Basically I've included a dhtmlxCalendar object in my dhtmlxScheduler page.  Digging around I found the setCurrentView(Date) method in the Scheduler class.  Al you have to do then is register an event handler in your Calendar that updates or sets your Schedulers current view... that's it! Hope I'm not getting into a huge mess.

  //initialize small_calendar
  var mCal;
  dhtmlx.skin = "dhx_skyblue";
  dhtmlx.image_path = "./dhtmlxCalendar/codebase/imgs/";
  mCal = new dhtmlxCalendarObject('small_calendar');
  
  //link small_calendar change event to scheduler
  mCal.attachEvent("onClick", mSelectDate);
  function mSelectDate(date) {
   var jsDate = new Date(date);
   scheduler.setCurrentView(jsDate);
   return true;
  }

Answer posted by Stanislav (support) on Feb 17, 2010 01:17
Yep, that is one of possible solution.
Oncoming scheduler 2.2 will be able to render small month view for the same purpose ( it will not be scriptable as dhtmlxCalendar, but will mark days with events ) - this functionality is already implemented , just awaiting release date ( March 2010 )