We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

AppointmentTooltipTemplate Binding

Thread ID:

Created:

Updated:

Platform:

Replies:

117090 Aug 8,2014 10:33 AM Aug 11,2014 06:37 AM WinRT 1
loading
Tags: SfSchedule
Vinod Shinde
Asked On August 8, 2014 10:33 AM

Hi,
I am using SfSchedule control in Windows 8 app.
A class has property notes and i would like to see it in AppointmentTooltip.
But binding to this property does not work.
Subject, Start date time and Due date time do work.
Here is the code.
<syncfusion:SfSchedule x:Name="schedule" Grid.Row="1" Margin="0,-30,0,0"
                               ShowNonWorkingHours="True" IsHighLightWorkingHours="True"  
                               ScheduleType="Week" 
                               AppointmentTooltipVisibility="Visible"
                               TimeInterval="ThirtyMin">
            <syncfusion:SfSchedule.AppointmentMapping>
                <syncfusion:ScheduleAppointmentMapping 
                    AppointmentBackgroundMapping="CategoryColor"
                    AllDayMapping="IsAllDay"
                    SubjectMapping="Title" 
                    StartTimeMapping="StartDateTimeValue"
                    EndTimeMapping="DueDateTimeValue">
                </syncfusion:ScheduleAppointmentMapping>
            </syncfusion:SfSchedule.AppointmentMapping>
            <syncfusion:SfSchedule.AppointmentTooltipTemplate>
                <DataTemplate>
                    <Border BorderBrush="Black" BorderThickness="1">
                        <Grid Background="Bisque">
                            <Grid.RowDefinitions>
                                <RowDefinition/>
                                <RowDefinition/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>
                            <TextBlock FontSize="16" Foreground="White" VerticalAlignment="Center" Padding="10 0" Text="{Binding Subject}" Grid.Row="0"/>
                            <TextBlock FontSize="16" FontWeight="Bold" FontStyle="Italic" Padding="10 0" Text="Notes: " Grid.Row="1"/>
                            <TextBlock FontSize="16" Margin="20 5" Text="{Binding Note}" Grid.Row="2"/>
                        </Grid>
                    </Border>
                </DataTemplate>
            </syncfusion:SfSchedule.AppointmentTooltipTemplate>
        </syncfusion:SfSchedule>
Awaiting reply,
Thanks,
Vinod

Jeyasri M [Syncfusion]
Replied On August 11, 2014 06:37 AM

Hi Vinod,

 

Thanks for using Syncfusion products.

 

Based on the provided information we suspect that since the value of “Notes” property is null the displayed value in Appointment Tooltip should be empty, in order to bind the value in AppointmentTooltipTemplate you have to set the value to that property.

 

For your reference we have prepared a simple sample for the same, in that sample we have mapped the value of NoteMapping property to “NotesMapping” so the AppointmentTooltipTemplate binding takes the NoteMapping property value to “Notes”.

Please find sample in the below attachment.

 

Please let us know, if you have any concerns.

 

Regards,

Jeyasri M

 

 


Attachment: AppointmentToolTip_d391fb5a.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;