Hi,
I implemented a grid with a toolbar
Code:
Panel({ // I summarize
region: 'south',
height: 150,
minSize: 75,
maxSize: 250,
layout: 'anchor',
collapsed: true,
items: {
TabPanel({ // I summarize
layout: 'fit',
anchor: '100% 100%',
items: [
{ Panel({ // I summarize
layout: 'fit',
items: {
Ext.create('Ext.grid.Panel', {
columns : annotationColumns,
store: annotationJsonStore[type],
loadMask: true,
stripeRows: true,
forceFit: true,
autoScroll: true,
features: [
{
ftype:'grouping'
}
],
tbar: Ext.create('Ext.toolbar.Toolbar', {
items: [buttons]
The columns are the following
Code:
var annotationColumns = [];
annotationColumns.push({
header: '<spring:message code="annotation.element"/>',
dataIndex: 'element',
sortable: false,
renderer: element,
width: 45,
flex: 0
});
annotationColumns.push({
header: '<spring:message code="annotation.name"/>',
dataIndex: 'name',
renderer: goToLine,
width: 100,
flex: 0
});
annotationColumns.push({
header: '<spring:message code="annotation.status"/>',
dataIndex: 'status',
sortable: false,
renderer: status,
width: 40,
flex: 0
});
annotationColumns.push({
header: '<spring:message code="annotation.createdOn"/>',
dataIndex: 'createdOn',
groupable: false,
renderer: goToLine,
width: 110,
flex: 0
});
annotationColumns.push({
header: '<spring:message code="annotation.user"/>',
dataIndex: 'author',
renderer: goToLine,
width: 100,
flex: 0
});
And I don't see why, the toolbar is behind and hidden by the header
Thank you in advance for your answers