Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic New (Read 3935 times)
Joe M.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Oct 9th, 2017
New
Oct 9th, 2017 at 11:05am
Print Post  
Hello,
how can i make a new appointment with selected date and time?
Or in whitch example i can find.
Thanks

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


tech.support

Posts: 3183
Joined: Oct 19th, 2005
Re: New
Reply #1 - Oct 9th, 2017 at 11:29am
Print Post  
Hi,

Interactively you create appointments by selecting a date/time cell and start typing.

Creating from code looks like this -
Code
Select All
var app = new Appointment();
app.StartTime = new DateTime(2008, 10, 27);
app.EndTime = new DateTime(2008, 11, 3);
calendar.Schedule.Items.Add(app); 



Depending on the view type or grouping, you might also need to set one of Resources/Contact/... properties of Appointment in order to show the appointment in respective lane or group.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Joe M.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Oct 9th, 2017
Re: New
Reply #2 - Oct 9th, 2017 at 2:04pm
Print Post  
Hi Slavcho,
sorry i mean a new Appointment when i selected in the Timetable with mouse from 10.00 to 11.00
Best regards
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3183
Joined: Oct 19th, 2005
Re: New
Reply #3 - Oct 9th, 2017 at 2:31pm
Print Post  
Hi,

Try setting the EnableDragCreate property to true - then it should create appointment automatically when you drag-select a time region. Alternatively handle the DateClick event and create a new appointment from handler.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Joe M.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Oct 9th, 2017
Re: New
Reply #4 - Oct 10th, 2017 at 9:59pm
Print Post  
Perfect, Thanks

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