This is a migrated thread and some comments may be shown as answers.

Problem with saperate color for weak ends and non business hours

1 Answer 29 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Maddela
Top achievements
Rank 1
Maddela asked on 12 Aug 2011, 08:45 AM
                  
Hi,
                 We are using rad scheduler to show particular appointments, here the problem is it showing separate color for weak ends and non business hours, when some default themas were applied. So we do not need that separate color. 

  • How can we remove that separate color for both weak ends and non business hours ?

                And we already followed some other way to implement this one, below is the code to represent the way which we followed.

In aspx page we give one style :-

<style type="text/css">
    .MyClass
    {
        background-color: White !important;
    }
</style>

In aspx.cs page we wrirren the followed code :-

 protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
        {
            if (RadScheduler1.SelectedView == SchedulerViewType.WeekView || RadScheduler1.SelectedView == SchedulerViewType.DayView)
            {
                if (e.TimeSlot.Start.Date.DayOfWeek == DayOfWeek.Saturday || e.TimeSlot.Start.Date.DayOfWeek == DayOfWeek.Sunday)
                {
                    e.TimeSlot.CssClass = "MyClass";
                }
            }
        }

OutPut :-
        Please find attached for out put. But this is not the exact output which we are expecting.
       If u observe my scree shot u will come to know that separate colors, i want every thing should be in white color.

Kindly help me out from this.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 17 Aug 2011, 12:39 PM
Hello Maddela,

You can have a look at our KB article about the special days or timeslots.

Hope this is helpful.

Kind regards,
Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Scheduler
Asked by
Maddela
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or