Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Oct 04, 2008 00:19
open dhtmlx forum
DHX Calendar: Calendar Issue

Hi there,
I have an issue to tell you guys for Calendar.

Click on date picker, calendar displays then select or go the previous month then close the calendar, now again click on date
picker calendar showing previous month instead of current month. Calendar should be refreshed every time when we click on
date picker.

How to achieve this ?
Answer posted by Support on Oct 06, 2008 05:53
>>Calendar should be refreshed every time when we click on  date picker.
It hard to say , which logic will be more usefull, in some scenarious it may have sense to preserve previous date, in some scenarious it may have sense to show current date each time. 

If you open calendar manually, you can add next command to force current date selection. 


cal1.setDate(new Date()) //force current date selection
cal1.show();