Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AktivVonChange() {
- debugger;
- var startDate = $("#AktivVon").data("kendoDatePicker").value();
- $("#AktivBis").kendoDatePicker({
- value: startDate,
- disableDates: function (date) {
- if (date && compareDates(date, startDate)) {
- return true;
- } else {
- return false;
- }
- }
- });
- }
- function compareDates(date, startDate) {
- if (startDate.getDate() === date.getDate() &&
- startDate.getMonth() === date.getMonth() &&
- startDate.getYear() === date.getYear()) {
- return true;
- }
- return false;
- }
- $(document).ready(function()
- {
- // add on change to all "From date"
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement