Scheduler: Resource Tree

The Scheduler resources can be organized in a tree hierarchy.

The resource tree has to be enabled first using TreeEnabled property:

        <%= Html.DayPilotScheduler("dps", new DayPilotSchedulerConfig {
                BackendUrl = ResolveUrl("~/Scheduler/Backend"),
                TreeEnabled = true
            })%>

The child resources should be added using Resource.Children collection:

    public class SchedulerController : Controller
    {
        //
        // GET: /Scheduler/

        public ActionResult Backend()
        {
            return new Dps().CallBack(this);
        }

        class Dps : DayPilotScheduler
        {
            protected override void OnInit(InitArgs e)
            {
                Resource b1 = new Resource("Building 1", "B1");
                Resources.Add(r);

                b1.Children.Add("Room A", "RA");
                b1.Children.Add("Room B", "RB");

                UpdateWithMessage("Welcome!", CallBackUpdateType.Full);
            }
    }

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java