Localize gridpanel fails

  1. #1

    Localize gridpanel fails

    Hi all,

    I have a gridpanel with the GroupingView property enabled and I am trying set a custom localizated group text but it does not work, why?
    I have tried with "<%$ Resources:Vehicules%>", is there another method ?

    Thanks a lot.

        
    
    <ext:GroupingView ID="GroupingView1" HideGroupedColumn="true" runat="server" ForceFit="true"
    
    StartCollapsed="false" GroupTextTpl='{text} ({[values.rs.length]} {[values.rs.length > 1 ? "<%$ Resources:Vehicules%>" : ""]})'>
    
    </ext:GroupingView>
    </PRE>
  2. #2

    RE: Localize gridpanel fails

    Hi jortega,

    I don't think asp.net web controls support building up a string with*<%$ Resources: %> tags in markup. If you set the property in markup with a Resources tag, then the only value of that property can be the Resources Tag.


    Ok...


    Name="<%$ Resources:Name %>"


    Not Ok...


    Name="My name is <%$ Resources:Name %>"



    Another option would be to set the property in code-behind.*


    Hope this helps.




    Geoffrey McGill
    Founder
  3. #3

    RE: Localize gridpanel fails

    Hi geoffey,

    I have set the property in code-behind but it not works, only it shows the text part I set in aspx.

    Any ideas please?

    Thanks a lot.
        
    
    <ext:GroupingView ID="GroupingView1" HideGroupedColumn="true" runat="server" ForceFit="true"
    
    StartCollapsed="false" GroupTextTpl='{text} ({[values.rs.length]}'>
    
    </ext:GroupingView>
    
    
    this.GroupingView1.GroupTextTpl += GetMessage("Vehicules") + ")";
    
    this.GridPanel.Reconfigure();


    </PRE>

Similar Threads

  1. Replies: 7
    Last Post: Dec 12, 2011, 9:08 AM
  2. Replies: 0
    Last Post: Sep 05, 2011, 2:59 PM
  3. Replies: 3
    Last Post: Nov 02, 2010, 8:35 AM
  4. [CLOSED] Localize
    By yobnet in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 21, 2010, 9:06 AM
  5. Internationalize gridpanel fails
    By jortega in forum 1.x Help
    Replies: 0
    Last Post: Apr 28, 2009, 12:02 PM

Posting Permissions