Telerik
Skip Navigation LinksHome / Community / Forums / ASP.NET AJAX > Grid > RadGrid FilterMenu ToolTip

Answered RadGrid FilterMenu ToolTip

Feed from this thread
  • guillaume.lebel avatar

    Posted on Mar 16, 2009 (permalink)

    Hi,

    Is it possible to change the tooltip on the filtermenu image. I've tried to change it with RadGrid.FilterMenu.Tooltip but it keep saying "Filter".

    I don't know if there's an other way to change it.

    Thank you and have a nice day!

    Guillaume

    Reply

  • Answer Princy MVP Princy's avatar

    Posted on Mar 17, 2009 (permalink)

    Hi Guillaume,

    You can try out the following code to set the tooltip of the filter icon to a custom text:
    cs:
      protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e) 
        { 
            if (e.Item is GridFilteringItem) 
            { 
                GridFilteringItem filterItem = (GridFilteringItem)e.Item; 
                Button btn = (Button)filterItem["ColumnUniqueName"].Controls[1]; 
                btn.ToolTip = "Custom Text";           
            } 
        } 

    -Princy.

    Reply

  • guillaume.lebel avatar

    Posted on Mar 17, 2009 (permalink)

    Thx Princy it worked :)

    Have a nice day!

    Guillaume

    Reply

  • Maxime Maxime's avatar

    Posted on Jun 5, 2009 (permalink)

    Hi,

    Is there any reason why this button isn't localized by default like the other control in the grid. This resemble to the pager item in another thread. Again, it makes no sense to me why isn't this *easier* to localize aside than by doing tricks in the code behind.

    I don't mean to be rude, I just don't understand why theses items seems to be *omitted*.

    Reply

  • Telerik Admin admin's avatar

    Posted on Jun 11, 2009 (permalink)

    Hello Maxime,

    You can set the filter image tooltip in the RadGrid declaration if this is suitable for your scenario:
    <telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="[ID]" FilterImageToolTip="Test" /> 

    Regards,
    Daniel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • -DJ- Master -DJ-'s avatar

    Posted on Jul 1, 2009 (permalink)

    Yet again absolutely unacceptable localization solutions.

    Telerik really need to stop for a minute and think about the current localization plan, or the lack of one.
    In my opinion we should have resx files for all controls, or at least some global properties that work throughout any given application.

    The grid is a perfect example of localization madness. Most strings you can translate globally, but then there are various strings you have to translate elsewhere.

    What does this do, or what is it supposed to do?
    grid.FilterMenu.ToolTip = "XXX"

    Personally I'm now spending way too much time trying to find where and how to localize some of the controls, and growing increasingly frustrated I have to admit.

    The worst part is I feel as if there isn't much interest in this topic.

    Regards,
    -DJ-

    Reply

  • Telerik Admin admin's avatar

    Posted on Jul 7, 2009 (permalink)

    Hello Daniel,

    Sorry to hear about your frustration. First, I would like to assure you that our developers are doing their best to improve the RadGrid localization mechanism as much as possible. Second, everyone should be able to localize the most of the strings using explicit localization (even if they don't have a ready-to-use resx file). There are few exceptions like the Page Size drop down in the pager which can't be localized using this approach. The good news are that this option will be implemented for the next service pack of RadControls for ASP.NET AJAX.

    Nevertheless, we will be happy to assist you overcome any troubles you have with the localization. For that purpose we created a code-library example that demonstrates how to use resx files to localize RadGrid.
    Localization files for RadGrid, RadCalendar and RadInput

    Furthermore, for your convenience I modified and reattached this code-library project to help you localize the aforementioned tooltip that bothers you.

    The answer to your second question:
    RadContextMenu inherits from the WebControl class, from which it inherits the ToolTip property. It does nothing because it is not suitable for the RadContextMenu structure (I suppose you know that the FilterMenu is actually a RadContextMenu).
    MSDN: WebControl Class (System.Web.UI.WebControls)

    I will be expecting your feedback concerning additional localization improvements you would suggest that can be integrated in our web grid

    Regards,
    Daniel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
    Attached files

    Reply

  • Chris Badman Chris Badman's avatar

    Posted on Aug 25, 2009 (permalink)

    Is there a way to do this for every column on the grid without having to set the FilterImageToolTip property individually on each column in the .aspx, or looping through the columns in the code behind?

    Let me clarify. I don't want the tooltip of  "filter" to show up at all. It gets in the way, and the users would rather it not show up at all. So I've been able to set the above mentioned property to "", and that works. But that's a pain to have to do that for every grid, and every column.

    So I'm not sure if there's something hiding out there that would make this easier for me.

    Reply

  • Telerik Admin admin's avatar

    Posted on Aug 28, 2009 (permalink)

    Hello Chris,

    I'm afraid there is no way to disable all filter tooltips at once. You should either remove it manually or use localization as demonstrated in the demo below.

    Best regards,
    Daniel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

Back to Top

Skip Navigation LinksHome / Community / Forums / ASP.NET AJAX > Grid > RadGrid FilterMenu ToolTip
Related resourses for "RadGrid FilterMenu ToolTip"

ASP.NET Grid Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.