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

Accessing appointment attributes from AppointmentTemplate

0 Answers 43 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 22 Nov 2011, 05:40 PM
I'm creating an appointment template and I have found lots of good examples on accessing the appointment properties there like this:

            <AppointmentTemplate>
                <p>
                    <h2><%# Eval("Subject") %></h2>
                </p>
            </AppointmentTemplate>

But I'm having trouble figuring out how to get to the attributes from here. I have an attribute called loc_descrip that I can get to this way in the codebehind: appointment.Attributes["loc_descrip"]. How would that be accessed in the AppointmentTemplate?

Edit to add: Ah, figured it out. I'll post what I did in case anyone else wonders the same thing:
Single quotes were the key: <%# Eval("Attributes['loc_descrip']") %>

Thanks!

No answers yet. Maybe you can help?

Tags
Scheduler
Asked by
Matt
Top achievements
Rank 1
Share this question
or