in current radschedule component control the information showing in control just subject/description, how to showing another information eg. the location information? just like the ms. outlook calendar.
1 Answer, 1 is accepted
0
T. Tsonev
Telerik team
answered on 04 Sep 2007, 08:38 AM
Hi Ukung,
We have introduced support for templates in the preview refresh which was released last week. Using the templates you can control the appearance of the appointments and the inline edit and insert forms.
You can customize the data of your appointments, beyond the standard fields, using attributes and resources.
In the current version, every column that your data source retrieves and is not recognized by RadScheduler is stored as an attribute to the corresponding appointment. You can access it by its name in the Bind and Eval data binding expressions. In the future versions the attributes will be defined explicitly by a property.
For example, lets assume that your data source returns a column named Location, we can define the appointment template in a similar way:
<RadScheduler ...> <AppointmentTemplate>
<%# Eval("Subject") %>
-
<%# Eval("Location") %>
</AppointmentTemplate>
</RadScheduler>
Using this template, RadScheduler will list the subject (title) and location of each appointment.
We have also prepared an example that demonstrates a more complicated scenario using templates. You can see it here.