Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Ordering of items in timetable (Read 2460 times)
dcollis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: May 1st, 2009
Ordering of items in timetable
May 1st, 2009 at 3:53pm
Print Post  
I would like the items added to a timetable view to appear in the order that they were added.
i.e. If two items have the same time, and one is added to the calendar immediately after the other, then it will display next to it.

The reason for this is that I would like items that are related to each other to appear next to each other (and I have ordered the dataset that I use to populate the calendar appropriately).

I realise that the enable collision property means that when you add to the timetable that it does it's own processing on where to put the item, but is there anyway to perhaps get the same result as enable collisions (i.e. no overlapping), while maintaining the order of my items?

I'd rather not have to use groupings at all as the layouts that these generate are not what the client wants. Also, even if I do group items by their specified relationship, there is still an ordering within this relationship which I need to show by having them displayed in this order (a child-parent kind of thing).
Is there anything else I can do?
  
Back to top
 
IP Logged
 
dcollis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: May 1st, 2009
Re: Ordering of items in timetable
Reply #1 - May 1st, 2009 at 3:57pm
Print Post  
Oh, something else I noticed:

Why would the order of the items added to the calendar be different each time I reload the data?

At the moment I add items to the calendar one by one from an ordered dataset (which I hoped would achieve what I ask for above), and each time I reload the calendar from the same data, the order of items at the same time will change - seemingly randomly?

What affects the ordering of these items currently?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Ordering of items in timetable
Reply #2 - May 4th, 2009 at 7:04am
Print Post  
Hi,

The items that start and end at the same time are sorted according to their Id first and then by their hash codes (which are partially based on the Id as well). And since a random Id is automatically assigned to an item when it is created this results in a pseudo-random ordering of the items.

However, you can control the ordering of the items by assigning different priorities to them (through the Priority property). Items with higher priority are displayed first.

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


I love YaBB 1G - SP1!

Posts: 7
Joined: May 1st, 2009
Re: Ordering of items in timetable
Reply #3 - May 18th, 2009 at 1:28pm
Print Post  
Thanks very much - that appears to have done the job.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint