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

Problem In Localizing filtering menu options!!!

4 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ali Kolahdoozan
Top achievements
Rank 2
Ali Kolahdoozan asked on 27 Feb 2010, 01:43 PM
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";  
   }  
 }  
}  



4 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 01 Mar 2010, 07:31 AM
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
0
Ali Kolahdoozan
Top achievements
Rank 2
answered on 01 Mar 2010, 07:38 AM
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?
0
Accepted
Princy
Top achievements
Rank 2
answered on 02 Mar 2010, 05:17 AM
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
0
Ali Kolahdoozan
Top achievements
Rank 2
answered on 02 Mar 2010, 07:19 AM
Hi Again


This Class 100% UseFull . Many Tnx For Your Good Answer.
Tags
Grid
Asked by
Ali Kolahdoozan
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Ali Kolahdoozan
Top achievements
Rank 2
Share this question
or