Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vineetha Thomas on Nov 22, 2009 20:35
open dhtmlx forum
Seperate Calendar in dhtmlscheduler

Hii
I am using this dhtmlscheduler in my project. I need one more facility to be added on to this. Can we have a separate calendar to select the date, week and month so that when we select the date on the calendar corresponding events are displayed on the scheduler. Please provide with a solution

Thank You

Vineetha Thomas

Answer posted by Alex (support) on Nov 23, 2009 02:31

Hello,

Scheduler doesn't provide a ready solution. You can use addEvent method to add event that the date in the calendar is selected (it is possible to use dhtmlxCalendar to select the date):

http://www.dhtmlx.com/dhxdocs/doku.php?id=dhtmlxscheduler:api_method_dhtmlxscheduler_addevent

scheduler.addEvent({
  start_date: "16-03-1984",
  end_date: "19-03-1984",
  text:"Some",
  custom_data:"some data"
  });

scheduler.setCurrentView(date,"month");

Answer posted by Stanislav (support) on Nov 23, 2009 08:44
>>to select the date, week and month so that when we select the date on the calendar corresponding events are displayed on the scheduler
Do you want to select the start and end dates , and for that period events will be loaded from server to the scheduler?
You can create two date pickers of any time ( dhtmlxCalendar for example ) and when dates selected , the server side query can be called to load the necessary data only. There is no need in any scheduler's modifications.