I am getting an error when attempting to set up an inline edit; the error is:
var rowalign1 = ts.p.colModel[pos].align || “left”; (line 379 in grid.base.js)
my page continas the following links:
and the specific set-up for the inline editing is as follows:
var lastsel2 ;
$("#tblimages").jqGrid( {
url:'wc.dll?CMProcess~GetImages~&sk=2DY0P968I5052&sh=344',
datatype:'xml',
colNames:,
colModel:[{name:'Name', index:'Name', editable:'true', editoptions:{size:"20",maxlength:"25"}, width:150 },
{name:'CopyRight', index:'CopyRight', editable:'true', editoptions:{size:"20",maxlength:"25"}, width:150 },
{name:'Active', sortable:'false', editable:true, edittype:"checkbox", editoptions: {value:"Yes:No"}, width:90 }],
pager:$('#tblimagesPager'),
rowNum:30,
rowList:[10,20,30],
sortname:'Name',
sortorder:'asc',
viewrecords:true,
imgpath:'../scripts/themes/basic/images',
onSelectRow: function(id){
if(id && id!==lastsel2){
$('#tblimages').restoreRow(lastsel2);
$('#tblimages').editRow(id,true);
lastsel2=id;
}
},
editurl:'wc.dll?CMProcess~SaveImage~&sk=2DY0P968I5052&sh=344',
caption:'Images'
}); ;
It is preceeded and followed by jqGrids that work (although they are not editable)
I assume I have made a mistake in my set-up, not that this is a bug in your program; any idea what I have done wrong?
Thanks
Reg
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top