Adding tool tip to navigation buttons

5 posts, 0 answers
  1. Earthcaller
    Earthcaller avatar
    10 posts
    Member since:
    Sep 2011

    Posted 23 Sep 2011 Link to this post

    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.
  2. Akram
    Akram avatar
    45 posts
    Member since:
    Dec 2012

    Posted 11 Jan 2013 Link to this post

    Hi
    I need this too, I hope telerik team support replay with yes or no.

    Thanks,
    Akram
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kim
    Kim avatar
    6 posts
    Member since:
    Nov 2013

    Posted 12 Aug 2014 Link to this post

    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.
  5. Boris
    Admin
    Boris avatar
    276 posts

    Posted 12 Aug 2014 Link to this post

    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.
     
  6. Kim
    Kim avatar
    6 posts
    Member since:
    Nov 2013

    Posted 12 Aug 2014 in reply to Boris Link to this post

    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>
Back to Top
UI for WPF is Visual Studio 2017 Ready