Problem In Localizing filtering menu options!!!

5 posts, 2 answers
  1. Ali Kolahdoozan
    Ali Kolahdoozan avatar
    7 posts
    Member since:
    Feb 2010

    Posted 27 Feb 2010 Link to this post

    Hi

    I Need To Convert Filter Titles To Persian But Without CodeBehind . How Can I ? Because When I Want To Work Many Grids I Can Not Use This Code For Each Grid In Application .  I See One XML File In Bin Folder .But When I Edit That File Dont effect On Grid .

    Please Help me.
    Tnx

    protected void Page_Load(object sender, System.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 = "your_custom_localized_string";  
       }  
     }  
    }  



  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Mar 2010 Link to this post

    Hi

    Please take a look at the following link where a solution has been provided on a how to achieve the desired scenario:


    Thanks,
    Princy
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ali Kolahdoozan
    Ali Kolahdoozan avatar
    7 posts
    Member since:
    Feb 2010

    Posted 01 Mar 2010 Link to this post

    Tnx


    it Means We Can Not Work By Xml File For Licalize Or JavaScript .Or Inheritance . We Must Copy And Paste That Code Behinds In Each Grid Body CodeBehinds?
  5. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Mar 2010 Link to this post

    Hi,

    As per the code sample provided you only need to add this one line to the Page Load of your grid pages or to a master page.

    C#
     protected void Page_Load(object sender, EventArgs e) 
        { 
            RadControlUtility.GridBind(Page); 
        } 
     


    Thanks,
    Princy
  6. Ali Kolahdoozan
    Ali Kolahdoozan avatar
    7 posts
    Member since:
    Feb 2010

    Posted 02 Mar 2010 Link to this post

    Hi Again


    This Class 100% UseFull . Many Tnx For Your Good Answer.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017