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

set working-days

3 Answers 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jayesh Goyani
Top achievements
Rank 2
Jayesh Goyani asked on 17 Sep 2010, 07:26 AM
i want to set Monday to Saturday as working-days by defaults it take Monday and Friday.

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 17 Sep 2010, 09:16 AM
Hi jayesh goyani,

You can use the following CSS Classes:

div.RadScheduler_Vista .rsSatCol
        {
            background-color: Transparent;
        }
        div.RadScheduler_Vista .rsNonWorkHour
        {
            background-color: #F5FCFF;
        }

Please note that this is valid for the "Vista" Skin. If you use another skin you should replace the "Vista" with the name of your skin or use "Default" if no skin is set.

Kind regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jayesh Goyani
Top achievements
Rank 2
answered on 17 Sep 2010, 02:32 PM
hi Veronica Milcheva,

thanx for your help.
 
i want to set background (which was display in 18/09/2010 and 19/09/2010) in 13/09/2010 and 14/09/2010. (see image scheduler backcolor.png)

if i use previous method than it display back-color in timeslot  and in  header (all day) also.i want back-color in timeslot only. (see image error.png)
...........
if (e.TimeSlot.Start.DayOfWeek == DayOfWeek.Monday)
        {
            e.TimeSlot.Control.BackColor = System.Drawing.Color.Blue;
        }
...................................

0
Veronica
Telerik team
answered on 20 Sep 2010, 11:14 AM
Hello jayesh goyani,

The solution used by you in the TimeSlot_Created event is right:

protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
   {
       if (e.TimeSlot.Start.DayOfWeek == DayOfWeek.Monday)
       {
           e.TimeSlot.Control.BackColor = System.Drawing.Color.Blue;
       }
   }

You only need to add the following Css class:

.RadScheduler .rsAllDayRow td
        {
            background-color: Transparent !important;
        }

Kind regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Jayesh Goyani
Top achievements
Rank 2
Answers by
Veronica
Telerik team
Jayesh Goyani
Top achievements
Rank 2
Share this question
or