Print Page | Close Window

CXTPDatePickerControl not showing specified date

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=18300
Printed Date: 28 April 2024 at 3:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPDatePickerControl not showing specified date
Posted By: JasonLi
Subject: CXTPDatePickerControl not showing specified date
Date Posted: 02 May 2011 at 10:22am
I want to initialize CXTPDatePickerControl to show specified date selected, which means that date picker shows one selected specified date once when it pops up. But only today's date is selected when it pops up. I have tried all provided functions to implement this without luck.

Is it possible to get this done?

The other question: Is it possible to navigate by year instead of only by month in date picker?



Replies:
Posted By: JasonLi
Date Posted: 03 May 2011 at 10:16am
Let me answer my own questions:

1. about default date, CXTPDatePickerContrl only shows today's date as default. I have a workaround for this: calculate month difference between specified date and today's date, use ScrollLeft or ScrollRight function to show the specified date as default.

2. CXTPDatePickerControl is only able to be navigated by month, not by year, which is not user friendly.



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