if you have a grid setup with one of the column names with a space in it, the grid seems to save the value stored in that field in the add/edit forms.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
jQuery(document).ready(function(){<br /> jQuery("#list").jqGrid({<br /> editurl: 'http://localhost:2990/jira/plugins/servlet/jqGrid',<br /> datatype: 'clientSide',<br /> colNames:['Inv No','Date', 'Amount','Tax','Total','Notes'],<br /> colModel :[<br /> {name:'inv id', index:'invid', width:55, editable:true},<br /> {name:'invdate', index:'invdate', width:90, editable:true},<br /> {name:'amount', index:'amount', width:80, align:'right', editable:true},<br /> {name:'tax', index:'tax', width:80, align:'right', editable:true},<br /> {name:'total', index:'total', width:80, align:'right', editable:true},<br /> {name:'note', index:'note', width:150, sortable:false, editable:true}<br /> ],<br /> pager: '#pager',<br /> rowNum:10,<br /> rowList:[10,20,30],<br /> sortname: 'invid',<br /> sortorder: 'desc',<br /> viewrecords: true,<br /> caption: 'My first grid',<br /> loadonce:true<br /> }).navGrid('#pager', {add:true, del:true},<br /> {reloadAfterSubmit: false, clearAfterAdd:false},<br /> {reloadAfterSubmit: false, clearAfterAdd:false});<br /> });<br /> |
try adding a row using the add button, close the form down and open the add form again, the inv id field will be already populated with the lastfield.
Any work arounds without having to have the name values without spaces?
Thanks
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top