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)?
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
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.....