New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Integrating RadEditor in the advanced form of RadScheduler


Integrate RadEditor in the advanced form of RadScheduler


RadEditor replaces the Description field of the advanced form. It's content is saved in the Description field and the stripped down plain text of the content (no formatting) is saved in a custom attribute - DescriptionPlainText. The DescriptionPlainText custom attribute is used for description in the AppointmentTemplate.

Advanced form:

RadEditor in the advanced form

Appointment template:
appointment template with plain text description


Download a working sample from here ( Then edit AdvancedForm.ascx to comment the description RadTextBox and add a RadEditor control and a description label like this:

<%-- <telerik:RadTextBox runat="server" ID="DescriptionText" TextMode="MultiLine" Columns="50"
                   Rows="5" Width="100%" Label='<%# Owner.Localization.AdvancedDescription + ":" %>' 
                   Text='<%# Eval("Description") %>' />--%> 

<%= Owner.Localization.AdvancedDescription%>: </label> <telerik:RadEditor ID="DescriptionText" runat="server"> </telerik:RadEditor>

In code-behind of AdvancedForm.ascx modify the Description property and expose a new one - DescriptionPlainText as follows:

[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
public string Description
        return DescriptionText.Content;

    DescriptionText.Content = value;

} [Bindable(BindableSupport.Yes, BindingDirection.OneWay)] public string DescriptionPlainText { get { return DescriptionText.Text; } }

<Bindable(BindableSupport.Yes, BindingDirection.TwoWay)> _
Public Property Description() As String
        Return DescriptionText.Content
    End Get

    DescriptionText.Content = value
End Set

End Property <Bindable(BindableSupport.Yes, BindingDirection.OneWay)> _ Public ReadOnly Property DescriptionPlainText() As String Get Return DescriptionText.Text End Get End Property

In Default.aspx make the following changes:

<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="650px"
    SelectedDate="2007-03-30" TimeZoneOffset="03:00:00"
    CustomAttributeNames="AppointmentColor, DescriptionPlainText"
    <AdvancedForm Modal="true" />
        <div class="rsAptSubject">
            <%# Eval("Subject") %>
        <%# Eval("DescriptionPlainText")%>
        <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit"
            Subject='<%# Bind("Subject") %>'
            Description='<%# Bind("Description") %>' 
            DescriptionPlainText='<%# Bind("DescriptionPlainText") %>'
            Start='<%# Bind("Start") %>'
            End='<%# Bind("End") %>'
            RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
            AppointmentColor='<%# Bind("AppointmentColor") %>' 
            UserID='<%# Bind("User") %>'
            RoomID='<%# Bind("Room") %>' />
        <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert"
            Subject='<%# Bind("Subject") %>'
            Start='<%# Bind("Start") %>'
            End='<%# Bind("End") %>'
            Description='<%# Bind("Description") %>'
            DescriptionPlainText='<%# Bind("DescriptionPlainText") %>'
            RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
            AppointmentColor='<%# Bind("AppointmentColor") %>'  
            UserID='<%# Bind("User") %>'
            RoomID='<%# Bind("Room") %>' />
    <TimelineView UserSelectable="false" />
    <TimeSlotContextMenuSettings EnableDefault="true" />
    <AppointmentContextMenuSettings EnableDefault="true" />                 

You can download a sample project from here.

In this article