1
我對extjs很陌生4.我面臨一個問題。希望有人會幫助。 我有grid.I在該網格中添加了行擴展。 這是我的代碼:爲網格中的第二列添加行擴展器 - extjs4
Ext.define('Citi.iv.view.portfolio.PositionsLiabilitiesGrid', {
extend : 'Ext.grid.Panel',
requires:['Ext.ux.RowExpander'],
alias : 'widget.positionsliabilitiesgrid',
headerHeight:80,
itemId : 'financialPositionsassetGrid',
margin: '0 0 10px 0',
flex : 1,
cls : 'grey_alt_grid',
scroll : 'vertical',
autoScroll: true,
emptyText : 'No Data Found',
plugins: [{
ptype: 'rowexpander',
rowBodyTpl : [
'<p><b>Render data here</b></p><br>'
]
}],
collapsible: true,
columns : [{
header : 'Account Descriptions',
flex : 1,
xtype : 'gridcolumn',
hideable: false,
dataIndex : 'account_description'
}, {
header : 'Account',
flex : 1,
xtype : 'gridcolumn',
hideable: false,
dataIndex : 'account'
}, {
header : 'Amount You Own',
flex : 1,
xtype : 'gridcolumn',
hideable: false,
dataIndex :'amount_you_own',
}, {
header : 'Interest Rate',
flex : 1,
xtype : 'gridcolumn',
hideable: false,
dataIndex : 'interest_rate'
}, {
header : 'Next Payment',
flex : 1,
xtype : 'gridcolumn',
hideable: false,
dataIndex : 'next_payment'
}, {
header : 'Payment Due Date',
flex : 1,
xtype : 'gridcolumn',
hideable: false,
dataIndex : 'payment_due_date'
}, {
header : 'Interest Paid',
flex : 1,
xtype : 'gridcolumn',
hideable: false,
dataIndex : 'interest_paid'
}]
});
我在第一列上展開。我想在第二列上添加展開圖標。任何想法?
非常感謝您的幫助.. @ rixo – 2013-06-07 12:20:57