Here is the code for initialising the scheduler
public ActionResult Index()
{
var scheduler = new DHXScheduler(this);
scheduler.Extensions.Add(SchedulerExtensions.Extension.LiveUpdates);
scheduler.EnableDataprocessor = true;
scheduler.UpdateFieldsAfterSave();
scheduler.Skin = DHXScheduler.Skins.Glossy;
scheduler.InitialDate = DateTime.Now;
scheduler.Config.drag_move = false;
scheduler.Config.drag_resize = true;
scheduler.Config.drag_create = false;
scheduler.LoadData = true;
scheduler.Config.first_hour = 8;
scheduler.Config.last_hour = 18;
scheduler.Data.DataProcessor.UpdateFieldsAfterSave = true;
string selecteduser = “cearnshaw”;
MapView map = new MapView();
scheduler.Views.Add(map);
scheduler.Data.Loader.AddParameters(new Dictionary<string, object> { { “assignedto”, selecteduser } });
scheduler.Views[0].Filter.Rules.Add(new Rule(“assignedto”, Operator.Equals, selecteduser));
scheduler.Views[1].Filter.Rules.Add(new Rule(“assignedto”, Operator.Equals, selecteduser));
scheduler.Views[2].Filter.Rules.Add(new Rule(“assignedto”, Operator.Equals, selecteduser));
scheduler.Views[3].Filter.Rules.Add(new Rule(“assignedto”, Operator.Equals, selecteduser));
return PartialView(scheduler);
}
Clicking on the map button does nothing unless i click on it whilst in the month view, then it throws an error
(TypeError: a is undefined ,u=t.getElementsByName(n[1]),i=0,f=u.length;i<f;i++)u[i].getAttribute(“name”)==…).
Could you please tell me what is going wrong.
Thanks
Matt