Hi, I'm trying to create my own task model for the mvc kendo scheduler , I've already implemented the ISchedulerEvent on my model to make the scheduler work but i don't want their properties (end,start,title.description,timezone, etc...), I only want the properties I've created, also I've already created my custom task creation popup with my own properties but when I click the save button i canĀ“t advance to the controller method because the ISchedulerEvent properties are required, here is my sheduler code and my model.
Index
@(Html.Kendo().Scheduler<NUGUlib.Models.task>()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.StartTime(new DateTime(2013, 6, 13, 10, 00, 00))
.EndTime(new DateTime(2013, 6, 13, 23, 00, 00))
.Editable(true)
.Height(600)
.Editable(e => e.TemplateName("PopUp"))
.Views(views =>
{
views.DayView();
views.WeekView(semana => semana.Selected(true));
views.MonthView();
views.WorkWeekView(view => view.WorkDayCommand(false));
views.AgendaView();
})
.DataSource(d => d.Model(m =>
{
m.Id(f => f.id);
})
.Read(r => r.Action("Scheduler_Read", "Scheduler"))
.Create(c => c.Action("Scheduler_Create", "Scheduler"))
.Destroy("Scheduler_Destroy", "Scheduler")
.Update("Scheduler_Update", "Scheduler")
)
.ShowWorkHours(false)
.BindTo(Model)
)
Model
public partial class cita : ISchedulerEvent
{
public int id { get; set; }
public int UserID { get; set; }
public System.DateTime firstDate { get; set; }
public System.DateTime secondDate { get; set; }
public string description { get; set; }
public int times { get; set; }
public string Description
{
get;
set;
}
public DateTime End
{
get;
set;
}
public string EndTimezone
{
get;
set;
}
public bool IsAllDay
{
get;
set;
}
public string RecurrenceException
{
get;
set;
}
public string RecurrenceRule
{
get;
set;
}
public DateTime Start
{
get;
set;
}
public string StartTimezone
{
get;
set;
}
public string Title
{
get;
set;
}
}
}
Index
@(Html.Kendo().Scheduler<NUGUlib.Models.task>()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.StartTime(new DateTime(2013, 6, 13, 10, 00, 00))
.EndTime(new DateTime(2013, 6, 13, 23, 00, 00))
.Editable(true)
.Height(600)
.Editable(e => e.TemplateName("PopUp"))
.Views(views =>
{
views.DayView();
views.WeekView(semana => semana.Selected(true));
views.MonthView();
views.WorkWeekView(view => view.WorkDayCommand(false));
views.AgendaView();
})
.DataSource(d => d.Model(m =>
{
m.Id(f => f.id);
})
.Read(r => r.Action("Scheduler_Read", "Scheduler"))
.Create(c => c.Action("Scheduler_Create", "Scheduler"))
.Destroy("Scheduler_Destroy", "Scheduler")
.Update("Scheduler_Update", "Scheduler")
)
.ShowWorkHours(false)
.BindTo(Model)
)
Model
public partial class cita : ISchedulerEvent
{
public int id { get; set; }
public int UserID { get; set; }
public System.DateTime firstDate { get; set; }
public System.DateTime secondDate { get; set; }
public string description { get; set; }
public int times { get; set; }
public string Description
{
get;
set;
}
public DateTime End
{
get;
set;
}
public string EndTimezone
{
get;
set;
}
public bool IsAllDay
{
get;
set;
}
public string RecurrenceException
{
get;
set;
}
public string RecurrenceRule
{
get;
set;
}
public DateTime Start
{
get;
set;
}
public string StartTimezone
{
get;
set;
}
public string Title
{
get;
set;
}
}
}