I want to declaratively add a datetimepicker.
This is how I add one now:
This is how I want to add one:
However, no picker is initialized.
Shouldn't there be at least one example on how to do this on api reference pages?
This is how I add one now:
<!DOCTYPE html><html><head> <title>datetimepicker test</title> <script src="js/jquery.min.js"></script> <script src="js/kendo.web.js"></script> <script src="js/kendo.mobile.js"></script> <script src="js/cultures/kendo.culture.sv-SE.js"></script> <link href="css/kendo.mobile.flat.css" rel="stylesheet" /> <link href="css/kendo.common.css" rel="stylesheet" /> <link href="css/kendo.default.css" rel="stylesheet" /> <script> var app = new kendo.mobile.Application(document.body, { skin: 'flat', initial: '#test' }); window.kendoMobileApplication = app; $(function() { $("#datetimepicker").kendoDateTimePicker({ value: new Date() }); }); </script></head><body> <div id="test" data-role="view"> <input id="datetimepicker"> </div></body></html>This is how I want to add one:
<!DOCTYPE html><html><head> <title>datetimepicker test 2</title> <script src="js/jquery.min.js"></script> <script src="js/kendo.web.js"></script> <script src="js/kendo.mobile.js"></script> <script src="js/cultures/kendo.culture.sv-SE.js"></script> <link href="css/kendo.mobile.flat.css" rel="stylesheet" /> <link href="css/kendo.common.css" rel="stylesheet" /> <link href="css/kendo.default.css" rel="stylesheet" /> <script> var app = new kendo.mobile.Application(document.body, { skin: 'flat', initial: '#test' }); window.kendoMobileApplication = app; </script></head><body> <div id="test" data-role="view"> <input id="datetimepicker" data-role="datetimepicker"> </div></body></html>However, no picker is initialized.
Shouldn't there be at least one example on how to do this on api reference pages?