slsb02
16 Jul 2012, 9:05 PM
Hello,
i have a Grid with RowExpander and CellEditing:
plugins: [{
ptype: 'rowexpander',
selectRowOnExpand:true,
rowBodyTpl: [
'<p><div style="float:left; width:330px; border:1px dotted #CCC; margin-left:10px; margin-bottom:10px;">',
'<p><div style="margin-left:5px; font-size:14px; font-weight:bold; text-decoration: underline;">'+CUS_LIST_ROWEXPANDER_CONTACT_HEADER+'</div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_PHONE_1+'</b></div><div style="width:200px; float:left;">{customers_telephone}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_PHONE_2+'</b></div><div style="width:200px; float:left;">{customers_telephone_two}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_PHONE_3+'</b></div><div style="width:200px; float:left;">{customers_telephone_three}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_FAX+'</b></div><div style="width:200px; float:left;">{customers_fax}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_HOMEPAGE+'</b></div><div style="width:200px; float:left; overflow:hidden;"><a href="{customers_homepage}" target="_blank" style="color:#000; text-decoration:none;" title="{customers_homepage}">{customers_homepage}</a></div><div style="clear:both;"></div></p>',
'</div>',
'<div style="float:left; width:330px; border:1px dotted #CCC; margin-left:10px; margin-bottom:10px;">',
'<p><div style="margin-left:5px; font-size:14px; font-weight:bold; text-decoration: underline;">'+CUS_LIST_ROWEXPANDER_STANDARD_ADDRESS+'</div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_COMPANY+'</b></div><div style="width:200px; float:left;">{address_company}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_NAME+'</b></div><div style="width:200px; float:left;">{address_gender} {address_firstname} {address_lastname}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_STREET+'</b></div><div style="width:200px; float:left;">{address_street}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_POSTCODE+'</b></div><div style="width:200px; float:left;">{address_country} - {address_postcode} {address_city}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_ZONE+'</b></div><div style="width:200px; float:left;">{address_zone}</div><div style="clear:both;"></div></p>',
'</div></p><div style="clear:both;"></div>',
]
}, Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1 })],
}),
Click on the expanded Row, Firebug say: columnHeader is undefined
What can i do?
The Problem is the CellEditing...
Best reegards
i have a Grid with RowExpander and CellEditing:
plugins: [{
ptype: 'rowexpander',
selectRowOnExpand:true,
rowBodyTpl: [
'<p><div style="float:left; width:330px; border:1px dotted #CCC; margin-left:10px; margin-bottom:10px;">',
'<p><div style="margin-left:5px; font-size:14px; font-weight:bold; text-decoration: underline;">'+CUS_LIST_ROWEXPANDER_CONTACT_HEADER+'</div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_PHONE_1+'</b></div><div style="width:200px; float:left;">{customers_telephone}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_PHONE_2+'</b></div><div style="width:200px; float:left;">{customers_telephone_two}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_PHONE_3+'</b></div><div style="width:200px; float:left;">{customers_telephone_three}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_FAX+'</b></div><div style="width:200px; float:left;">{customers_fax}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_HOMEPAGE+'</b></div><div style="width:200px; float:left; overflow:hidden;"><a href="{customers_homepage}" target="_blank" style="color:#000; text-decoration:none;" title="{customers_homepage}">{customers_homepage}</a></div><div style="clear:both;"></div></p>',
'</div>',
'<div style="float:left; width:330px; border:1px dotted #CCC; margin-left:10px; margin-bottom:10px;">',
'<p><div style="margin-left:5px; font-size:14px; font-weight:bold; text-decoration: underline;">'+CUS_LIST_ROWEXPANDER_STANDARD_ADDRESS+'</div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_COMPANY+'</b></div><div style="width:200px; float:left;">{address_company}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_NAME+'</b></div><div style="width:200px; float:left;">{address_gender} {address_firstname} {address_lastname}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_STREET+'</b></div><div style="width:200px; float:left;">{address_street}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_POSTCODE+'</b></div><div style="width:200px; float:left;">{address_country} - {address_postcode} {address_city}</div><div style="clear:both;"></div></p>',
'<p><div style="width:80px; margin-left:10px; float:left;"><b>'+CUS_LIST_ROWEXPANDER_ZONE+'</b></div><div style="width:200px; float:left;">{address_zone}</div><div style="clear:both;"></div></p>',
'</div></p><div style="clear:both;"></div>',
]
}, Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1 })],
}),
Click on the expanded Row, Firebug say: columnHeader is undefined
What can i do?
The Problem is the CellEditing...
Best reegards