Calender show same colour in selected date

2 posts, 0 answers
  1. Sangeeta
    Sangeeta avatar
    8 posts
    Member since:
    Dec 2014

    Posted 09 Jan 2015 Link to this post

    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>

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 14 Jan 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top