Results 1 to 3 of 3

Thread: add a new column to a grid dynamically

  1. #1

    Default add a new column to a grid dynamically

    Hello,

    I want to add a new column to a grid dynamically, as is done?

    greetings and thanks ....

  2. #2

    Default

    You will want to do something like this.

    Code:
    this.getColumnModel().config.push(new Ext.grid.Column({
                id: Ext.id(),
                dataIndex: 'myNewColumnDataIndex',
    			header: 'My New Column',
    			renderer: function(val, metadata, record, rowInd, colInd, store){}//provides a way of manipulating data that is going into your column
            }));

  3. #3

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •