Hi,
I would like to allow a user to select a period of time by clicking the time bar. It would be helpful for me to only allow the user to select a full valid time period.
For example, I want to force a user to pick a full month of time. When they click anywhere in a month it selects the range from the 1st to the last day of the month. This I can accomplish pretty easily by using the Selection Changed event. Where it gets tricky is that I have periods that I want to allow the user to select. This period is the minimum date/time selection I wish to allow the user to choose. For example, I may want to allow the user to choose all of January however February I may allow them to select 2/1 - 2/14 or 2/15 - 2/28.
It seems like I could accomplish this if I were able to fill in the IntervalItems property on the control but the setter for that is private.
So my question is this. Is there any way I can specify the exact bands of time that the user is allowed to select? Min range / Max range does not work as this can change from month to month.
Thanks,
David Sandor
I would like to allow a user to select a period of time by clicking the time bar. It would be helpful for me to only allow the user to select a full valid time period.
For example, I want to force a user to pick a full month of time. When they click anywhere in a month it selects the range from the 1st to the last day of the month. This I can accomplish pretty easily by using the Selection Changed event. Where it gets tricky is that I have periods that I want to allow the user to select. This period is the minimum date/time selection I wish to allow the user to choose. For example, I may want to allow the user to choose all of January however February I may allow them to select 2/1 - 2/14 or 2/15 - 2/28.
It seems like I could accomplish this if I were able to fill in the IntervalItems property on the control but the setter for that is private.
So my question is this. Is there any way I can specify the exact bands of time that the user is allowed to select? Min range / Max range does not work as this can change from month to month.
Thanks,
David Sandor