Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Sortorder AlldayEvents (Read 2391 times)
m.anzi
YaBB Newbies
*
Offline


try harder

Posts: 5
Joined: Jan 15th, 2010
Sortorder AlldayEvents
Jan 15th, 2010 at 3:24pm
Print Post  
Hello,

could anybody tell me about the sort order, if more then one alldayevent item is displayed in the list view for the same day? All appointments have the same date/time and the property alldayevent is true.

It seems to be a casual sort order in list view...
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Sortorder AlldayEvents
Reply #1 - Jan 15th, 2010 at 3:32pm
Print Post  
It is indeed a pseudo-random ordering (it is based on the items' hash-codes). However, you can control the ordering of items by assigning different values to their Priority property. Items with higher priority appear before items with lower priority.

Regards,
Meppy
  
Back to top
 
IP Logged
 
m.anzi
YaBB Newbies
*
Offline


try harder

Posts: 5
Joined: Jan 15th, 2010
Re: Sortorder AlldayEvents
Reply #2 - Jan 17th, 2010 at 3:29pm
Print Post  
...thank you for the tip, but it works only if change the view setting (then the items will be updated in the correct sort order).

if i generate alldayevents in the list view, the items are not sorted based on priority property. After changing the view setting (ex. to resource view and back to list view), the sort order is correct.
Can i call any method to force the update without changing the view ?

regards
manzi

PS: i find out, that the behavior can only be watched when "FreeDrag " is enabled. If "FreeDrag" is disabled, the ordering of the items is displayed correct.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Sortorder AlldayEvents
Reply #3 - Jan 18th, 2010 at 7:13am
Print Post  
Enabling free dragging triggers special mechanics - once item collisions are resolved and the items are distributed to their calculated lanes, they stay there. The item priority is no longer taken into consideration because items in different lanes do not collide with each other. Lane information is view-specific however, therefore switching to another view causes lane information to be wiped.

If you want to order items in FreeDrag-enabled list view, you can associate the items with list lanes directly, by using the Calendar.SetItemListLane method (instead of specifying item priority).

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