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

How to Load only a Single DayPilotScheduler

Asked by BKO
7 years ago.

Sir,
In my ASP.NET MVC application, I have added a tab control with 2 tab items in a view. Both the tab items contains 2 different daypilotscheduler objects. The problem is, when I start my application, both the schedulers are loading their contents. I want to load the first scheduler content on loading the view and the second when I open the second tab. How to prevent loading of second scheduler on page load event?

<div id="tabs">
<ul>
<li><a href="#tabs-1">Tab One</a></li>
<li><a href="#tabs-2">Tab Two</a></li>
</ul>
<div id="tabs-1">
@Html.DayPilotScheduler("dp1", new DayPilotSchedulerConfig
{
//....................................
}
</div>
<div id="tabs-2">
@Html.DayPilotScheduler("dp2", new DayPilotSchedulerConfig
{
//....................................
</div>
</div>

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.