Hello, I have data coming into the scheduler that's formatted as html. So you should be able to click of the appointment subject and follow a link. For some reason I'm having difficulty showing the subject text as clickable, instead I have all the html markup shown.
5 Answers, 1 is accepted
0
Hi Dasha,
Please, consider Using Templates.
Best wishes,
Peter
the Telerik team
Please, consider Using Templates.
Best wishes,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0

Dasha
Top achievements
Rank 1
answered on 25 Aug 2010, 05:25 PM
Thank you for the suggestion. Does this mean that there's no way to display formatted text without templates?
0
Using templates is the approach we recommend for this case. Do you experience any problems in particular with this?
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0

Dasha
Top achievements
Rank 1
answered on 01 Sep 2010, 09:21 AM
Peter,
I tried using the template approach and in general it's working well for me. I am seeing an issue with recurrence images. Since we're populating data from a source that may contain SharePoint recurrence formatting, in certain cases there's a special algorithm applied to calculating the recurrence, and in order to get the images to show up, I was using the AppointmentDataBound event:
This is my template:
I'm not seeing the images show up if I use this template with my approach. Is there anything I can add to accomodate the images?
I tried using the template approach and in general it's working well for me. I am seeing an issue with recurrence images. Since we're populating data from a source that may contain SharePoint recurrence formatting, in certain cases there's a special algorithm applied to calculating the recurrence, and in order to get the images to show up, I was using the AppointmentDataBound event:
void
RadScheduler_AppointmentDataBound(
object
sender, SchedulerEventArgs e)
{
if
(e.Appointment.Subject.StartsWith(
"_Recur_Label_"
))
{
e.Appointment.RecurrenceState = RecurrenceState.Occurrence;
e.Appointment.Subject = e.Appointment.Subject.Replace(
"_Recur_Label_"
,
""
);
}
else
if
(e.Appointment.Subject.StartsWith(
"_Recur_Ex_Label_"
))
{
e.Appointment.RecurrenceState = RecurrenceState.Exception;
e.Appointment.Subject = e.Appointment.Subject.Replace(
"_Recur_Ex_Label_"
,
""
);
}
}
This is my template:
<
AppointmentTemplate
>
<
div
class
=
"rsAptSubject"
>
<%# HttpUtility.HtmlDecode(Eval("Subject").ToString()) %>
</
div
>
<
span
style
=
"font-size: x-small!important; font-style: italic!important;"
>
<%# CWCalendar.DataDescriptionField %>
<%# Eval("Description") %></
span
>
</
AppointmentTemplate
>
I'm not seeing the images show up if I use this template with my approach. Is there anything I can add to accomodate the images?
0
Hi Dasha,
Please, try the following code:
Best wishes,
Peter
the Telerik team
Please, try the following code:
protected
void
RadScheduler1_AppointmentCreated(
object
sender, AppointmentCreatedEventArgs e)
{
if
(e.Appointment.RecurrenceState == RecurrenceState.Master || e.Appointment.RecurrenceState == RecurrenceState.Occurrence)
{
Panel recurrenceStateDiv =
new
Panel();
recurrenceStateDiv.CssClass =
"rsAptRecurrence"
;
e.Container.Controls.AddAt(0, recurrenceStateDiv);
}
if
(e.Appointment.RecurrenceState == RecurrenceState.Exception)
{
Panel recurrenceStateDiv =
new
Panel();
recurrenceStateDiv.CssClass =
"rsAptRecurrenceException"
;
e.Container.Controls.AddAt(0, recurrenceStateDiv);
}
}
Best wishes,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items