ToolTip Template not working in rad scheduleview

5 posts, 0 answers
  1. Maheswari
    Maheswari avatar
    3 posts
    Member since:
    Sep 2014

    Posted 09 Sep 2014 Link to this post

    Hi support,
    I am using scheudlerView for my project.
      <DataTemplate x:Key="AppointmentToolTipTemplate">
                <Grid MaxWidth="300">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="43" />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <TextBlock Text="{Binding Subject}" Grid.ColumnSpan="2" TextWrapping="Wrap" Margin="5 8 4 3" FontWeight="Bold" />                
                    <StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="1" Margin="0 5 0 0">
                        <StackPanel Orientation="Horizontal" Margin="0 0 0 0">
                            <TextBlock Text="{Binding Start, StringFormat='hh:mm tt', Mode=TwoWay}" TextWrapping="Wrap" FontSize="10" />
                            <TextBlock Text=" - " FontSize="10" />
                            <TextBlock Text="{Binding End, StringFormat='hh:mm tt', Mode=TwoWay}" TextWrapping="Wrap" FontSize="10" />
                        </StackPanel>
                        <TextBlock Text="{Binding Start, StringFormat='dddd dd MMM yyyy', Mode=TwoWay}" Margin="0 3" FontSize="10" />
                    </StackPanel>               
                </Grid>
            </DataTemplate>

    I used this template as ToolTipTemplate ..
     i set the appointment data source in code behind as observerable collection.
    the appointment source got binded.. but tool tip template not working..????????????????
    here:
    <telerik:RadScheduleView x:Name="scheduleview" Grid.Row="1" ShowAppointmentDeleteButton="False" MinAppointmentHeight="150"  ToolTipTemplate="{StaticResource AppointmentToolTipTemplate}"   ShowDialog="scheduleview_ShowDialog" Grid.Column="1" Margin="0" NavigationHeaderVisibility="Collapsed" ActiveViewDefinitionIndex="2" BorderThickness="0 1 1 1" FirstVisibleTime="06:00">                  
                            <telerik:RadScheduleView.ResourceTypesSource>
                            <telerik:ResourceTypeCollection>
                                <telerik:ResourceType Name="Calendar">
                                    <telerik:Resource ResourceName="Team" DisplayName="Team Calendar" />
                                </telerik:ResourceType>
                            </telerik:ResourceTypeCollection>
                        </telerik:RadScheduleView.ResourceTypesSource>
                        <telerik:RadScheduleView.ViewDefinitions>
                            <telerik:DayViewDefinition GroupFilter="{Binding GroupFilter}" Title="Day View" MajorTickLength="3h" />
                            <telerik:WeekViewDefinition GroupFilter="{Binding GroupFilter}" Title="Week View" FirstDayOfWeek="Monday" MajorTickLength="30min" />
                            <WorkWeek:WorkWeekViewDefinition GroupFilter="{Binding GroupFilter}" Title="Work Week View" FirstDayOfWeek="Monday" MajorTickLength="30min"  />
                            <telerik:MonthViewDefinition GroupFilter="{Binding GroupFilter}" Title="Month View" />
                            <telerik:TimelineViewDefinition GroupFilter="{Binding GroupFilter}" Title="Timeline View" />
                        </telerik:RadScheduleView.ViewDefinitions>
                    </telerik:RadScheduleView>
    Thanks,
    Ravi

















  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 10 Sep 2014 Link to this post

    Hello Maheswari,

    I tested the provided ToolTipTemplate and it worked as expected. I'm attaching my test project so you can check it and see if it works for you. You can modify it in order to reproduce the issue and share the modified code so we can test it on our side.

    Hope this helps.

    Regards,
    Kalin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. Maheswari
    Maheswari avatar
    3 posts
    Member since:
    Sep 2014

    Posted 10 Sep 2014 in reply to Kalin Link to this post

    Hi admin,

    Thanks for your reply.

    I too created the sample project with radschedule view . its working fine.
    but in my application(i.e)Main project. its not working..
    tats my problem.
     i created the window inherited from one class file.
    I set the appointment source as observerable appointment collection in codebehind.

    I applied the appointmentcontroltemplate in xaml with the datatemplate as window.resources, its working.. but tooltip template not working.This is my issue.


  4. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 11 Sep 2014 Link to this post

    Hello Maheswari,

    I'm afraid that the provided information is not enough to reproduce the issue. So we would need a sample project demonstrating the issue in order to be able to provide further assistance - please open a support ticket and attach the files there.

    If you have any other questions let us know.

    Regards,
    Kalin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  5. Maheswari
    Maheswari avatar
    3 posts
    Member since:
    Sep 2014

    Posted 11 Sep 2014 in reply to Kalin Link to this post

    Hi kalin,
    Thanks for your support..
    its working fine
Back to Top