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