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

Filter language

5 Answers 199 Views
Grid
This is a migrated thread and some comments may be shown as answers.
FEST
Top achievements
Rank 1
FEST asked on 08 Jul 2011, 10:05 AM
Hi!

I would like to know if there is a way of changing the language of a filter in a grid aswell anothers objects in the grid. I tried the cultural but it didn't work.

Many Thanks,
FEST

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Jul 2011, 10:15 AM
Hello Fest,

You can localize the filter options in page load as shown below.

C#:
protected void Page_Load(object sender, EventArgs e)
{
       foreach (RadMenuItem item in menu.Items)
        {
            
            if (item.Text == "Between")
            {
                item.Text = "your text";
            }
        }
}

Thanks,
Princy.
0
FEST
Top achievements
Rank 1
answered on 13 Jul 2011, 02:29 PM
HI Princy!

Im really sorry for my delay. I wasn't able to reproduce that code to VB i got some errors. Can you please ost a VB version of the code?

Many thanks,
FEST
0
Princy
Top achievements
Rank 2
answered on 13 Jul 2011, 02:47 PM
Hello Fest,

Here is the VB version of the code.
VB:
Protected Sub Page_Load(sender As Object, e As EventArgs)
    For Each item As RadMenuItem In menu.Items
        If item.Text = "Between" Then
            item.Text = "your text"
        End If
    Next
End Sub

You can use the following tool to convert your code.
http://converter.telerik.com/

Thanks,
Princy.
0
FEST
Top achievements
Rank 1
answered on 13 Jul 2011, 06:30 PM
Hi Princy.

Im rather confused. you have radmenuitem isnt that for radmenu? Whati want to change is a radfilter and put the and or contains and that sort of option in another language.

Many thanks,
FEST
0
Princy
Top achievements
Rank 2
answered on 14 Jul 2011, 05:09 AM
Hello Fest,

Filter menu is rendered as RadMenuItem. Using the FilterMenu property of the grid to access the filtering menu as
GridFilterMenu menu = RadGrid1.FilterMenu
Also check the following help documentation which explains the same.
Localizing filtering menu options.

Thanks,
Princy.
Tags
Grid
Asked by
FEST
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
FEST
Top achievements
Rank 1
Share this question
or