Thursday 13 March 2014

Action column not working in Ext js

Hello pals,
                I just got a problem while implementing xtype:'actioncolumn' in ext js 3.4 version. the problem is icon class (image to render) not rendering to the grid column.
               I tried a bit and found soution.


Solution:
              Add dataIndex to it.  Generally in all the examples shown in ext js web site does not use data index for rendering action column xtype. Actually no need to specify that dataIndex but  i guess its a bug in ext js 3.4 .
              
      columns:[{
                header: 'D1',
                hidden: true,
                dataIndex: 'D10EOD',
                sortableColumns : false,
                hideable: false
            }
               {
                xtype: 'actioncolumn',
                icon: '/static/img/icon/edit.png', // your image path
                tooltip: 'edit page',
                align: 'center'
                dataIndex: 'editColumnField' // field in columns  

        }
// other columns 
]
 
 

No comments:

Post a Comment