Hi
In my appointment template, I have a hyperlink where I am passing the ID to a new page using query string. I only want to show this hyperlink if the resource type is equal to "Clubs". Is this possible?
In my appointment template, I have a hyperlink where I am passing the ID to a new page using query string. I only want to show this hyperlink if the resource type is equal to "Clubs". Is this possible?
<
telerik:RadScheduler
ID
=
"RadScheduler1"
runat
=
"server"
DataDescriptionField
=
"Description"
DataEndField
=
"EndDate"
DataKeyField
=
"ID"
DataRecurrenceField
=
"RecRule"
DataRecurrenceParentKeyField
=
"Type"
DataSourceID
=
"sqlDSTodaysEvents"
DataStartField
=
"StartDate"
DataSubjectField
=
"Name"
EnableDescriptionField
=
"True"
Height
=
""
ReadOnly
=
"True"
ShowAllDayRow
=
"False"
ShowFooter
=
"False"
TimeLabelRowSpan
=
"1"
Culture
=
"en-GB"
NumberOfHoveredRows
=
"1"
RowHeight
=
"49px"
EnableExactTimeRendering
=
"True"
ShowNavigationPane
=
"False"
ShowResourceHeaders
=
"False"
ShowViewTabs
=
"False"
ShowHeader
=
"False"
SkinID
=
"Default"
DataReminderField
=
"ReminderInfo"
Skin
=
"Sitefinity"
MinutesPerRow
=
"60"
FirstDayOfWeek
=
"Monday"
LastDayOfWeek
=
"Sunday"
WorkDayEndTime
=
"16:00:00"
>
<
ResourceTypes
>
<
telerik:ResourceType
DataSourceID
=
"sqlDSEventDef"
ForeignKeyField
=
"EventTypeID"
KeyField
=
"EventTypeID"
Name
=
"Type"
TextField
=
"EventType"
/>
</
ResourceTypes
>
<
ResourceStyles
>
<
telerik:ResourceStyleMapping
Type
=
"Type"
Text
=
"Lessons"
ApplyCssClass
=
""
BackColor
=
"#66CCFF"
/>
<
telerik:ResourceStyleMapping
Type
=
"Type"
Text
=
"Clubs"
ApplyCssClass
=
""
BackColor
=
"#FFCC00"
/>
<
telerik:ResourceStyleMapping
Type
=
"Type"
Text
=
"Trips"
ApplyCssClass
=
""
BackColor
=
"#FF66CC"
/>
</
ResourceStyles
>
<
Reminders
Enabled
=
"False"
/>
<
WebServiceSettings
>
<
ODataSettings
InitialContainerName
=
""
>
</
ODataSettings
>
</
WebServiceSettings
>
<
AppointmentTemplate
>
<
div
>
<
asp:HyperLink
ID
=
"HyperLink1"
runat
=
"server"
NavigateUrl='<%# "register.aspx?
ClubID
=
" + Eval("
ID") %>'><%# Eval("Subject") %></
asp:HyperLink
>
</
div
>
</
AppointmentTemplate
>
</
telerik:RadScheduler
>