Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Appointment not in order (Read 2576 times)
Pankaj
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Mar 6th, 2013
Appointment not in order
Mar 6th, 2013 at 9:10am
Print Post  
Hello Experts
i am new to win form application
i am using planner .net control(ver. 4.0)
i am adding appointments to the calendar, but there is no fixed order of displaying the items.
I am using below code.

Dim lstSchedules As List(Of Allday.ATSM.BusinessObjects.Schedule) = ptrnDayForDate.Schedules().OfType(Of Allday.ATSM.BusinessObjects.Schedule).ToList().OrderBy(Function(i) i.ID).ToList()

                For Each itm As Allday.ATSM.BusinessObjects.Schedule In lstSchedules
                    Dim appt As New MindFusion.Scheduling.Appointment
                    appt.AllDayEvent = True
                    appt.Style = MakeStyle(itm)
                    appt.HeaderText = itm.Name
                    appt.StartTime = patternDate
                    appt.EndTime = patternDate
                    m_CalMain.Schedule.Items.Add(appt)
                    appt.Visible = True
                    appt.Locked = True
                Next

Please find attached images.

Please help me
Thanks.
  

issuecaledar.JPG (Attachment deleted)
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Appointment not in order
Reply #1 - Mar 6th, 2013 at 10:36am
Print Post  
Hi,

Items ordering can be controlled through the Item.Priority property. Items with higher priority are displayed at the top, while items with lower priorities are pushed down.

Let me know if this helps.

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


I Love MindFusion!

Posts: 4
Joined: Mar 6th, 2013
Re: Appointment not in order
Reply #2 - Mar 6th, 2013 at 11:00am
Print Post  
Thanks a Lot, Its working  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint