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

Localizing radfilter Dynamically

1 Answer 52 Views
Filter
This is a migrated thread and some comments may be shown as answers.
rik butcher
Top achievements
Rank 1
rik butcher asked on 14 Jul 2011, 03:18 PM

How can I set the radFilter culture dynamically?

I have radFilter.Main.de-DE.resx along with radFilter.Main.resx

 

But no matter what the culture of the page, it will not read the radFilter.Main.de-DE.resx file unless I explicitly

Set the properties to read that.
does that mean i have to have two web sites - one in english and one in german just to get the filter to read a different resx file?
I tag the page here. i've even got my browser set to german.

 

<%

 

@ Page Language="C#" MasterPageFile="~/NOVDarkBlue.Master" AutoEventWireup="true"

 

 

 

 

 

 

 

CodeBehind="WorkOrdersConsole.aspx.cs" Inherits="NOV.GOLD.WebApp.WorkOrders.WorkOrdersConsole" Culture="auto:en-US" UICulture="auto" %>

and i use a method to set the page culture

 

 

 

protected void InitialzeCulture()

 

{

 

 

string myLang = txtLang.Value;//this is set to de-DE

 

 

 

Thread.CurrentThread.CurrentUICulture = new CultureInfo(myLang);

 

 

 

Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(myLang);

 

}

1 Answer, 1 is accepted

Sort by
0
rik butcher
Top achievements
Rank 1
answered on 14 Jul 2011, 04:27 PM
nevermind, i found my answer about 30mins after posting.
i put this in the PreRender & it works just fine.

WorkOrdersRadFilter.Culture =

 

Thread.CurrentThread.CurrentCulture;

 

Tags
Filter
Asked by
rik butcher
Top achievements
Rank 1
Answers by
rik butcher
Top achievements
Rank 1
Share this question
or