Hello,
I have divided my page in 2 frame the left one consisting of the tree and the right is the calendar. If i check a node in the tree the events corresponding to the checked nodes are displayed in the calendar. The xml generated containing the events of the corresponding checked nodes arrange the events according to the sequence of the checked nodes. But the scheduler populates the events in the calendar weekview sequentially daywise. Can you suggest the function in scheduler which populates the events daywise so that we can deactivate it and populate according to the sequence of the checked nodes.
Unfortunately it is not so simple. The logic of scheduler requires that events are sorted by date while rendering. Otherwise they may be rendered incorrectly.
There is a next method , in the scheduler’s code, which reorders events before rendering, you can disable it, but most probably it will result in the incorrect layout.
scheduler._time_order=function(evs){
evs.sort(function(a,b){
if (a.start_date.valueOf()==b.start_date.valueOf()){
if (a._timed && !b._timed) return 1;
if (!a._timed && b._timed) return -1;
return 0;
}
return a.start_date>b.start_date?1:-1;
});
};