Title: Problem on view datagrid
Post by: haltman on April 23, 2012, 08:38:30 AM
Hi everybody! I've a problem on view a datagrid in my intranet, data are loaded correctly but column header remain half hidden can you explain me how to resolve it? thanks in advance. here follow my symple code: $("#tt").datagrid({ title: "log", url: "./php/log.php", columns: [[{field:'utente',title:'Utente'}, {field:'contratto',title:'Contratto'}, {field:'login',title:'Login'}, {field:'piattaforma',title:'Piattaforma'}, {field:'azione',title:'Azione'}, {field:'data',title:'Data - ora'}, {field:'note',title:'Note'}, ]], pagination:true });
and attached a printscreen of the result
Title: Re: Problem on view datagrid
Post by: stworthy on April 24, 2012, 02:25:52 AM
Try adding a 'width' property for each column: $("#tt").datagrid({ title: "log", url: "./php/log.php", columns: [[{field:'utente',title:'Utente',width:100}, {field:'contratto',title:'Contratto',width:100}, {field:'login',title:'Login',width:100}, {field:'piattaforma',title:'Piattaforma',width:100}, {field:'azione',title:'Azione',width:100}, {field:'data',title:'Data - ora',width:100}, {field:'note',title:'Note',width:100} ]], pagination:true });
Title: Re: Problem on view datagrid
Post by: haltman on April 24, 2012, 08:22:25 AM
ok that's work! thanks stworthy!
|