-
25 Jun 2012 7:18 AM #21
Hey thanks for the answer, its working now, i am trying to implement with Ext.grid.plugin.CellEditing
but its show in blank, is posible to do this?
Code:xtype: 'itscomponentcolumn', autoRender: true, autoShow: false, width: 150, dataIndex: 'country', editor: { items: function(value) { return { xtype: 'combobox', store: [[1,'In Queue'], [2,'Handling'], [3,'Complete']], value: value, width: 130 }; } },
-
26 Jun 2012 1:22 AM #22
The items config should be defined outside editor config. Something likes this:
One thing to mention here is that this component is for displaying components in grid cell, it is not replacement for cellediting or rowediting plugins.Code:xtype: 'itscomponentcolumn', autoRender: true, autoShow: false, width: 150, dataIndex: 'country', items: function(value) { return { xtype: 'combobox', store: [[1,'In Queue'], [2,'Handling'], [3,'Complete']], value: value, width: 130 }; }, editor: { // define editor config for cellediting },
-
26 Jun 2012 5:34 AM #23
And how can edit the combobox, i was trying something like this but when i edit is show me both combos from the component, and editor..thanks...
Sin título.png
Code:xtype: 'itscomponentcolumn', autoRender: false, autoShow: false, width: 150, dataIndex: 'country', items: function(value) { return { xtype: 'combobox', store: [[1,'In Queue'], [2,'Handling'], [3,'Complete']], value: value, width: 130 }; }, editor: { xtype: 'combobox', store: [['In Queue','In Queue'], ['In Queue','Handling'], ['In Queue','Complete']] }, fixed: false, text: 'Country' },
-
26 Jun 2012 5:13 PM #24
Before showing the editor for grid cell editing, the cellediting plugin will try to hide the content of the grid cell. However, this is applied to text content only. In your case, the grid cell content is not text but component, so it won't be hidden. That's the reason why you see both comboboxes when you switch to editing mode.
-
26 Jun 2012 5:27 PM #25
I don't understand why you would want to use this extension in combination with cell editing. Why would you want to show yet another combobox in the cell rather than just use the one you already have?
-
27 Jun 2012 4:38 AM #26
-
18 Jul 2012 1:29 AM #27
Hello !
First, thanks for this extension, which solve a problem I had since monday.
My only issue is that if I use a Ext.Component or any form field as a cell content, it works perfectly; but if I use an Ext.Container or any subclass (like a panel), the grid doesn't scroll anymore...
Anyone knows how to handle that (if it is possible) ?
Thanks.
EDIT :
After some test, it appears that the scrolling appears when the panel has a height greater than a "normal" row height.
It seems that the total height occupied by the rows is not properly calculated after the panel is displayed.
This problem occurs also when using Ext.Component, if this one is too high.
EDIT 2 :
No I'm wrong: it works with components, not with containers.
EDIT 3 : After some more tests, the problem appears only if my panel contains grid panels.
-
18 Jul 2012 9:32 PM #28
-
12 Aug 2012 3:00 PM #29
I am having a bit of a problem passing in scope into the handler of a menu item. Regular columns have scope property that can be set and then renderer handler runs in that scope. Any help on how to achieve a similar scoped handler for the items function?
-
9 Feb 2013 4:46 AM #30
Component Column - ExtJs 4.2.0 beta2
Component Column - ExtJs 4.2.0 beta2
Hello,
after updating my ExtJs from 4.1.3 to 4.2.0 beta 2 the componentcolumn stopped to work (without errors/warnings).
I have just found the reason:
Inside the constructor method there is this code:
Checking the src.$owner.xtype, I saw now it's "tableview" and not "headercontainer" as expected by this component.Code:me.renderer = function(value, meta, record, rowIdx, colIdx, store, view) { var ret = ''; var src = me.renderer.caller; if (src.$owner && src.$owner.xtype == 'headercontainer') { var iid = me.getIdPrefix(record); me.queue[iid] = { view : view, store : store, value : value, record: record, rowIdx: rowIdx, colIdx: colIdx }; ret = (Ext.isFunction(cfg.renderer) ? cfg.renderer.apply(cfg.scope || me, arguments) || '' : '') + '<div id="' + iid + '"> </div>'; } return ret; };
I fixed this problem changing
withCode:if (src.$owner && src.$owner.xtype == 'headercontainer') { ...
My first tests are good... If I will find any error I will post here.Code:if (src.$owner) { ...


Reply With Quote
