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

Get DatePicker value

0 Answers 27 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.
Vincent
Top achievements
Rank 1
Vincent asked on 22 Jun 2012, 02:13 PM
Hi,

I have a DatePicker

<%= Html.EditorFor(m => m.StartDateCalendar) %>
           <%= Html.Telerik().DatePickerFor(o =>  o.StartDateCalendar)
               .Value(Model.StartDateCalendar)
               .TodayButton("d")
           %>

That I first bind the value to my ViewModel --> "o.StartDateCalendar".

[DataType(DataType.Date)]
public DateTime? StartDateCalendar { get; set; }

I would like to modify my model attribute when I change the selected date of my calendar.

Is there a way to do that?

Thank you!
Tags
Date/Time Pickers
Asked by
Vincent
Top achievements
Rank 1
Share this question
or