This question is locked. New answers and comments are not allowed.
I am using TimePickerFor control to display and change time. I am able get the time from database and display. But when i try to save, system is taking current time instead of my selected time. Following is my code
Html:
@Html.Telerik().TimePickerFor(x => x.MyTime).Format("hh:mm tt")
Model:
[Required]
public TimeSpan MyTime
{
get { return MyTime; }
set { MyTime = value; }
}
When i debug, set method is called for all properties to set the value except this property in model. Set method of this property is not getting called.
Please help me if anybody have solution.
Html:
@Html.Telerik().TimePickerFor(x => x.MyTime).Format("hh:mm tt")
Model:
[Required]
public TimeSpan MyTime
{
get { return MyTime; }
set { MyTime = value; }
}
When i debug, set method is called for all properties to set the value except this property in model. Set method of this property is not getting called.
Please help me if anybody have solution.