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

Radgrid range filtering headers language

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tal
Top achievements
Rank 1
Tal asked on 24 Aug 2013, 06:54 AM
Hi,

I am trying to translate the headers of "from" & "to" in my radgrid range filtering to hebrew. but what, i am having troubles doing so.

screenshots is attached.

Another thing, I am trying to translate all my grid controls ( what is the best way to link the resx file to the grid? I tried changing the culture property to he. Culture="he".

Please help.

Thank you
Tal

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Aug 2013, 01:13 PM
Hi Tal,

Please try the following code snippet to localize the "to" and "from" of RangeFiltering.

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridFilteringItem)
    {
        GridFilteringItem fitem = (GridFilteringItem)e.Item;
        foreach (GridColumn col in RadGrid1.MasterTableView.RenderColumns)
        {
            if (col.ColumnType == "GridDateTimeColumn")
            {
                LiteralControl LiteralFrom = (LiteralControl)fitem[col.UniqueName].Controls[0];
                LiteralFrom.Text = "Your Text"; //From text
                LiteralControl LiteralTo = (LiteralControl)fitem[col.UniqueName].Controls[3];
                LiteralTo.Text = "Your Text"; //To text
            }
        }
    }
}

Thanks,
Princy
Tags
General Discussions
Asked by
Tal
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or