Htmlencode and labels - possible bug?

  1. #1

    Htmlencode and labels - possible bug?

    Hi

    I am setting up a pager on my grid adding some labels etc

    Something like this
    ext.PagingToolBar pager = CreatePagingToolBar(store.ID, _pageSize);
    
    pager.DisplayMsg = "Viser " + table.Label.ToLower() + " {0} - {1} of {2}";
    pager.EmptyMsg = "Der blev ikke fundet nogen " + table.Label.ToLower();
    
    // Add separator and pagesize combo
    pager.Items.Add(new ext.ToolbarSeparator());
    pager.Items.Add(new ext.Label("Antal rækker pr side: "));
    pager.Items.Add(CreatePageSizeCombo(_pageSize, _table));
    
    / Add the pager to the grid
    gridPanel.BottomBar.Add(pager);
    But the label.Text "Antal rækker pr side: " is displayed as is and not "Antal rækker pr side: " as expected
    Is this a minor bug or can I use another approach?

    Thanks in advance

    - Peter
  2. #2

    RE: Htmlencode and labels - possible bug?

    Hi,

    Try Html property instead Text*
  3. #3

    RE: Htmlencode and labels - possible bug?

    Ahh ok thanks
    I will create a static helper method for this which sets the html content
    eg
    pager.Items.Add(Utils.PageUtils.GetLabel("Antal rækker pr side: "));
    rgds/Peter

Similar Threads

  1. [CLOSED] Problem with HtmlEncode / HtmlDecode
    By eaglemobile in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 18, 2011, 2:42 PM
  2. [CLOSED] [1.0] TextField and HtmlEncode
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 19, 2010, 12:17 PM
  3. [CLOSED] How to use HtmlEncode w/Ext controls
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 16
    Last Post: Sep 13, 2010, 6:53 PM
  4. [CLOSED] htmlEncode and HtmlEditor (Coolite 0.7)
    By macap in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 03, 2009, 5:52 AM
  5. JsonReader - Htmlencode Specific Fields
    By jp500 in forum 1.x Help
    Replies: 0
    Last Post: Nov 12, 2008, 7:50 PM

Posting Permissions