1. #1
    Sencha User
    Join Date
    Jul 2011
    Location
    Missouri
    Posts
    10
    Vote Rating
    2
    Gibolt is on a distinguished road

      1  

    Default Change grid.panel column header text

    Change grid.panel column header text


    I have a grid and I want the header of a column to change when a button is pressed. Here is the code:

    Code:
    var densityGrid = Ext.create('Ext.grid.Panel', {
       ...columns :[{
            header      : ((combobox.getValue()=='Water') ? 'Water' : 'Air') + ' Density',
            width       : 100,
            sortable    : true,
            dataIndex   : 'count'}...
    
    var densityWidgetPanel = Ext.create('widget.panel', {
          ...tbar        : [{
                 text        : 'Load',
                 handler     : function() {
                      // Change header here
            }...
    I have tried tons of different methods to try to get this working.

    Any ideas?

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    6
    Vote Rating
    0
    tribess is on a distinguished road

      0  

    Default


    no-one ?

    I'm very interested in this too !

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,605
    Vote Rating
    326
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      1  

  4. #4
    Sencha User
    Join Date
    Jan 2011
    Posts
    6
    Vote Rating
    0
    tribess is on a distinguished road

      0  

    Default


    thanks,

    sometimes it can be that simple ...

Thread Participants: 2

Tags for this Thread