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

Place/location with just a textfield

2 Answers 52 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Andreas Selling
Top achievements
Rank 2
Andreas Selling asked on 09 Jun 2009, 02:36 PM
Hello

I don't find any information about place/location to just have it as a plain textfield. I'm using exchange 2003 as datasource and place is an important field wich is just plain text.

How can I add it?


I also have a question on minutes. Will there be an upgrade showing the apointments in minutes visually?

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 10 Jun 2009, 11:51 AM
Hi Andreas Selling,

In CreateAppointmentsFromCalendarItem of your provider, add any additional information as appointment custom attribute:
    protected virtual IEnumerable<Appointment> CreateAppointmentsFromCalendarItem(RadScheduler owner, string sharedCalendarName, CalendarItemType calendarItem)  
        {  
            Appointment calendarAppointment = new Appointment();  
            calendarAppointment.ID = calendarItem.ItemId.Id;  
            calendarAppointment.Subject = calendarItem.Subject;  
            calendarAppointment.Start = calendarItem.Start;  
            calendarAppointment.End = calendarItem.End;  
            calendarAppointment.Owner = owner;  
 
            calendarAppointment.Attributes[ExchangeIdAttribute] = calendarItem.ItemId.Id;  
            calendarAppointment.Attributes[ExchangeChangeKeyAttribute] = calendarItem.ItemId.ChangeKey;  
 
 
            //Get any additional data to display.  
            calendarAppointment.Attributes["Location"] = calendarItem.Location;  
            calendarAppointment.Attributes["Organizer"] = calendarItem.Organizer.Item.Name; 

Then, define AppointmentTemplate like this:
  <AppointmentTemplate> 
                    <asp:Label ID="lblSubject" runat="server" CssClass="subject"><%# Eval("Subject") %></asp:Label> 
                    <br /> 
                    <asp:Literal ID="ltrlLocation" runat="server" Text='<%# Eval("Attributes[\"Location\"]") %>' /> 
                    <br /> 
                    <asp:Literal ID="ltrlOrganizer" runat="server" Text='<%# Eval("Attributes[\"Organizer\"]") %>' /> 
                </AppointmentTemplate> 


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Andreas Selling
Top achievements
Rank 2
answered on 10 Jun 2009, 09:11 PM
Thanks Peter!
Tags
Scheduler
Asked by
Andreas Selling
Top achievements
Rank 2
Answers by
Peter
Telerik team
Andreas Selling
Top achievements
Rank 2
Share this question
or