Print Page | Close Window

DatePicker Control not changing?

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=20394
Printed Date: 24 November 2024 at 2:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DatePicker Control not changing?
Posted By: KumarCJ
Subject: DatePicker Control not changing?
Date Posted: 06 December 2012 at 2:39am
Hi,

I come across issue with Date Picker Control.

We have calendar view and date piker view and also using CXTPCalendarController class.

We have implementation like below
1. When calendar view open it displayed today's date on Calendar view and also on Date Picker view.
2. We have trapped "Ctrl+PageUp" key which will move the calendar view to 1 year back.
3. We have trapped "Ctrl+PageDown" key which will move the calendar view to 1 year forward.

Issue we are facing is that
-- When do "Ctrl+PageUp"the calendar view goes to 1 year back and display the date on the toolbar properly BUT Date Picker View do not display the calendar of 1 year back.

-- Please see the attached screen shot uploads/2903/DatePickerControl_not_changing_with_respect_to_view_data.zip - uploads/2903/DatePickerControl_not_changing_with_respect_to_view_data.zip

-- We are trying with below
CXTPDatePickerControl* pDatePicker = pFrameChild->m_CalendarController.GetDatePicker();
        if (pDatePicker)
        {       
            CXTPCalendarView* pView = GetCalendarCtrl().GetActiveView();
            oleSelectedDate = JDateToOleDateTime(CalSelectedDate, 0);
            pDatePicker->Select(oleSelectedDate);   
            pFrameChild->m_CalendarController.SetDatePicker(pDatePicker);
            pDatePicker->RedrawControl();
        }

Please let me know if any thing I am missing or any other way to do this!

Thanks,
Saket Kumar



-------------
-- Saket Kumar



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