Merge pull request #231 from victorsl/BUG-9402

BUG 9402 "Falta el rotulo de Documents en la columna cuando se..." SOLVED
This commit is contained in:
julceslauhub
2012-07-12 11:26:38 -07:00

View File

@@ -1114,124 +1114,124 @@ var expander = new Ext.ux.grid.RowExpander({
renderer : renderVersionExpander renderer : renderVersionExpander
}); });
// the column model has information about grid columns //The column model has information about grid columns
// dataIndex maps the column to the specific data field in //dataIndex maps the column to the specific data field in
// the data store //the data store
var cm = new Ext.grid.ColumnModel([{ var cm = new Ext.grid.ColumnModel([{
id : 'gridcm', // id assigned so we can apply custom css (e.g. id: "gridcm", //id assigned so we can apply custom css (e.g. -> .x-grid-col-topic b { color:#333 })
// .x-grid-col-topic b { color:#333 }) header: _("ID_NAME"),
header : TRANSLATIONS.ID_NAME, dataIndex: "name",
dataIndex : 'name', width: 200,
width : 200, renderer: renderFileName,
renderer : renderFileName, sortable: true,
sortable:true, groupable: true,
groupable:true, editor: new Ext.form.TextField({
editor : new Ext.form.TextField({ allowBlank: false
allowBlank : false
}), }),
css : 'white-space:normal;' css: "white-space:normal;"
}, { }, {
header : TRANSLATIONS.ID_VERSION, header: _("ID_VERSION"),
dataIndex : 'docVersion', dataIndex: "docVersion",
width : 50, width: 100,
align : 'center', align: "center",
renderer : renderVersion renderer: renderVersion
}, /* expander, */{ }, /* expander, */{
header : TRANSLATIONS.ID_MODIFIED, header: _("ID_MODIFIED"),
dataIndex : 'appDocCreateDate', dataIndex: "appDocCreateDate",
width : 65, width: 100,
renderer: renderModifiedDate renderer: renderModifiedDate
}, { }, {
header : TRANSLATIONS.ID_OWNER, header: _("ID_OWNER"),
dataIndex : 'owner', dataIndex: "owner",
width : 100, width: 100,
sortable:true, sortable: true,
groupable:true, groupable: true,
renderer: renderFullName renderer: renderFullName
// sortable : false //sortable: false
}, { }, {
header : "PM Type", header: _("ID_DOCUMENT_TYPE"),
dataIndex : 'appDocType', dataIndex: "appDocType",
width : 70, width: 100,
hidden:true hidden: true
// align : 'right' //align: "right"
// renderer : renderType //renderer: renderType
}, { }, {
dataIndex: "appDocPlugin", dataIndex: "appDocPlugin",
hidden: true,
hideable: false
}, {
header: _("ID_TYPE"),
dataIndex: "type",
width: 100,
sortable: true,
groupable: true,
//align: "right",
renderer: renderType
}, {
header: _("ID_PROCESS"),
dataIndex: "proTitle",
width: 150,
sortable: true,
groupable: true
//align: "right"
//renderer: renderType
}, {
header: _("ID_CASE"),
dataIndex: "appLabel",
width: 150,
sortable: true,
groupable: true
//align: "right"
//renderer: renderType
},{
header: _("ID_SIZE"),
dataIndex: "size",
width: 50,
hidden: true hidden: true
}, { }, {
header : TRANSLATIONS.ID_TYPE, header: _("ID_PERMISSIONS"),
dataIndex : 'type', dataIndex: "perms",
width : 100, width: 100,
sortable:true, hidden: true
groupable:true,
// align : 'right',
renderer : renderType
}, { }, {
header : TRANSLATIONS.ID_PROCESS, dataIndex: "is_deletable",
dataIndex : 'proTitle', hidden: true,
width : 150, hideable: false
sortable:true,
groupable:true
// align : 'right'
// renderer : renderType
}, { }, {
header : TRANSLATIONS.ID_CASE, dataIndex: "is_file",
dataIndex : 'appLabel', hidden: true,
width : 150, hideable: false
sortable:true,
groupable:true
// align : 'right'
// renderer : renderType
},{
header : TRANSLATIONS.ID_SIZE,
dataIndex : 'size',
width : 50,
hidden:true
}, { }, {
header : TRANSLATIONS.ID_PERMISSIONS, dataIndex: "is_archive",
dataIndex : 'perms', hidden: true,
width : 100, hideable: false
hidden:true
}, { }, {
dataIndex : 'is_deletable', dataIndex: "is_writable",
hidden : true, hidden: true,
hideable : false hideable: false
}, { }, {
dataIndex : 'is_file', dataIndex: "is_chmodable",
hidden : true, hidden: true,
hideable : false hideable: false
}, { }, {
dataIndex : 'is_archive', dataIndex: "is_readable",
hidden : true, hidden: true,
hideable : false hideable: false
}, { }, {
dataIndex : 'is_writable', dataIndex: "is_deletable",
hidden : true, hidden: true,
hideable : false hideable: false
}, { }, {
dataIndex : 'is_chmodable', dataIndex: "is_editable",
hidden : true, hidden: true,
hideable : false hideable: false
}, { }, {
dataIndex : 'is_readable', dataIndex: "id",
hidden : true, hidden: true,
hideable : false hideable: false
}, { }]);
dataIndex : 'is_deletable',
hidden : true,
hideable : false
}, {
dataIndex : 'is_editable',
hidden : true,
hideable : false
}, {
dataIndex : 'id',
hidden : true,
hideable : false
} ]);
// by default columns are sortable //By default columns are sortable
cm.defaultSortable = true; cm.defaultSortable = true;
function handleRowClick(sm, rowIndex) {//alert(rowIndex); function handleRowClick(sm, rowIndex) {//alert(rowIndex);