Ejaz Ul haq
Ejaz Ul haq

Reputation: 11

How to add room to DHTMLX scheduler

How to add Rooms Horizontally against time in DHMLX Scheduler in my ASP.Net MVC application

Upvotes: 0

Views: 131

Answers (1)

Polina
Polina

Reputation: 412

You can implement it using Unit view.

To initialize the Units view and add it to the scheduler, use the code below:

public ActionResult Index() {
    var sched = new DHXScheduler(this);
    ...
    var unit = new UnitsView("unit", "room_id");//initializes the view
    sched.Views.Add(unit);//adds the view to the scheduler

    return View(sched);
}

where unit - the name of the view. The constructor requires the 'name' cause the view can exist in the scheduler in several instances. room_id - the name of a property used as the id of units.

More detailed guide you can find on the DHTMLX Scheduler .NET website

Upvotes: 1

Related Questions