Forum
05:43
26/10/2009
Hi, as per http://www.trirand.com/jqgridw.....rm_editing i would like to add to my modal form some additional info for usability sake, but i'm currently experiencing a weird problem.
Given this :
<html><head>
<link rel="stylesheet" type="text/css" media="screen" href="../css/ui-lightness/jquery-ui-1.7.2.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="../css/ui.jqgrid.css" />
<script src="jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="jquery.jqGrid.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#grid").jqGrid({
datatype: "local",
caption: "foobar",
pager: $("#pager"),
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name:'id',index:'id', width:60, sorttype:"int", editable: true},
{name:'invdate',index:'invdate', width:90, sorttype:"date", editable: true},
{name:'name',index:'name', width:100, editable: true},
{name:'amount',index:'amount', width:80, align:"right",sorttype:"float"},
{name:'tax',index:'tax', width:80, align:"right",sorttype:"float"},
{name:'total',index:'total', width:80,align:"right",sorttype:"float"},
{name:'note',index:'note', width:150, sortable:false} ],
}).navGrid("#pager",
{ // base params
view: true, del: false
},{ // edit params
topinfo: 'edit top info',
bottominfo: 'edit bottom info'
},{ // add params
topinfo: 'add top info',
bottominfo: 'add bottom info'
},
{}, // delete params
{}, // search params
{ // view params
topinfo: 'view top info',
bottominfo: 'view bottom info'
}
);
var mydata = [
{id:"1",invdate:"2007-10-01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},
{id:"2",invdate:"2007-10-02",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},
];
for(var i=0;i<=mydata.length;i++)
jQuery("#grid").addRowData(i+1,mydata[i]);
});
</script>
</head>
<body>
<table id="grid" class="scroll" cellpadding="0" cellspacing="0"></table>
<div id="pager" class="scroll" style="text-align:center;"></div>
</body></html>
I'm experiencing the following:
- if i set only top/bottominfo in editparms, no info shown at all
- if i set it in both edit and add, both show me the info in addparms
- if i set it in addparms only, again both show me addparms info
- no way for viewparms, they don't show at all, never.
Accordingly to wikipage linked above, this seems definitely a bug to me, is anyone currently using this features ?
Jquery: 1.3.2
jqgrid: 3.5.3 (complete)
TIA,
ale
01:58
Moderators
30/10/2007
Hello,
Thanks. Yes I see this wired behavior. Will try to fix this to the final 3.6.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
47 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