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

radschedule: showing location information

1 Answer 130 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ukung
Top achievements
Rank 1
ukung asked on 04 Sep 2007, 03:37 AM
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

Sort by
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.

All the best,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
ukung
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or