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

DatePicker doesn't seem to recognise the data-format configuration option

1 Answer 124 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Vaughan
Top achievements
Rank 1
Vaughan asked on 22 Mar 2012, 12:50 AM

I'm trying to use declarative widget initialization, but setting the date format of a DatePicker doesn't seem to have any effect.

I would have expected the following would work:
<div id="container">   
  <input data-role="datepicker" data-format="yyyy/MM/dd"></select>
</div>             
<script>
  $(document).ready(function () {
    kendo.init($("#container"));
  });
</script>

Regards,
Vaughan.

1 Answer, 1 is accepted

Sort by
0
Vaughan
Top achievements
Rank 1
answered on 23 Mar 2012, 01:39 AM

Never mind, it now works fine the 2012.1 322 release. :)

Cheers,
Vaughan.
Tags
MVVM
Asked by
Vaughan
Top achievements
Rank 1
Answers by
Vaughan
Top achievements
Rank 1
Share this question
or