Place/location with just a textfield

3 posts, 1 answers
  1. Andreas Selling
    Andreas Selling avatar
    20 posts
    Member since:
    May 2009

    Posted 09 Jun 2009 Link to this post

    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. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 10 Jun 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andreas Selling
    Andreas Selling avatar
    20 posts
    Member since:
    May 2009

    Posted 10 Jun 2009 Link to this post

    Thanks Peter!
Back to Top