this is my scheduler:
public class SchedulerController : Controller
{
//
// GET: /Scheduler/
public ActionResult Index()
{
var scheduler = new DHXScheduler();
//scheduler.Skin = DHXScheduler.Skins.Glossy;
scheduler.EnableDataprocessor = true;// enables DataProcessor in order to enable implementation CRUD operations
scheduler.Skin = DHXScheduler.Skins.Glossy;
scheduler.AfterInit.Add("configure();");
scheduler.Config.start_on_monday = true;
scheduler.Config.first_hour = 6;
scheduler.Config.last_hour = 24;
scheduler.Config.time_step = 30;
var unit = new UnitsView("unit1", "resource_id");
scheduler.Views.Add(unit);
var rooms = new List<object>(){
new { key = "1", label = "Resource1"},
new { key = "2", label = "Resource2"},
new { key = "3", label = "Resource3"},
new { key = "4", label = "Resource4"}
};
unit.AddOptions(rooms);
return View(scheduler);
}
}
schedulercontroller/index.cshtml
@Html.Partial("../Scheduler/Calender")
@Html.Raw(Model.Render());
scheduler/calender.cshtl
@(Html.Kendo().Calendar()
.Name("Calendarname")
.HtmlAttributes(new { style = "width: 180px;height:200px;font-size:13px" })
)
I need to control scheduler dates from kendo calender. (in other words I need kendo calender to do the functions of minicalender)
Please help.
I use mvc4/razor