This is a migrated thread and some comments may be shown as answers.

Add my control/content to Appointment

3 Answers 45 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 05 Aug 2010, 11:17 AM
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

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Aug 2010, 11:55 AM
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.
0
Ajay
Top achievements
Rank 1
answered on 05 Aug 2010, 12:05 PM
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

 

0
Accepted
Peter
Telerik team
answered on 09 Aug 2010, 02:29 PM
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
Tags
ToolTip
Asked by
Ajay
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ajay
Top achievements
Rank 1
Peter
Telerik team
Share this question
or