fire click event for button
Posted
by
Hadas
on Stack Overflow
See other posts from Stack Overflow
or by Hadas
Published on 2011-11-20T09:45:43Z
Indexed on
2011/11/20
9:52 UTC
Read the original article
Hit count: 220
extjs
I have column with buttons like this:
var grid = new Ext.grid.GridPanel({
store: store,
columns: [
{ header: 'Issue',renderer: function(val){ return '<input type="button" class="btnissue" value="Issue" />'; }, dataIndex: 'btn', width: 49 }
],
renderTo: Ext.get('Issuing')
});
and I want to fire click event for this buttons. if I write :
Ext.getCmp('btnissue').on('click',function(){
alert("message");
});
It say the button not exist. So how can I fire this event?
© Stack Overflow or respective owner