EasyUI Forum
May 22, 2024, 03:37:36 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Problem on view datagrid  (Read 9488 times)
haltman
Newbie
*
Posts: 5


View Profile
« 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:

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
« Last Edit: April 23, 2012, 08:40:08 AM by haltman » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 24, 2012, 02:25:52 AM »

Try adding a 'width' property for each column:

Code:
$("#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
});
Logged
haltman
Newbie
*
Posts: 5


View Profile
« Reply #2 on: April 24, 2012, 08:22:25 AM »

ok that's work! thanks stworthy!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!