Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. function AktivVonChange() {
  2. debugger;
  3. var startDate = $("#AktivVon").data("kendoDatePicker").value();
  4.  
  5. $("#AktivBis").kendoDatePicker({
  6. value: startDate,
  7. disableDates: function (date) {
  8. if (date && compareDates(date, startDate)) {
  9. return true;
  10. } else {
  11. return false;
  12. }
  13. }
  14. });
  15.  
  16.  
  17. }
  18.  
  19. function compareDates(date, startDate) {
  20. if (startDate.getDate() === date.getDate() &&
  21. startDate.getMonth() === date.getMonth() &&
  22. startDate.getYear() === date.getYear()) {
  23. return true;
  24. }
  25. return false;
  26. }
  27.  
  28. $(document).ready(function()
  29. {
  30. // add on change to all "From date"
  31. }
  32. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement