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

Adding tool tip to navigation buttons

4 Answers 152 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Earthcaller
Top achievements
Rank 1
Earthcaller asked on 23 Sep 2011, 09:28 AM
Hi,
I want to add tool tip for the next, previous, first, and last button in the datapager control .
Please suggest how can I achieve this.

best regards.

4 Answers, 1 is accepted

Sort by
0
Akram
Top achievements
Rank 1
answered on 11 Jan 2013, 11:10 AM
Hi
I need this too, I hope telerik team support replay with yes or no.

Thanks,
Akram
0
Kim
Top achievements
Rank 1
answered on 12 Aug 2014, 06:15 AM
i like to solution that this question..
please,  your kindly answer..
how  show tooltip .. each buttons..
best regards.
--------
Hi,
I want to add tool tip for the next, previous, first, and last button in the datapager control .
Please suggest how can I achieve this.

best regards.
0
Boris
Telerik team
answered on 12 Aug 2014, 03:47 PM
Hello Kim,


The recommended way for add a ToolTip for each button is to edit the ControlTemplate of the DataPagerPresenter with x:Key="DataPagerPresenterTemplate", where they reside. 


I attached a sample project that demonstrates how to add a ToolTip to the four buttons (MoveToFirstPageButtonMoveToLastPageButtonMoveToNextPageButton and MoveToPreviousPageButton). The example uses NoXAML binaries with the Office_Black Theme.Implicit theme. For more information on how to set a theme, you can check our Setting a Theme (Using Implicit Styles) documentation article.

Also, you can check this forum thread, which is similar to this one. 

I hope this helps.

Regards,
Boris Penev
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
Kim
Top achievements
Rank 1
answered on 13 Aug 2014, 01:50 AM
hi  Boris Penev,
thanks your answer..
if who want apply localization source than next code view.

   <telerik:RadButton
                        Visibility="{Binding PagerControlsVisibility.MoveToFirstPageControlVisibility,RelativeSource={RelativeSource TemplatedParent}}"
                        Command="{x:Static controls:RadDataPagerCommands.MoveToFirstPage}"
                        Style="{StaticResource FirstPageButtonStyle}"
                        >
                        <ToolTipService.ToolTip>
                            <ToolTip telerik:LocalizationManager.ResourceKey="DataPager_MoveToFirstPage"/>
                        </ToolTipService.ToolTip>
                    </telerik:RadButton>
                    <telerik:RadButton
                        Visibility="{Binding PagerControlsVisibility.MoveToPreviousPageControlVisibility,RelativeSource={RelativeSource TemplatedParent}}"
                        Command="{x:Static controls:RadDataPagerCommands.MoveToPreviousPage}"
                        Style="{StaticResource PreviousPageButtonStyle}"
                        >
                        <ToolTipService.ToolTip>
                            <ToolTip telerik:LocalizationManager.ResourceKey="DataPager_MoveToPreviousPage"/>
                        </ToolTipService.ToolTip>
                    </telerik:RadButton>
Tags
DataPager
Asked by
Earthcaller
Top achievements
Rank 1
Answers by
Akram
Top achievements
Rank 1
Kim
Top achievements
Rank 1
Boris
Telerik team
Share this question
or