Question about Custom Attributes

5 posts, 0 answers
  1. Shane Ham
    Shane Ham avatar
    14 posts
    Member since:
    Jan 2008

    Posted 05 Jun 2009 Link to this post

    I have a custom InlineInsertTemplate and a custom InlineEditTemplate that I am trying to use custom attributes with.

    I have 2 additional fields that I am trying to include in the Appointment declared in code behind as
    RadScheduler1.CustomAttributeNames = new string[] {"factorName", "Notes"};

    These are Binded in the custom templates using the following syntax



    asp:TextBox ID="EditTxtNotes" runat="server" TextMode="MultiLine" Rows="5" Width="100%" Text='<%# Bind("Notes") %>'></asp:TextBox>


    Now I am trying to save the appointment by handling the AppointmentCommand event use the following syntax.

    newProjection.Notes = e.Container.Appointment.Attributes[


    The attribute always returns an empty string. In fact the Attributes.Count of the Appointment is 0.

    What am I doing incorrectly?


  2. Shane Ham
    Shane Ham avatar
    14 posts
    Member since:
    Jan 2008

    Posted 05 Jun 2009 Link to this post

    Seems like the attribute collection is not available duing the AppointmentCommand event.
    Using the AppointmentInsert event solves the issue.
  3. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 02 Dec 2009 Link to this post

    I'm trying to bind custom attributes as well. Currently trying to get my head around it.
    I want to bind a combo box. It seems that you can only bind the text of a control.

    What are you binding to your scheduler that has the Notes property?
    Is it a telerik appointment object with a Custom Attribute called Notes? a data table with a Notes column?

    It looks to me that the stuff in here
                    <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" 
                        Subject='<%# Bind("Subject") %>' 
                        Description='<%# Bind("Description") %>' 
                        Start='<%# Bind("Start") %>' 
                        End='<%# Bind("End") %>' 
                        RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' 
                        AppointmentColor='<%# Bind("AppointmentColor") %>' 
                        UserID='<%# Bind("User") %>' 
                        RoomID='<%# Bind("Room") %>' /> 

    Can only be properties of the Telerik Appointment object.
  4. Peter
    Peter avatar
    6637 posts

    Posted 04 Dec 2009 Link to this post

    Hello towps,

    Please, review this demo:

    Track how the AppointmentColor custom attribute is used for two-way binding of the RadColorPicker in the custom advanced form.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Amit Vaidya
    Amit Vaidya avatar
    16 posts
    Member since:
    Sep 2009

    Posted 07 Jan 2010 Link to this post


    I want to change week view column header to links so that when user clicks on the link it will navigate to that particular day. How can I achieve this functionality.

Back to Top