Results 1 to 5 of 5

Thread: Ext.grid.column.widget problem

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium User
    Join Date
    Jan 2014
    Location
    Italy
    Posts
    111
    Vote Rating
    12
      0  

    Default 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.

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488
    Vote Rating
    147
      0  

    Default

    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.
    Aaron Conran
    @aconran

  3. #3
    Sencha Premium User
    Join Date
    Jan 2014
    Location
    Italy
    Posts
    111
    Vote Rating
    12
      0  

    Default

    Thanks Aaron,

    it works like a charm.

  4. #4
    Sencha Premium User
    Join Date
    Mar 2017
    Posts
    2
    Vote Rating
    0
      0  

    Default 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.

  5. #5
    Sencha Premium User
    Join Date
    Mar 2017
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Please ignore the above post. I have widget column in the pop up window and once i removed it . It worked!

    Thanks,
    Amritha.

Posting Permissions

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