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

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

3 Answers 93 Views
Filter
This is a migrated thread and some comments may be shown as answers.
A
Top achievements
Rank 1
A asked on 30 Jan 2015, 06:44 PM
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!

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 04 Feb 2015, 12:50 PM
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.

 
0
A
Top achievements
Rank 1
answered on 05 Feb 2015, 09:15 PM
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?
0
Accepted
Eyup
Telerik team
answered on 10 Feb 2015, 02:36 PM
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.

 
Tags
Filter
Asked by
A
Top achievements
Rank 1
Answers by
Eyup
Telerik team
A
Top achievements
Rank 1
Share this question
or