Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

ResourceStyleMapping Not applying

$
0
0

Hello

 I've successfully added a resource field called "Assigned" to my radscheduler and I've tried setting the style of the appointments via the resource mapping but it does not work.

I've followed the guides and i've even tried changing it via the vb code and all of my efforts seem to be ignored for some reason.

 I was wondering if there is anything i've overlooked or something that would override my settings.

 The radscheduler code in my project is as follows;

 

<telerik:RadSchedulerID="RadScheduler1"runat="server"DataDescriptionField="Description"DataEndField="Endtime"DataKeyField="ID"DataReminderField="Reminder"DataSourceID="SqlDataSource1"DataStartField="Starttime"DataSubjectField="Subject"BorderStyle="None"Culture="en-GB"FirstDayOfWeek="Monday"LastDayOfWeek="Friday"SelectedView="TimelineView"ShowFooter="False"ShowHoursColumn="False"EnableDescriptionField="True"AllowDelete="False"BackColor="#EEEEEE"EnableRecurrenceSupport="False"ShowViewTabs="False"StartInsertingInAdvancedForm="True"RowHeight="30px"OnAppointmentDataBound="RadScheduler1_SchedulerDataBound"AllowInsert="False"Height="340px"TimelineView-HeaderDateFormat="d"RowHeaderWidth="46px">
    <ExportSettings>
        <PdfPageTopMargin="1in"PageBottomMargin="1in"PageLeftMargin="1in"PageRightMargin="1in"AllowAdd="True"AllowModify="True"PageHeight="297mm"PageWidth="210mm"PaperSize="A4"></Pdf>
    </ExportSettings>
    <ResourceTypes>
        <telerik:ResourceTypeDataSourceID="SqlDataSource1"ForeignKeyField="UserID"KeyField="UserID"Name="Assigned"TextField="Assigned"/>
    </ResourceTypes>
    <ResourceStyles>                                                                                             
        <telerik:ResourceStyleMappingType="Assigned"Text="DW"ApplyCssClass="CatCheckBox1"BackColor="#3366FF"/>
        <telerik:ResourceStyleMappingType="Assigned"Text="NR"ApplyCssClass="rsCategoryBlue"/>
        <telerik:ResourceStyleMappingType="Assigned"Text="JK"ApplyCssClass="rsCategoryDarkGreen"/>
        <telerik:ResourceStyleMappingType="Assigned"Text="MG"ApplyCssClass="rsCategoryGreen"/>
        <telerik:ResourceStyleMappingType="Assigned"Text="NSG"ApplyCssClass="rsCategoryDarkRed"/>
        <telerik:ResourceStyleMappingType="Assigned"Text="AR"ApplyCssClass="rsCategoryOrange"/>
        <telerik:ResourceStyleMappingType="Assigned"Text="NN"ApplyCssClass="rsCategoryPink"/>
        <telerik:ResourceStyleMappingType="Assigned"Text="AMK"ApplyCssClass="rsCategoryRed"/>
        <telerik:ResourceStyleMappingType="Assigned"Text="EN"ApplyCssClass="rsCategoryViolet"/>
        <telerik:ResourceStyleMappingType="Assigned"Text="SD"ApplyCssClass="rsCategoryYellow"/>                            
    </ResourceStyles>
    <LocalizationAdvancedNewAppointment="New Schedule"AdvancedEditAppointment="Edit Schedule"AdvancedFrom="Received Date"AdvancedSubjectRequired="Please provide a schedule subject"AdvancedTo="Promised Date"ContextMenuAddAppointment="New Schedule"HeaderAddAppointment="Add Schedule"HeaderAgendaAppointment="Schedule"HeaderDay="1 Day"HeaderWeek="7 Day"/>
    <TimelineViewHeaderDateFormat="dd-MM-yy"NumberOfSlots="7"ShowInsertArea="False"/>
    <WeekViewUserSelectable="False"/>
    <DayViewUserSelectable="False"/>
    <MultiDayViewReadOnly="True"ShowHoursColumn="False"/>
    <MonthViewUserSelectable="False"VisibleAppointmentsPerDay="3"/>
    <AgendaViewReadOnly="True"ResourceMarkerType="Bar"/>
    <AppointmentContextMenuSettingsEnableDefault="False"/>
    <TimeSlotContextMenuSettingsEnableDefault="False"/>
    <RemindersEnabled="True"/> 
</telerik:RadScheduler>

Thanks


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>