PDA

View Full Version : extjs4 autoref



intro
24 Feb 2012, 2:57 AM
Hi, i developer some stuff in extjs3 and before i use this code..

Novosti = Ext.extend(NovostiUi, {

initComponent: function () {

News.superclass.initComponent.call(this);


grid = this.Newsgrid;


and now

Ext.define('Odv.view.Bilj', {
extend: 'Odv.view.ui.Bilj',

initComponent: function() {
var me = this;
me.callParent(arguments);
grid= this.Newsgrid;

can someone explain how can i find grid..becuse when i use
grid = this.Newsgrid;
grid alert is empty.

Sincerely
Vladimir

intro
24 Feb 2012, 4:28 AM
But :)
How can i make activcolumn button triger.


xtype: 'actioncolumn', id: 'Delete', itemId: 'Delete', width: 30, align: 'center', dataIndex: 'ID', tdCls: 'pointer', iconCls: 'remove', items: [ { icon: 'icons/Cancel.gif', tooltip: 'IzbriĆĄi' } ]

Thanks...