0

i am using day pilot in mvc , in view page i am getting error for this daypilot

Exception :

System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'DayPilotScheduler' and the best extension method overload 
'DayPilot.Web.Mvc.DayPilotExtensions.DayPilotScheduler(System.Web.Mvc.HtmlHelper, string, DayPilot.Web.Mvc.DayPilotSchedulerConfig has some invalid arguments

Actual Code :

@Html.DayPilotScheduler("dps", new DayPilotSchedulerConfig { BackendUrl = Url.Content("~/Scheduler/Backend"), EventResizeHandling = EventResizeHandlingType.CallBack, EventMoveHandling = EventMoveHandlingType.CallBack, TimeRangeSelectedHandling = TimeRangeSelectedHandlingType.CallBack, CellGroupBy = GroupBy.Month, CellDuration = 1440, Days = 365, StartDate = new DateTime(DateTime.Today.Year, 1, 1) })
AK47
  • 3,707
  • 3
  • 17
  • 36
user3643560
  • 365
  • 1
  • 5
  • 13
  • @Html.DayPilotScheduler("dps", new DayPilotSchedulerConfig { BackendUrl = Url.Content("~/Scheduler/Backend"), EventResizeHandling = EventResizeHandlingType.CallBack, EventMoveHandling = EventMoveHandlingType.CallBack, TimeRangeSelectedHandling = TimeRangeSelectedHandlingType.CallBack, CellGroupBy = GroupBy.Month, CellDuration = 1440, Days = 365, StartDate = new DateTime(DateTime.Today.Year, 1, 1) }) In this @html.daypilot showing error – user3643560 Dec 18 '14 at 06:50
  • After looking at code, it seems that @Html.DayPilotScheduler() requires 3 arguments & you have passed only 2 (if I am not wrong). – AK47 Dec 18 '14 at 07:04

0 Answers0