Is it possible to rename Filter Menu Item by Column Type?

4 posts, 1 answers
  1. A
    A avatar
    19 posts
    Member since:
    Jan 2015

    Posted 30 Jan 2015 Link to this post

    Hello All,
    I need to rename the existing filter menu options (EqualTo, Contains, IsNull etc), by column data types. Is there an option to that in telerik?

    Please let me know, thanks!
  2. Eyup
    Admin
    Eyup avatar
    3009 posts

    Posted 04 Feb 2015 Link to this post

    Hello,

    You can traverse the filter menu items and change their text depending on your own requirements:
    http://www.telerik.com/help/aspnet-ajax/grid-reducing-filtermenu-options.html

    Hope this helps.

    Regards,
    Eyup
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. A
    A avatar
    19 posts
    Member since:
    Jan 2015

    Posted 05 Feb 2015 in reply to Eyup Link to this post

    This won't help me! For example, if the column type is GridNumericColumn, i want to rename the filter item text (Just label) to say 'EqualTo New' (for example). Is it possible?
  5. Answer
    Eyup
    Admin
    Eyup avatar
    3009 posts

    Posted 10 Feb 2015 Link to this post

    Hi,

    Please note that you can use the javascript approach provided in the suggested article in my previous post as a base to implement this requirement. In addition, I am sending a sample RadGrid web site to demonstrate a similar implementation. In your case you will use the following condition:
    if (column.get_dataType() == "System.Decimal") {
        sender.findItemByValue("EqualTo").set_text("EqualTo New");
    }

    That should do the trick.

    Regards,
    Eyup
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top