Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Appointment selection and visibility (Read 2635 times)
bequer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: May 17th, 2008
Appointment selection and visibility
May 19th, 2008 at 8:21pm
Print Post  
Hi,

I display appointments in TimeTableView mode and I added a "search appointment" feature, based on some user's criteria: I display an appointment list in a grid and the user can select one and click the button "go to appointment". I'm able to select the proper day.

But I'm not able to select the appointment itself ???. And I want to scroll to the appointment start time minus a celltime to have a "blank" area before.

Is there a manner to do it?

Thanks,
Boquer
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Appointment selection and visibility
Reply #1 - May 20th, 2008 at 6:14am
Print Post  
Here is a piece of code that can be used to accomplish this:

Code
Select All
MindFusion.Scheduling.Item i = calendar1.Schedule.Items[0];
int itemStartCell = (int)(i.StartTime.TimeOfDay.Ticks / calendar1.TimetableSettings.CellTime.Ticks);
calendar1.VScrollPos = Math.Max(0, itemStartCell - 5); 


The above code scrolls to the first item in the schedule, leaving 5 empty cells before the actual start cell of the item.

Meppy
  
Back to top
 
IP Logged
 
bequer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: May 17th, 2008
Re: Appointment selection and visibility
Reply #2 - May 20th, 2008 at 2:08pm
Print Post  
Hi Meppy,

It works fine for this part, thanks. What can i do about the appointment selection itself?

Thanks,
bequer
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Appointment selection and visibility
Reply #3 - May 21st, 2008 at 6:29am
Print Post  
In order to select an Appointment, add it to the Calendar.ItemSelection object:

Code
Select All
calendar.ItemSelection.Add(app); 


Meppy
  
Back to top
 
IP Logged
 
bequer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: May 17th, 2008
Re: Appointment selection and visibility
Reply #4 - May 31st, 2008 at 12:51pm
Print Post  
Sorry, I'm late to do my follow up.

All works fine with this.

Thank you Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint