1. #1
    Sencha User
    Join Date
    Aug 2009
    Posts
    31
    Vote Rating
    0
    aolee is on a distinguished road

      0  

    Default Ampersand in column model doesnt show in column header menulist?

    Ampersand in column model doesnt show in column header menulist?


    Hi Guys,

    I just noticed that the "&" sign is not being shown in Grid Headel Column Menulist (in IE)?

    It only shows "A" in checkbox list but in the header it shows A&B.

    How can i resolve this?

    this.main_grid_cm = new Ext.grid.ColumnModel([
    new Ext.grid.CheckboxSelectionModel(),
    {id:'imo', header: "Age", dataIndex: 'imo', sortable: true, width: 100},
    {id:'name', header: "Name", dataIndex: 'name', sortable: true, width: 100},
    {id:'pnc', header: "A&B", dataIndex: 'pnc', sortable: true, width:
    ]);
    Attached Images

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    31
    Vote Rating
    0
    aolee is on a distinguished road

      0  

    Default


    problem solved. just change the ampersand sign "&" in columnmodel to "&".

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    83
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Column headers and texts should be valid HTML, so you need to use:
    Code:
    header: 'A&B'

Thread Participants: 1