I'm developing a leave management application and I have 2 types of leaves. Full day leave and half day leave. I want to limit the from and to date time pickers to same day if the full day event check box is not clicked in the default popup that appears in the add event popup.
Currently it shows 1 day difference in from and to date pickers when full day event check box is not clicked and user can select any day with any gap in from and to date pickers.
I've tried to do it but failed. Would be grate if someone can help me on doing this.
Thanks.
First you need to add a custom template editor for the popup, here is a simple one
Then to add min/max date to limit the date that can be chosen simply modify the edit function. Here i set min date is yesterday and max date is tomorrow, adjust as you wish later on
Here is the link to the kendo dojo