Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Customize Appointment Order in MonthView Day Cell.
posted

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

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

Parents
  • 150
    posted

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

     

Reply Children