This question is locked. New answers and comments are not allowed.
Hi Telerik,
Our business needs require that we only allow cells that fall on week days to be enabled. Searching through the documentation the only reference I've found to disabling cells requires a min and max date which creates a range of enabled cells while the rest are disabled. In the context of range selection this make sense, but for our needs its not applicable since we essentially only want the weekends to be disabled, and not the dates in between.
I've a way to sort of implement this behaviour by extending the Calendar adapter class and shading the calendar cell as disabled in my getDateView method if it falls on a sunday or saturday, but this of course does not actually disable the cell. I was hoping that setEnabled(false) would do the trick, but this does not seem to work with the framework provided. Is there a way I could achieve this functionality while still holding true to the way the framework was meant to be utilized?
I've attached a png file that illustrates what I have envisioned.
Thanks for your time,
Amadeus
Our business needs require that we only allow cells that fall on week days to be enabled. Searching through the documentation the only reference I've found to disabling cells requires a min and max date which creates a range of enabled cells while the rest are disabled. In the context of range selection this make sense, but for our needs its not applicable since we essentially only want the weekends to be disabled, and not the dates in between.
I've a way to sort of implement this behaviour by extending the Calendar adapter class and shading the calendar cell as disabled in my getDateView method if it falls on a sunday or saturday, but this of course does not actually disable the cell. I was hoping that setEnabled(false) would do the trick, but this does not seem to work with the framework provided. Is there a way I could achieve this functionality while still holding true to the way the framework was meant to be utilized?
I've attached a png file that illustrates what I have envisioned.
Thanks for your time,
Amadeus