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

How can I change the text in the filter control

3 Answers 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lin
Top achievements
Rank 1
Lin asked on 18 Mar 2012, 05:56 PM
Hello,

I'm trying to change the text in the filter control in RadGrid,such as "NoFilter","Contains","DoesNotContain","StartWith" and so on.
How can I change these texts?
And I needn't change the functions.

Thank you.

3 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 18 Mar 2012, 07:13 PM
Hello Lin,

protected void Page_Load(object sender, EventArgs e)
        {
            GridFilterMenu menu = RadGrid1.FilterMenu;
            foreach (RadMenuItem item in menu.Items)
            {    //change the text for the "StartsWith" menu item 
                if (item.Text == "StartsWith")
                {
                    item.Text = "Starts_With";
                }
            }
        }


Thanks,
Jayesh Goyani
0
Lin
Top achievements
Rank 1
answered on 19 Mar 2012, 05:34 PM
Hi,Jayesh

Your solution works.Thank you very much.
0
Radu
Top achievements
Rank 1
answered on 10 Aug 2012, 11:19 AM

Hello Jayesh,

 
    Is it possible to change the text of the meniu options just for specific columns and not for the whole grid?

Thanks,
Radu

P.S.: Both server side and client side solutions are accepted.

Tags
Grid
Asked by
Lin
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Lin
Top achievements
Rank 1
Radu
Top achievements
Rank 1
Share this question
or