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

Appointment Tooltip in Safari

3 Answers 56 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Pooja
Top achievements
Rank 1
Pooja asked on 29 Sep 2011, 02:00 PM
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>

3 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 03 Oct 2011, 10:53 AM
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 >>

0
Pooja
Top achievements
Rank 1
answered on 03 Oct 2011, 11:17 AM
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;
               }
           }
       }
 
   }
0
Rosi
Telerik team
answered on 06 Oct 2011, 11:03 AM
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 >>

Tags
ScheduleView
Asked by
Pooja
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Pooja
Top achievements
Rank 1
Share this question
or