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

GridView filter icon tooltip localization

1 Answer 139 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nagavardhana Reddy
Top achievements
Rank 1
Nagavardhana Reddy asked on 12 Aug 2011, 01:36 PM

Hi,

I am able to set the GridView filter icon tooltip from xaml(nothing but hardcoded) as like shown in below sample code (ToolTipService.ToolTip="Filter"). But I wish to set the filter icon tooltip at run time to achieve this.

Please help me how we can achieve this and also please tell me how to get that object in server side to set the tooltip.

<ControlTemplate TargetType="grid:FilteringDropDown" x:Key="DistinctFilterControlTemplate">
        <Grid>
            <ToggleButton x:Name="PART_DropDownButton">
                <ToggleButton.Template>
                    <ControlTemplate TargetType="ToggleButton">
                        <ContentPresenter />
                    </ControlTemplate>
                </ToggleButton.Template>
                <Grid Cursor="Hand" Background="Transparent" >
                    <!--[jcarvajal] Modified filter icon and added tooltip-->
                    <Border Cursor="Hand" Background="Transparent" Padding="0">
                        <Image Source="/LorArcChlorosTheme;component/Images/iFilterNOR12.png" Width="12" Height="12" Cursor="Hand" ToolTipService.ToolTip="Filter"/>                    
                    </Border>
                    <!--[fmoreno] Added filtered icon-->
                    <Border Cursor="Hand" Background="Transparent" Padding="0" Visibility="{TemplateBinding FunnelFillVisibility}">
                        <Image Source="/LorArcChlorosTheme;component/Images/iFilterHOT12.png"  Width="12" Height="12" Cursor="Hand" 
                               Visibility="{TemplateBinding FunnelFillVisibility}" ToolTipService.ToolTip="Filtered"/>
                    </Border>
                </Grid>
            </ToggleButton>
  
            <Popup x:Name="PART_DropDownPopup">
                  
            </Popup>
  
        </Grid>
    </ControlTemplate>
  
    <Style TargetType="grid:FilteringDropDown">
        <Setter Property="Template" Value="{StaticResource DistinctFilterControlTemplate}"/>
    </Style>

Thanks & Regards,
Nagavardhana Reddy

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 12 Aug 2011, 01:54 PM
Hi Nagavardhana,

 
You may localize the ToolTip's Content through specifiyng the corresponding key. In case you want to localize its content, you may bind it to the corresponding localized property. I would recommend you to review the Localization section as part of our online documentation, following this link. 



Please give it a try and if you need any further assistance do not hesitate to contact us!


All the best,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
GridView
Asked by
Nagavardhana Reddy
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or