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

Bind RadSchedular with included fields other than in Appointment.

1 Answer 48 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ajay
Top achievements
Rank 1
ajay asked on 30 Sep 2008, 07:54 AM
I have put the label for Showing FirstName under the "AppointmenTemplate" template section of the RadScheduler, but the problem is that when i use to bind the list of AppointmentInfo which contains all the required fields for ex- 'DataSubjectField', 'DataStartField' etc(and also contains extra fields like UserFirstName). but the problem is that I want to show some extra fields to be displayed in the Appointment and when i use the code like this in the aspx page as below:
 <AppointmentTemplate>
                  <table width="100%">
                    <tr>
                        <td>
                            <asp:Label ID="lblUserName" Text='<%# Eval("AppointmentInfo.UserFirstName") %>' runat="server"></asp:Label>

It gives me the DataBind Exception::

DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'AppointmentInfo'.


Please if anybody can help me. Thanks in Advance.
Ajay

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 30 Sep 2008, 12:27 PM
Hi Ajay,

You need to specify only the name of the additional property like this: <%# Eval("UserFirstName") %>.

Regards,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
ajay
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or