When opening the WebSchedule - Full Page Example, ActiveDay is set to Todays' Date - here and now 3/10/2008.
The first day visible in the WebMonthView is Feb 25 (left upper corner), the last day is Apr 6 (right lower corner).
How do I know about this two days in a server-side event (e.g. ActiveDayChange)?
Something similar like WebMonthView.FirstVisibleDate? Is there an Method or an Property for this dates?
I would also like to know the answer to this one. How to get the first and last day of WebMonthView and at which point to do this?
It might be that the whole schedule is defined by the data after data binding which would be bad. In my case I want to get the first and last day that the WebMonthView would be showing so I can get the Resources based on that info. Don't ask why though, I have my reasons for it.
I have been fighting this for a while and then noticed that in debug mode there was a property called "FirstVisibleDay" listed in the Locals under my WebMonthView instance. I am using version 14, so I don't know if it was there in earlier versions or not.
The big question is WHY it is not available for us to use? I would love to hear from Infragistics about this. Is it a bug that it is private or is there a good reason we should not use it?
In the meantime, you can access it like this:
(C#)
BindingFlags bf = BindingFlags.NonPublic | BindingFlags.Instance; PropertyInfo propinfo = typeof(WebMonthView).GetProperty("FirstVisibleDay", bf); SmartDate firstdate = (SmartDate)propinfo.GetValue(WebMonthView1, null);
Please post if this helps you or, more importantly, you have problems with it.
Thanks,
Mark