Looks like we can't reproduce the issue or there's a problem in the test case provided.
-
Sencha Premium User
Ext.grid.column.widget problem
Ext.grid.column.widget columns does not have an SA (3.2.0.75) property for adding a widget "component".
I added a Ext.grid.column.widget to a grid and SA display an error icon that says:
Widget columns must have a dataIndex and a child widget set
I had to add a custom "widget" property in order to add a "button" xtype, the code works just fine but SA keeps displaying the error.
Code:
xtype: 'widgetcolumn',
widget: {
xtype: 'button',
listeners: {
click: 'onModify'
}
},
width: 70,
align: 'center',
dataIndex: 'action2',
text: 'Action'
Please add the needed property.
-
Put a component (like a button) inside the widget column as a child item. It will automatically add the widget configuration and show you all of the relevant configurations available for the component you put in it.
-
Sencha Premium User
Thanks Aaron,
it works like a charm.
-
Ext.grid.column.Widget.initComponent(): column.Widget requires a widget configuration
Hi,
I have a similar error where I am trying to open a window on button click.
xtype: 'widgetcolumn',
align: 'center',
text: 'Show'
widget: {
xtype: 'columnShowButton',
value: 2
}
In the component, xtype: 'columnShowButton'....I am able to get the value 2 .
onClick: function () {
/* if the user is clicking and there is no icon then ignore the click */
if (this.getValue() === 0) {
return;
}
if (this.getValue() === Plc.statics.ShowButton.Reassign) {
/* show the detail window for the specific button */
var win = Ext.create({
xtype: 'reassignWindow'
});
win.show();
}
}
While creating the window it throws [E] Ext.grid.column.Widget.initComponent(): column.Widget requires a widget configuration.
Please advise!
Thanks,
Amritha.
-
Please ignore the above post. I have widget column in the pop up window and once i removed it . It worked!
Thanks,
Amritha.