It's not possible out of the box... but it shouldn't be too hard to wire up yourself. Calendar controls from the toolkit render out with various css classes that can be useful for you. Assuming you don't have a lot of Tables on your page, you can iterate over them by getting a collection of tables through getElementsByTagName('TABLE'), then check if the immediate parent of the table has the class 'ajax_calendar_days'. From there, it follows a very simple pattern, you have a collection of rows, each one has exactly 7 TDs, each TD has a nested DIV tag with a date assigned to it that includes as the first three letters of the string the day it corresponds to (Mon, Tue, etc). So you can either rely on the index (1-7) or do some string parsign to match the day to the 'blockout' day you want to set. For each one that you find, you will want to disable it by (probably) calling $clearHandlers(element) on it, and probably setting a different css class to it in order to provide a nice visual to your users tthat lets them know they can't use it.
Hope that helps.
Paul
No comments:
Post a Comment