Print Page | Close Window

DatePicker selection

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=3673
Printed Date: 15 November 2024 at 9:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DatePicker selection
Posted By: WaaZ
Subject: DatePicker selection
Date Posted: 19 February 2006 at 6:49am

Hi,

According to the helpfile, there should be an attribute called Block under DatePicker.Selection, where Selection is a DatePickerSelection.

This is a very urgent matter as we are approaching deadline and it is a blocking factor for us. We need to be able to read the date range from a datepicker.

We are using C# and visual Studio 2005

Thanks

WaaZ




Replies:
Posted By: TracyP
Date Posted: 20 February 2006 at 9:47am
I have found the DatePicker needs to be attached to the calendar before the populate for the Selection.BlocksCount to be greater than 0.
I have also seen it does not update with the calendar in the ViewChanged or SelectionChanged events. It happens after.


Posted By: sserge
Date Posted: 20 February 2006 at 11:43am
Hi,

Access it as an array:

DateTime dt1;
dt1 = axDatePicker1.Selection[0].DateBegin;


--
WBR,
Serge


Posted By: sserge
Date Posted: 20 February 2006 at 11:47am
Tracy,

1) For BlocksCount to be greater than 0 you just need to select something.

2) When DatePicker is connected to the Calendar control, a special object is responsible for theirs synchronisation which is called CalendarController. It is hidden for ActiveX, but you can easily read some docs on its C++/MFC version. It catches notifications from both those controls and synchronizes data between them. So far, visual synchronization will be slightly after an event.

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net