Appointment tooltip in new version of Scheduler

Hi,

I work on sfScheduler. I found this link
https://help.syncfusion.com/wpf/scheduler/tooltip?cs-save-lang=1&cs-lang=html
but i dont have this options in my sfScheduler, and in the example You used sfSchedule not sfScheduleR.
sfScheduler support toolTips ? Can you give some example how to use toolTips ? ToolTips in scheduler belong to any of scheduler views ?

3 Replies 1 reply marked as answer

KA Karthikraja Arumugam Syncfusion Team September 23, 2020 06:51 AM UTC

Hi Marcin, 
 
Greetings from Syncfusion. 
 
We have checked your requirement “Tooltip support in SfScheduler”. As of now, SfScheduler doesn’t have support for tooltip as default but we would like to inform you that your requirement can be achieved by using custom DataTemplate for appointment.  
 
Please refer the following code snippet for appointment template with tooltip, 
[XAML] 
 
<DataTemplate x:Key="dayAppointmentTemplate"> 
      <Grid Background="{Binding AppointmentBackground}"> 
            <TextBlock 
                    Margin="5,5,0,0" 
                    HorizontalAlignment="Stretch" 
                    Text="{Binding Subject}" TextTrimming="CharacterEllipsis" 
                    TextWrapping="Wrap" /> 
            <Grid.ToolTip> 
                  <ToolTip> 
                        <Grid Background="WhiteSmoke" Height="90" Width="150"> 
                            <Grid.RowDefinitions> 
                                <RowDefinition/> 
                                <RowDefinition Height="10"/> 
                                <RowDefinition/> 
                                <RowDefinition /> 
                            </Grid.RowDefinitions> 
 
                            <Border Grid.Row="0" Background="Black"> 
                                <TextBlock Margin="10,5,0,0" FontSize="12" Text="{Binding Subject}" Grid.Row="0" Foreground="WhiteSmoke"/> 
                            </Border> 
                            <TextBlock FontSize="14" FontWeight="Bold" FontStyle="Italic" Margin="20,0,0,0" Text="Location: " Grid.Row="2"/> 
                            <TextBlock FontSize="14" Margin="20,0,0,0" Text="{Binding Location}" Grid.Row="3"/> 
                        </Grid> 
                    </ToolTip> 
                </Grid.ToolTip> 
      </Grid> 
 </DataTemplate> 
 
<syncfusion:SfScheduler x:Name="schedule" ViewType="Week"> 
            <syncfusion:SfScheduler.DaysViewSettings> 
                <syncfusion:DaysViewSettings  
                         AppointmentTemplate="{StaticResource dayAppointmentTemplate}"/> 
            </syncfusion:SfScheduler.DaysViewSettings> 
        </syncfusion:SfScheduler> 
 
 
We have prepared a sample for your requirement, 
 
SfScheduler supports custom appointment template for all Schedule views. Kindly refer our below UG documentation to know more about template customization, 
 
We hope this helps. Please revert us if you would require any further assistance. 
 
Regards, 
Karthik Raja A 


Marked as answer

MM Marcin Marcinkowski September 23, 2020 12:49 PM UTC

It's works! Thank You :)


BT Balamurugan Thirumalaikumar Syncfusion Team September 24, 2020 10:57 AM UTC

Hi Marcin,

Thank you for the update.

We are glad to hear that reported query resolved at your end. Please let us know if you need any further assistance.

Thanks and Regards
Balamurugan


Loader.
Up arrow icon