This is a migrated thread and some comments may be shown as answers.
Setting the timepicker to MVC model value
1 Answer 36 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
gregor
Top achievements
Rank 1
gregor asked on 10 Mar 2011, 10:34 PM
I have this
@(Html.Telerik().TimePicker()
            .Name("TimePicker")
            .ShowButton(true)
            .Interval(15)
            .Value(DateTime.Today)
         )
but I want to use a movel value instead of DateTime.Today

so what I would to do is this:0

@(Html.Telerik().TimePicker()
            .Name("TimePicker")
            .ShowButton(true)
            .Interval(15)
            .Value(model => model.time_slot_workdate)
         )

But that doesnt work as it doesnt like lambdas and ideas?

Thanks
Gregor

1 Answer, 1 is accepted

Sort by
0
e
Top achievements
Rank 1
answered on 12 Apr 2011, 06:18 PM
You might want to try:
@(Html.Telerik().TimePickerFor(model => model.time_slot_workdate))
Tags
Date/Time Pickers
Asked by
gregor
Top achievements
Rank 1
Answers by
e
Top achievements
Rank 1
Share this question
or