I have a Kendo drop down list and a date picker and I’d the datepicker element to be invisible when the drop down selection is ‘Not Started’
<div id="view">
<label for="dateinput">Completed Date</label>
<input id="completedatepicker" value="" title="monthpicker" />
</div>
<div>
<label for="dropdown">Status</label>
<input id="dropdown" />
</div>
<script>
$(document).ready(function() {
// create DatePicker from input HTML element
$("#duedatepicker").kendoDatePicker();
$("#completedatepicker").kendoDatePicker();
$('#dropdown').kendoDropDownList({
dataSource: ['Not Started', 'Completed', 'In Progress']
});
});
</script>
2
Answers
You can initially hide the DatePicker container, add a change event handler and toggle the visibility of the container – example