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
});
// the column model has information about grid columns
// dataIndex maps the column to the specific data field in
// the data store
//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',
width : 200,
renderer : renderFileName,
sortable:true,
groupable:true,
editor : new Ext.form.TextField({
allowBlank : false
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,
groupable: true,
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',
renderer : renderVersion
}, /* expander, */{
header : TRANSLATIONS.ID_MODIFIED,
dataIndex : 'appDocCreateDate',
width : 65,
header: _("ID_VERSION"),
dataIndex: "docVersion",
width: 100,
align: "center",
renderer: renderVersion
}, /* expander, */{
header: _("ID_MODIFIED"),
dataIndex: "appDocCreateDate",
width: 100,
renderer: renderModifiedDate
}, {
header : TRANSLATIONS.ID_OWNER,
dataIndex : 'owner',
width : 100,
sortable:true,
groupable:true,
header: _("ID_OWNER"),
dataIndex: "owner",
width: 100,
sortable: true,
groupable: true,
renderer: renderFullName
// sortable : false
//sortable: false
}, {
header : "PM Type",
dataIndex : 'appDocType',
width : 70,
hidden:true
// align : 'right'
// renderer : renderType
header: _("ID_DOCUMENT_TYPE"),
dataIndex: "appDocType",
width: 100,
hidden: true
//align: "right"
//renderer: renderType
}, {
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
}, {
header : TRANSLATIONS.ID_TYPE,
dataIndex : 'type',
width : 100,
sortable:true,
groupable:true,
// align : 'right',
renderer : renderType
header: _("ID_PERMISSIONS"),
dataIndex: "perms",
width: 100,
hidden: true
}, {
header : TRANSLATIONS.ID_PROCESS,
dataIndex : 'proTitle',
width : 150,
sortable:true,
groupable:true
// align : 'right'
// renderer : renderType
dataIndex: "is_deletable",
hidden: true,
hideable: false
}, {
header : TRANSLATIONS.ID_CASE,
dataIndex : 'appLabel',
width : 150,
sortable:true,
groupable:true
// align : 'right'
// renderer : renderType
},{
header : TRANSLATIONS.ID_SIZE,
dataIndex : 'size',
width : 50,
hidden:true
dataIndex: "is_file",
hidden: true,
hideable: false
}, {
header : TRANSLATIONS.ID_PERMISSIONS,
dataIndex : 'perms',
width : 100,
hidden:true
dataIndex: "is_archive",
hidden: true,
hideable: false
}, {
dataIndex : 'is_deletable',
hidden : true,
hideable : false
dataIndex: "is_writable",
hidden: true,
hideable: false
}, {
dataIndex : 'is_file',
hidden : true,
hideable : false
dataIndex: "is_chmodable",
hidden: true,
hideable: false
}, {
dataIndex : 'is_archive',
hidden : true,
hideable : false
dataIndex: "is_readable",
hidden: true,
hideable: false
}, {
dataIndex : 'is_writable',
hidden : true,
hideable : false
dataIndex: "is_deletable",
hidden: true,
hideable: false
}, {
dataIndex : 'is_chmodable',
hidden : true,
hideable : false
dataIndex: "is_editable",
hidden: true,
hideable: false
}, {
dataIndex : 'is_readable',
hidden : true,
hideable : false
}, {
dataIndex : 'is_deletable',
hidden : true,
hideable : false
}, {
dataIndex : 'is_editable',
hidden : true,
hideable : false
}, {
dataIndex : 'id',
hidden : true,
hideable : false
} ]);
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);