I am using 2 webdatechoosers in my application to represent start and end dates. When the user selects a start date, I set the MinDate property of the end date chooser, so that user is not able to select an invalid end date. This is working like a breeze. The the valid and invalid dates on calender are not visually distinguised, only click on any dates before end date does not perform any action.
Is there a way to set some style properties or css properties, so that the 'out of range' dates have a different appearance, say they are crossed out or striked out. etc.
Thanks.
Unfortunately there's no property (style) to adjust that, though I agree it would be a very useful feature. I'd recommend submitting a feature request for it when you have a moment. Your one option is to use the custom rendering capabilities of the webcalendar (which is the calendar being displayed in the dropdown of the webdatechooser). There is an example of creating "custom days" in the samples browser. It is all done through JavaScript so it can be a bit messy, but I figured I'd mention it in case you really need the functionality.
http://samples.infragistics.com/2007.3/webfeaturebrowser/WebCalendar/CustomDays/customdays.aspx
-Tony
For the record, if you didn't have a feature request for this, you do now... :-)
I'm using a fairly old version of Infragistics though, so I don't actually know if this has already been implemented. If it has, could you please reply to this post and let all of us know which version it was added to?
- Sam.