Add my control/content to Appointment

4 posts, 1 answers
  1. Ajay
    Ajay avatar
    42 posts
    Member since:
    Jul 2010

    Posted 05 Aug 2010 Link to this post

    Hi,

    I want to add my custom text/content or control at runtime in each of the appointments.

    In bottom of every description I want to show an edit button which will take user to some anohher page.

    Kindly suggest how to achieve this.

    Thanks
    Ajay Shama
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 05 Aug 2010 Link to this post

    Hello Ajay Shama,


    Make use of AppointmentTemplate to customize the appointment.

    For example:
    <AppointmentTemplate>
        <div>
            <div>
                <%# Eval("Subject") %>
            </div>
            <div>
                my text/control goes here
            </div>
        </div>
    </AppointmentTemplate>


    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ajay
    Ajay avatar
    42 posts
    Member since:
    Jul 2010

    Posted 05 Aug 2010 Link to this post

    Hi Princy,

    Thank you very much for the response, sorry i didn't explained my issue in detail in the last post.

    Actually I have some more fields in the appointment table, i.e. SupplierId and Supplier Name, I have to show data of these in the appointment text area. I tried using below code in the AppointmentTemplate but it returns error:

    <%

    # Eval("cSupplierId") %>

    I want use the AppointmentTemplate to like below:

    <AppointmentTemplate>
        <b><%# Eval("Subject") %></b>
        <br />
        <%# Eval("Description")%> 
        <br />
        <asp:Label ID="lblEdit" runat="server" />
    </AppointmentTemplate>

    This lblEdit label's text will be set at runtime.

    Thanks

     

  5. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 09 Aug 2010 Link to this post

    Hello Ajay,

    To use this code,  you need to set CustomAttributeNames="cSupplierId" for RadScheduler, where "cSupplierId" is a column name in you RadScheduler data source. Let me know if this helps.


    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
Back to Top