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

Calender show same colour in selected date

1 Answer 19 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sangeeta
Top achievements
Rank 1
Sangeeta asked on 09 Jan 2015, 08:50 AM
Hello,
         I used Rad Scheduler So in calender show the same colour for Definition,Development,Testing,Retesting in selected date like screen shot of MyCalenderView. This is wrong. It should different-different colour for Definition,Development,Testing,Retesting in selected date like screen shot of Calender_View.
         Attach the screen shot.

<telerik:RadScheduler runat="server" ID="rscCalender"  
            
          GroupBy="ProjectID" GroupingDirection="Vertical"  
            DataSourceID="EventsDataSource" 
            DataKeyField="ProjectID"
            DataSubjectField="Stage" 
             FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
              DataStartField="Phase_Start_Date" DataEndField="Phase_End_Date"
             SelectedView="MonthView" OnTimeSlotCreated="rscCalender_TimeSlotCreated"
            OnAppointmentInsert="rscCalender_AppointmentInsert" OnAppointmentUpdate="rscCalender_AppointmentUpdate" AllowDelete="false" AllowEdit="false" AllowInsert="false" >

            <MonthView FirstDayHeaderDateFormat="''d''" />
          
            <AdvancedForm Modal="false"></AdvancedForm>
           
            <ResourceHeaderTemplate >
                <asp:Panel ID="ResourceImageWrapper" runat="server">               
                    <asp:LinkButton ID="lnkProjectName" runat="server" ></asp:LinkButton>
                </asp:Panel>
            </ResourceHeaderTemplate>
            <ResourceTypes>
                <telerik:ResourceType KeyField="BuildID" Name="ProjectID" TextField="ProjectName" ForeignKeyField="BuildID"
                 DataSourceID="ProjectSource"  ></telerik:ResourceType>
            </ResourceTypes>
          <DayView  UserSelectable="false"/>
   
            <WeekView UserSelectable="false" />
    <TimelineView  UserSelectable="false"/>
        </telerik:RadScheduler>

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 14 Jan 2015, 08:32 AM
Hello,

As far as I understand you want to apply different color to the appointments based on the their resource value. I would suggest using the RadScheduler ResourceStyleMapping as shown in the Setting styles for appointments help article. Specifically please take a look at the Resource style mapping section.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Scheduler
Asked by
Sangeeta
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or