Hi,
I have a class called Appointment, and within other classes have a service call and time stopped, follows below:
public class Appointment
{
/ / ...
/ / other properties
[UHint ("ServiceEditor")]
public Service Service {get; set;}
[UHint ("ServiceEditor")]
public Service Service {get; set;}
}
public class Service
{
public int Id {get; set;}
public string Name {get; set;}
}
public class TimeStopped
{
public int Id {get; set;}
public string Description {get; set;}
}
/ / View Editor:
@ (Html.Kendo (). DropDownList ()
. Name ("Service")
. DataValueField ("Id")
. DataTextField ("Name")
. BindTo ((System.Collections.IEnumerable) ViewData ["services"])
. OptionLabel ("Select"))
The rule is if a note has a service he can not have hours parade and vice versa. Suppose the User selected a service, ok the change happens, but when he comes back to kendo option select throws a TypeError exception: Service is null
already tried to fix this but so far have found nothing = / what should I do?
I have a class called Appointment, and within other classes have a service call and time stopped, follows below:
public class Appointment
{
/ / ...
/ / other properties
[UHint ("ServiceEditor")]
public Service Service {get; set;}
[UHint ("ServiceEditor")]
public Service Service {get; set;}
}
public class Service
{
public int Id {get; set;}
public string Name {get; set;}
}
public class TimeStopped
{
public int Id {get; set;}
public string Description {get; set;}
}
/ / View Editor:
@ (Html.Kendo (). DropDownList ()
. Name ("Service")
. DataValueField ("Id")
. DataTextField ("Name")
. BindTo ((System.Collections.IEnumerable) ViewData ["services"])
. OptionLabel ("Select"))
The rule is if a note has a service he can not have hours parade and vice versa. Suppose the User selected a service, ok the change happens, but when he comes back to kendo option select throws a TypeError exception: Service is null
already tried to fix this but so far have found nothing = / what should I do?