I'm trying to implement nestend grid in Extjs 6 with widgetcolumn (Using RowExpander is not good solution for my task).
Each record in the parent grid store has many subrecords with "hasMany association" store, which has to be editable with remote combobox.
But nested grids has conflicts in extjs.
How does it looks now: http://joxi.ru/52aQMXdCZjZP20
Source code:
{
xtype: 'widgetcolumn',
text: 'my-russian-header-text :)',
tdCls: 'cell-no-padding',
onWidgetAttach: function(column,widget,record) {
// record.projections() returns hasMany store
widget.bindStore(record.projections());
},
widget: {
xtype: 'grid',
viewType: 'tableview',
border: 0,
plugins: [{ ptype: 'cellediting', clicksToEdit: 1}],
hideHeaders: true,
scrollable: false,
columns: [
{
dataIndex: 'user_id',
editor:{},
}
],
listeners: {
afterrender: function() {
this.getEl().swallowEvent([
'mousedown', 'mouseup', 'click',
'contextmenu', 'mouseover', 'mouseout',
'dblclick', 'mousemove', 'focus'
]); // advice from here: http://hmxamughal.blog.com/2012/10/23/grid-in-grid/
}
}
}
},
I have such errors:
- Uncaught TypeError: Cannot read property 'isHeader' of null
- Uncaught TypeError: Cannot read property 'isGroupHeader' of null
- maximum call stack size exceeded
Can somebody help to find nice implementation of nested grid? or any different solution for my needs?