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

ToolTip Template not working in rad scheduleview

4 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Maheswari
Top achievements
Rank 1
Maheswari asked on 09 Sep 2014, 02:02 PM
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

















4 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 10 Sep 2014, 11:26 AM
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.
 
0
Maheswari
Top achievements
Rank 1
answered on 10 Sep 2014, 12:53 PM
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.


0
Kalin
Telerik team
answered on 11 Sep 2014, 07:43 AM
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.
 
0
Maheswari
Top achievements
Rank 1
answered on 12 Sep 2014, 03:56 AM
Hi kalin,
Thanks for your support..
its working fine
Tags
General Discussions
Asked by
Maheswari
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Maheswari
Top achievements
Rank 1
Share this question
or