Forum


04:15

20/08/2011

I just noticed today that the first column field displayed in the view records form of all my grids shows multiple values. I upgraded to the lastest version 4.3.1 of jqGrid but it made no difference.
When you select a record for the first time then click on the view button, some how the record ID gets displayed along with the current value as shown below.
Then, when i navigate to the next record, the current value of the first column field is displayed twice.
I don't know if i am some how doing it or what. Has anyone seen this before?
All of the grids do it so Here is one of the grids:
$('#tabw1-grid').jqGrid({
colNames:['TBID', 'Time Block'],
colModel:[
//use 'id' if you want aftersubmit: function new-id to work.
{name:'id', index:'wt.TBID', width: 70, fixed: true, align:'center', sortable:false, editable:false, edittype:'text', editoptions:{readonly:true,size:10}},
{name:'wt.TimeBlock', index:'wt.TimeBlock', width:200, fixed:false, align:'center', sortable: true, editable:true, edittype:'text', editoptions:{size:25}, formoptions:{rowpos: 1, label:'Time Block', elmprefix:'*'}, editrules:{required:true, custom:true, custom_func:checkTimeBlock}}
],
url: 'php/wo-timeblocktab-script.php',
editurl:'php/wo-timeblocktab-script.php',
mtype: 'POST',
datatype: 'json',
autowidth: true,
height: 880,
pager: '#tabw1-pager',
toppager: true,
rowNum:40,
rownumbers: true,
rowList:[40,100,300,500],
sortname: 'wt.TBID',
sortorder: 'asc',
viewrecords: true
});$('#tabw1-grid').jqGrid('navGrid', '#tabw1-pager',
{view:true, closeOnEscape:true, cloneToTop:true}, // general parameters that apply to all navigation options below.
{jqModal:true, resize:false, width:500, height:'auto', top:150, left:775, navkeys:[false,38,40], savekey:[true,13], bottominfo:'Fields marked with * are required to Edit Record.'}, // edit options.
{jqModal:true, resize:false, width:500, height:'auto', top:150, left:775, navkeys:[false,38,40], savekey:[true,13], bottominfo:'Fields marked with * are required to Add Record.', addedrow:'first', reloadAfterSubmit:false, afterSubmit: addRecordID}, // add options.
{jqModal:true, resize:false, width:500, height:'auto', top:150, left:775, afterSubmit: serverMessage}, // del options.
{jqModal:true, resize:false, width:500, height:'auto', top:150, left:775, multipleSearch:true, sopt:['eq','ne','lt','le','gt','ge','bw','bn','in','ni','ew','en','cn','nc']}, // search options.
{jqModal:true, resize:false, width:500, height:'auto', top:150, left:775, navkeys:[true,38,40]} // view options.
);});
Most Users Ever Online: 715
Currently Online:
56 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66