0

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

1 Answers1

1

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

Polina
  • 412
  • 2
  • 6
  • Thank you for answering the question. Could you please add one or two example as well so others can easily understand what you mean? – Mayank Patel Nov 03 '17 at 10:46
  • Thank you sir that's good and work successfully but sir i only want the unit view(rooms) as a default view and i want to remove all other Day Week and Month(only Unit view show on my calendar) – Ejaz Ul haq Nov 06 '17 at 13:51