Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Appointment layout for ResourceView (Read 5276 times)
vtecman
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jul 14th, 2010
Appointment layout for ResourceView
Jul 14th, 2010 at 2:55am
Print Post  
Hi there,

I am working on a calendar using scheduling view grouped by Resource.

I have a requirement that I need to make sure all the appointments against a contact belonging to a same resource will need to be on the same row.

I think the current appointment layout algorithm is similar to a reverse stack,

Below is the scenario which I want to accomplish...
Time1 Time2 Time3
R1 |empty| App1 For Contact 1 |empty but need to PAD this space
|empty| App2 For Contact 2 |APP3 For Contact 2

But the standard behaviour is
Time1 Time2 Time3
R1 |empty| App1 For Contact 1 |APP3 For Contact 2
|empty| App2 For Contact 2 |empty

so I want to have "APP3 For Contact 2" to appear behind the "App2 for contact 2" and on the same row.

Is there a easy way to do this?

thanks in advance.

Cheers,

Wilson
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Appointment layout for ResourceView
Reply #1 - Jul 14th, 2010 at 5:54am
Print Post  
This is not currently possible unless you split R1 to two resources - one for 'Contact 1' and another for 'Contact 2'. The row header could probably be custom-painted so that it looks as a single resource to the user.

Regards,
Meppy
  
Back to top
 
IP Logged
 
vtecman
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jul 14th, 2010
Re: Appointment layout for ResourceView
Reply #2 - Jul 14th, 2010 at 6:38am
Print Post  
thanks for the response,

just another question,    is there a easy way to retrieve the row number a appointment is on?

e.g. I want to retrive the row position of App2 for Contact 2,  which gives me a 2 if it is a zero based thing..

thanks,

Wilson
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Appointment layout for ResourceView
Reply #3 - Jul 14th, 2010 at 6:46am
Print Post  
Try using the Calendar.GetItemListLane(Item) method.

Let me know if it works.

Regards,
Meppy
  
Back to top
 
IP Logged
 
vtecman
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jul 14th, 2010
Re: Appointment layout for ResourceView
Reply #4 - Jul 14th, 2010 at 7:07am
Print Post  
no, I have already tried that..  but looks like it only works for List mode not resourceview?  it returns some random values which I can't make any sense of..

anything else you can think of?

thanks,

Wilson
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Appointment layout for ResourceView
Reply #5 - Jul 14th, 2010 at 7:45am
Print Post  
Initially Calendar.GetItemListLane was indeed designed to work only in a List view. However, I think we extended it at some point to operate on items in some other views. I am testing it here and it gives correct results in a Resource view.

What version of the Calendar control are you using?

Regards,
Meppy
  
Back to top
 
IP Logged
 
vtecman
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jul 14th, 2010
Re: Appointment layout for ResourceView
Reply #6 - Jul 14th, 2010 at 7:59am
Print Post  
the Calendar.dll is 4.4.1.123803
and the mindfusion.common.dll is using 1.0.2826.18027

hey I just tried the List mode,  I could get similar layout effect as the resourceview if I chagne the orientation to horizontal.  but the problem is when I try to increase the VisibleColumn property to more than 3, when I click on a empty cell the whole calendar cell section becomes WHITE.  even I click on it nothing happens,  I have to click on the scrollbar and it redraws itself.. 

can you think of a reason why this is happening? or may be is fixed is the latest release?

if I can get the list mode working then may be I can just use the FREEDRAG property to do what I want?

cheers,

Wilson
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Appointment layout for ResourceView
Reply #7 - Jul 14th, 2010 at 8:07am
Print Post  
The version you are using is very old. Download the most recent version of the control from the following link and try with it:

https://www.mindfusion.eu/PlannerTrial.zip

Using the FreeDrag option in the List view will indeed help you move items manually in whichever row you desire.

Let me know if the problem with the List view is still present in the most recent version.

Regards,
Meppy
  
Back to top
 
IP Logged
 
vtecman
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jul 14th, 2010
Re: Appointment layout for ResourceView
Reply #8 - Jul 18th, 2010 at 11:44pm
Print Post  
Hi Meppy,

I have tried the latest version and everything seems to work fine. 

the version I purchased was the single developer license with source code.   but I think the 1 year maintenance has already expired.   I am just wondering do I need to repurchase another maintenance license to download the latest version + source? 

many thanks,

Wilson

  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Appointment layout for ResourceView
Reply #9 - Jul 19th, 2010 at 6:13am
Print Post  
If your 12-month free upgrade period has expired, you can renew your subscription here: http://mindfusion.eu/buy-planner.html. Then you can download the latest version from http://clientsarea.eu.

Let me know if this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint