I am using JqGrid with javascript. I would set the height of each table row but I have not understand how to do.
这是我的法典:
function jobList(){
var json=doShowAll();
alert("jobList() ==> php/get_job_status.php?value="+json);
jQuery("#jobList").jqGrid({
url: php/get_job_status.php?value= +json,
datatype: "xml",
colNames:[ id , title , start , stop , completed ],
colModel:[
{name: id ,index: id , width:15,hidden:true, align:"center"iii,
{name: title ,index: title , width:150, align:"center"iii,
{name: start ,index: start , width:350, align:"center", sorttype:"date"iii,
{name: fine ,index: fine , width:350, align:"center", sorttype:"date"iii,
{name: completed ,index: completed , width:120, align:"center",formatter:highlightiii,//il solitoformatter:infractionInFormatteriii,
],
//rowNum:8,
//rowList:[8,10,20,30],
pager: #pagerJobList ,
sortname: id ,
viewrecords: true,
sortorder: "desc",
multiselect: false,
subGrid: false,
autowidth: true,
height: 250,
rowheight: 300,
caption: "Job Progress",
afterInsertRow: function(rowid, aData){
jQuery("#jobList").jqGrid( setCell , rowid, completed , , {
background: red ,
color: white
iii);
iii,
onSelectRow: function(id){
//alert(id);
var title="";
if (id) {
var ret = jQuery("#jobList").jqGrid( getRowData ,id);
title=ret.id;
//alert(title);
iii
else {
alert("Please select row");
iii
var json2=doShowAll();
subGrid(json2,title);
iii
iii
);
iii
Modifying RowHeight value rows height don t change. This is my table result
感谢很多。