Here is the short version:
I have a particular event (an event with a particular subject for instance) and I want this to aways be the first DIV it's corresponding day cell in the month view.
Any input would be helpful. So far, I have tryed to Inherit from WebMonthView and create custom WebControlAdapter, neither of these allow me to see into the "day" cell or collection or anything. I have also tryed creating a CustomDataProvider and Modified the Appointments during DataBinding (the following allow me to set custom colors for known events) AppointmentsSubsetCollection events = WebScheduleInfo.GetAppointmentsForDate(WebScheduleInfo.ActiveResource, myStartDate);foreach (Appointment ev in events){ ev.Style.BackColor = myCustomColor;}With the above code I have also tryed to remove my known events and then re-add them at Index=0 but it still seems to be based on the IComparer.Compare(object x, object y) found in Infragistics.WebUI.WebSchedule.ActivitiesSubset
Any input would be helpful. So far, I have tryed to Inherit from WebMonthView and create custom WebControlAdapter, neither of these allow me to see into the "day" cell or collection or anything. I have also tryed creating a CustomDataProvider and Modified the Appointments during DataBinding (the following allow me to set custom colors for known events)
AppointmentsSubsetCollection events = WebScheduleInfo.GetAppointmentsForDate(WebScheduleInfo.ActiveResource, myStartDate);foreach (Appointment ev in events){ ev.Style.BackColor = myCustomColor;}
IComparer.Compare(object x, object y)
found in Infragistics.WebUI.WebSchedule.ActivitiesSubset
Some more details:
When 2 or more events start at the same time (in my case 12:00am) there is no control over which is shown first. I need control over this. More importantly I would like to have control over the render order of the events in each day. I feel that this should be possible without source code re-compile (this has created problems in the past)
Best case:
I am looking for the kind of control you have in the OnDayRender of the standard .NET Calendar control.
A little more:
Is there any control over the style of each day number in the monthly view (I.E if day has event 'x' then bgcolor=blue)?
Have you able to short out the Problem?
Im also facing same problem here. Im looking for day render event with webmonthview. but i m not able to find it.
Please let me know if any one able to get any solution.....
The official response from Infragistics was a resounding "No, thanks for playing."
In my case I was forced to go in another direction. I had one particular event that I always wanted to show first and I had to remove this event from the collection then use JavaScript to color the background of the actual Day Number with the color from the removed event. Again, this was unique to my scenario, and certainly not a solution to the problem.
Sorry, good luck
i also got the replay from infragistics but not satisfied with there answer. I think i go for Visual studio Calendar. Dont want to spend alot time behind this. here is the answer from infragistic if anything useful for you.
Unfortunately the WebMonthView does not have any functionality which would allow you to render day in both client and server side. But Infragistics WebCalendar control has client side renderDay event. For more information on this control and its client side events, please follow the links:
http://help.infragistics.com/NetAdvantage/NET/2008.1/CLR2.0/
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/WebCalendarView_About_WebCalendarView.html
By the way thanks for your replay.
Have you got any solution ? I am also facing same problem and already spend 2 days on it. Please let
me know, if you find any kind of solution?