Hi - I am using the calendar control and the Q1 2009 version. I have a resource called Status
I have my calendar configured so that if a status of an event is Completed then it is green.
I have defined two possible statuses for an event - Completed and NotCompleted. Below is the markup:
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="ENDTIME"
DataKeyField="ID" DataRecurrenceField="RECURRENCERULE"
DataRecurrenceParentKeyField="RECURRENCEPARENTID" DataSourceID="SqlDataSource1"
DataStartField="STARTTIME" DataSubjectField="DESCRIPTION"
HoursPanelTimeFormat="htt" SelectedView="MonthView" Skin="Office2007"
style="top: 0px; left: 0px" ValidationGroup="RadScheduler1">
<ResourceTypes>
<telerik:ResourceType DataSourceID="SqlDataSource2"
ForeignKeyField="VQEMSTATUSID" KeyField="ID" Name="Status" TextField="NAME" />
<telerik:ResourceType DataSourceID="SqlDataSource3"
ForeignKeyField="LOCATIONID" KeyField="ID" Name="Location" TextField="NAME" />
<telerik:ResourceType DataSourceID="SqlDataSource4" ForeignKeyField="USERID"
KeyField="ID" Name="Analyst First Name" TextField="FIRSTNAME" />
<telerik:ResourceType DataSourceID="SqlDataSource4" ForeignKeyField="USERID"
KeyField="ID" Name="Analyst Last Name" TextField="LASTNAME" />
</ResourceTypes>
<ResourceStyles>
<telerik:ResourceStyleMapping ApplyCssClass="rsCategoryGreen"
Type="Status" Text="Completed" />
</ResourceStyles>
</telerik:RadScheduler>
Is there a way to add a third condition that
if a status is NotCompleted and the date is < today then make it red?
If u have a code sample or even just a two line snipped that does that it would be great.
Thanks Very much
Susan
I have my calendar configured so that if a status of an event is Completed then it is green.
I have defined two possible statuses for an event - Completed and NotCompleted. Below is the markup:
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="ENDTIME"
DataKeyField="ID" DataRecurrenceField="RECURRENCERULE"
DataRecurrenceParentKeyField="RECURRENCEPARENTID" DataSourceID="SqlDataSource1"
DataStartField="STARTTIME" DataSubjectField="DESCRIPTION"
HoursPanelTimeFormat="htt" SelectedView="MonthView" Skin="Office2007"
style="top: 0px; left: 0px" ValidationGroup="RadScheduler1">
<ResourceTypes>
<telerik:ResourceType DataSourceID="SqlDataSource2"
ForeignKeyField="VQEMSTATUSID" KeyField="ID" Name="Status" TextField="NAME" />
<telerik:ResourceType DataSourceID="SqlDataSource3"
ForeignKeyField="LOCATIONID" KeyField="ID" Name="Location" TextField="NAME" />
<telerik:ResourceType DataSourceID="SqlDataSource4" ForeignKeyField="USERID"
KeyField="ID" Name="Analyst First Name" TextField="FIRSTNAME" />
<telerik:ResourceType DataSourceID="SqlDataSource4" ForeignKeyField="USERID"
KeyField="ID" Name="Analyst Last Name" TextField="LASTNAME" />
</ResourceTypes>
<ResourceStyles>
<telerik:ResourceStyleMapping ApplyCssClass="rsCategoryGreen"
Type="Status" Text="Completed" />
</ResourceStyles>
</telerik:RadScheduler>
Is there a way to add a third condition that
if a status is NotCompleted and the date is < today then make it red?
If u have a code sample or even just a two line snipped that does that it would be great.
Thanks Very much
Susan