This is a migrated thread and some comments may be shown as answers.

[Solved] Not able get TimePickerFor value after posting

0 Answers 22 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
RS
Top achievements
Rank 1
RS asked on 19 Apr 2012, 05:20 AM
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.
Tags
Date/Time Pickers
Asked by
RS
Top achievements
Rank 1
Share this question
or