yolk
13 Aug 2010, 2:35 AM
I need for my project both the possibility to select grid cells and the RowExpander, in the thread http://www.sencha.com/forum/showthread.php?22218-Text-Selections-in-Grid-cell has been told that "you also need to override the row in the GridView".
The same idea is suggested in http://www.sencha.com/forum/showthread.php?106451-RowExpander-Enable-copy&highlight=prototype.templates+rowExpander
But this isn't clear to me what I have to do to make RowExpander and grid cell selection work together.
With the following code:
if (!Ext.grid.GridView.prototype.templates) {
Ext.grid.GridView.prototype.templates = {};
}
Ext.grid.GridView.prototype.templates.cell = new Ext.Template(
'<td class="x-grid3-col x-grid3-cell x-grid3-td-{id} x-selectable {css}" style="{style}" tabIndex="0" {cellAttr}>',
'<div class="x-grid3-cell-inner x-grid3-col-{id}" {attr}>{value}</div>',
'</td>'
);
I have the default behaviour for cell selection. Anyway the RowExpander gives the following error:
body is undefined
http://dev.eolia.eolo.it/yolk/eolia-web/branches/schedasiti/ux/RowExpander.js
Line 253
I tried also with http://www.sencha.com/forum/showthread.php?74450-Problem-with-RowExpander.js&highlight=body+undefined+rowexpander to no avail.
I'm using Ext-Js 3.2.1 and upgraded RowExpander as per http://www.sencha.com/forum/showthread.php?96245-3.x-3.2.0-RowExpander-plugin-UPDATED-April-5-2010
Please point me to some examples :)
The same idea is suggested in http://www.sencha.com/forum/showthread.php?106451-RowExpander-Enable-copy&highlight=prototype.templates+rowExpander
But this isn't clear to me what I have to do to make RowExpander and grid cell selection work together.
With the following code:
if (!Ext.grid.GridView.prototype.templates) {
Ext.grid.GridView.prototype.templates = {};
}
Ext.grid.GridView.prototype.templates.cell = new Ext.Template(
'<td class="x-grid3-col x-grid3-cell x-grid3-td-{id} x-selectable {css}" style="{style}" tabIndex="0" {cellAttr}>',
'<div class="x-grid3-cell-inner x-grid3-col-{id}" {attr}>{value}</div>',
'</td>'
);
I have the default behaviour for cell selection. Anyway the RowExpander gives the following error:
body is undefined
http://dev.eolia.eolo.it/yolk/eolia-web/branches/schedasiti/ux/RowExpander.js
Line 253
I tried also with http://www.sencha.com/forum/showthread.php?74450-Problem-with-RowExpander.js&highlight=body+undefined+rowexpander to no avail.
I'm using Ext-Js 3.2.1 and upgraded RowExpander as per http://www.sencha.com/forum/showthread.php?96245-3.x-3.2.0-RowExpander-plugin-UPDATED-April-5-2010
Please point me to some examples :)