Rank: Member Groups: Member
Joined: 8/13/2007 Posts: 10
|
Hello,
I've just bought your controls and it seems good.
But, I have a small problem with popup calendar. If I set selected date by PopupCalendar1.SelectedDate= DateTime.Today in Page_Load function and then I display popup by clicking on assigned control there is not displayed properly month.
For example:
I set a date to 9/20 /2007 in design mode (VS 2003, C#) Page_Load sets popup to 1/7/2008
If I click on assigned control to popup month 9 is displayed.
Is it any way how to "scroll" month to selected date programaticaly?
Thank you.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I tried the following steps with the latest version (check your version first) and it appears to work fine: 1. Create a blank form; 2. Put a DatePicker in the form, then set its SelectedDate to 2007-09-20; 3. Put the following code in Page_Load:
if (!Page.IsPostBack) DatePicker1.SelectedDate = new Date(2008, 1, 7);
Can you try the same steps and see what you get?
Thanks
|