Localizing radfilter Dynamically

2 posts, 0 answers
  1. rik butcher
    rik butcher avatar
    106 posts
    Member since:
    Jul 2009

    Posted 14 Jul 2011 Link to this post

    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);

     

    }

  2. rik butcher
    rik butcher avatar
    106 posts
    Member since:
    Jul 2009

    Posted 14 Jul 2011 Link to this post

    nevermind, i found my answer about 30mins after posting.
    i put this in the PreRender & it works just fine.

    WorkOrdersRadFilter.Culture =

     

    Thread.CurrentThread.CurrentCulture;

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top