Appointment Tooltip in Safari

4 posts, 0 answers
  1. Pooja
    Pooja avatar
    55 posts
    Member since:
    Feb 2011

    Posted 29 Sep 2011 Link to this post

    Please let me know if this is a known issue:
    For calendar view with Safari 3.1.2, tool tips in some cases shows tool tip from other appointment. Tooltip template I am using is 

    This issue comes intermittently.
    <DataTemplate x:Key="ToolTipTemplate">
                   <StackPanel Orientation="Horizontal">
                       <StackPanel>
                           <StackPanel Orientation="Horizontal" >
                               <TextBlock Text="{Binding Appointment.StartTime}"/>
                               <TextBlock Text="-"/>
                               <TextBlock Text="{Binding Appointment.EndTime}"/>
                               <TextBlock Text=" "/>
                               <TextBlock    Text="{Binding Subject}"  />
                           </StackPanel>
                           <TextBlock  Text="{Binding Appointment.Location}" />
                           <TextBlock  Text="{Binding Appointment.Organizer}" />
                       </StackPanel>
                       <Image Source="{Binding Appointment.ImportanceImageSource}" Width="16" Height="16" HorizontalAlignment="Right" />
                       <Image Source="{Binding Appointment.AttachmentImageSource}" Width="16" Height="16" HorizontalAlignment="Right"/>
                   </StackPanel>
               </DataTemplate>
  2. Rosi
    Admin
    Rosi avatar
    2529 posts

    Posted 03 Oct 2011 Link to this post

    Hi Pooja,

    I suggest you modify the bindings as shown below and let us know whether this helps.
    <DataTemplate x:Key="ToolTipTemplate">
                   <StackPanel Orientation="Horizontal">
                       <StackPanel>
                           <StackPanel Orientation="Horizontal" >
                               <TextBlock Text="{Binding StartTime}"/>
                               <TextBlock Text="-"/>
                               <TextBlock Text="{Binding EndTime}"/>
                               <TextBlock Text=" "/>
                               <TextBlock    Text="{Binding Subject}"  />
                           </StackPanel>
                           <TextBlock  Text="{Binding Location}" />
                           <TextBlock  Text="{Binding Organizer}" />
                       </StackPanel>
                       <Image Source="{Binding ImportanceImageSource}" Width="16" Height="16" HorizontalAlignment="Right" />
                       <Image Source="{Binding AttachmentImageSource}" Width="16" Height="16" HorizontalAlignment="Right"/>
                   </StackPanel>
               </DataTemplate>


    Regards,
    Rosi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Pooja
    Pooja avatar
    55 posts
    Member since:
    Feb 2011

    Posted 03 Oct 2011 Link to this post

    I tried changing the tooltip template as per your suggestion. It is giving binding expression errors in output window.

    System.Windows.Data Error: BindingExpression path error: 'StartTime' property not found on 'Meeting 1 : 12.10.11 12:30:00 - 12.10.11 13:00:00' 'Telerik.Windows.Controls.AppointmentItemProxy'

    My class definition is 

    public class CalendarItem : Appointment
       {
     
           public string StartTime
           {
               get
               {
                   return Start.ToString("hh:mm tt", Thread.CurrentThread.CurrentCulture);
               }
           }
     
           public string EndTime
           {
               get
               {
                   return End.ToString("hh:mm tt", Thread.CurrentThread.CurrentCulture);
               }
           }
     
           public string AttachmentImageSource
           {
               get
               {
                   int numberOfAtt = int.Parse(NumberOfAttachment);
                   if (numberOfAtt > 0)
                   {
                       return @"../Images/icn_attachment_16.png";
                   }
                   else
                   {
                       return string.Empty;
                   }
               }
           }
     
           public string NumberOfAttachment { get; set; }
     
           public string Sender { get; set; }
     
           public string DelegatedFromPerson { get; set; }
     
           public string Organizer
           {
               get
               {
                   if (!string.IsNullOrEmpty(DelegatedFromPerson))
                       return Sender + " On Behalf of " + DelegatedFromPerson;//todo-move to resource file
                   else
                       return Sender;
               }
           }
     
           public string ImportanceImageSource
           {
               get
               {
                   if (Importance == Importance.Low)
                   {
                       return @"../Images/LowImportance.png";
                   }
                   else if (Importance == Importance.High)
                   {
                       return @"../Images/HighImportance.png";
                   }
                   else
                   {
                       return string.Empty;
                   }
               }
           }
     
       }
  4. Rosi
    Admin
    Rosi avatar
    2529 posts

    Posted 06 Oct 2011 Link to this post

    Hi Pooja,

    I am not bale to reproduce this problem at our side. This problems appears sometimes when a custom appointment style is used. Do you use a custom appointment style or template for the AppointmentItem? If yes, I suggest you post it here so we can review it. Another option is to open a support thread and send us simple running project illustrating the problem to test it locally.

    All the best,
    Rosi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top