search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Fix the upper Resource? (2nd try)

Asked by Daniel
9 years ago.

Hey Dan!

I asked the question a year ago (http://forums.daypilot.org/Topic.aspx/2254/fix-the-upper-resource).

I still Need a function to fix 1 or more resources on the top of the calendar.

Is it possible to implement it, or do you have an idea for an Workaround for me?

Thanks a lot (and love your Scheduler ;))

Daniel B.

Comment posted by Daniel
9 years ago.

No Ideas? Please help! :-/

Answer posted by Dan Letecky [DayPilot]
9 years ago.

Unfortunately there is no quick solution other than using two Schedulers. However, this is just a workaround and may not work in all cases.

<div id="dp1"></div>
<div id="dp2"></div>

<script>
    var dp1 = new DayPilot.Scheduler("dp1");
    dp1.init();

    var dp2 = new DayPilot.Scheduler("dp2");
    dp2.init();
</script>

Then you need to synchronize the scrollbars using jQuery like this:

$(dp1.nav.scroll).scroll(function() {
    dp2.nav.scroll.scrollLeft = dp1.nav.scroll.scrollLeft; 
});
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.