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

Date Picker In ListView

1 Answer 204 Views
ListView
This is a migrated thread and some comments may be shown as answers.
durga bhavani
Top achievements
Rank 1
durga bhavani asked on 04 Sep 2012, 05:52 AM
Hi,

Iam defining a DatePicker in ListView in Edit in this format


<input
data-bind="value:cmpnydate" name="date" data-type="date"  data-role="datepicker" required="required" validationMessage="required"/>


and binding that datepicker value to "cmpnydate" and it is of "date" type, but that value is not binded to that Schema Variable. Am I defining wrong anywhere? Can u just plz let me know where I have defined wrong?

Thanks and regards,
Bhavani. 

 

1 Answer, 1 is accepted

Sort by
0
Richard Hyde
Top achievements
Rank 1
answered on 20 Nov 2012, 06:05 PM
Suggest you try:  

@model Example.Models.MyViewModel

@Html.Kendo().DatePickerFor(m => m.MyDate)


Tags
ListView
Asked by
durga bhavani
Top achievements
Rank 1
Answers by
Richard Hyde
Top achievements
Rank 1
Share this question
or