Print Page | Close Window

How to switch from Multischedule to Day mode?

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=11545
Printed Date: 16 May 2024 at 5:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to switch from Multischedule to Day mode?
Posted By: KumarCJ
Subject: How to switch from Multischedule to Day mode?
Date Posted: 23 July 2008 at 2:18am
Hi,
 
I have one doubt, I implemented two modes 1) Multischedule and 2) Day
 
In multischedule mode I can see newly added scedules (Columns) but when I try to switch back to Day mode Columns remains as it is.
 
My question is
 
How to remove schedules while switching back to Day mode?
 
I tried following code but CAlendar cntrol is turning whole RED
 
Code:-
 
CXTPCalendarControl* pCalendarCtrl = &this->GetCalendarCtrl();
CXTPCalendarData * pData = pCalendarCtrl->GetDataProvider();
if (!pData)
    return;
  
pSchedules = pData->GetSchedules();
  
  
if (!pSchedules)
     return;  
            

int iCnt = pCalendarCtrl->GetResources()->GetCount();  
// Here I am getting proper column/schedule count (2)
for (int i = 0; i < iCnt; i++ )
{
     pCalendarCtrl->GetResources()->RemoveAt(0);
}
 
Thanks in advance.



Replies:
Posted By: AndreiM
Date Posted: 06 August 2008 at 2:46pm
Hi,
see answer here: https://forum.codejock.com/forum_posts.asp?TID=10157&PID=39525#39525 - https://forum.codejock.com/forum_posts.asp?TID=10157&PID=39525#39525


-------------
Regards,
Andrei Melnik



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