Forum
03:03
21/04/2009
Hello All,
I created a JQGrid and i want to use the altRows property which create a "zebra" effect on the grid rows.
I wrote the code bellow:
$('#tblParams').jqGrid({
datatype: 'local',
height: 400,
width: 740,
colNames: [
'ParamID', '’˜ÂŠ', '‘…‚ š’˜‰“', '’˜‰‹„'],
colModel: [
{ name:
'ParamID', index: 'ParamID', width: 90, key: true, resizable: false, hidden: true},
name:
'ParamName', index: 'ParamName', width: 90, resizable: false},
{ name:
'ParamValue', index: 'ParamValue', width: 90, key: true, resizable: false},
{ name:
'Edit', index: 'Edit', width: 50, resizable: false, formatter: 'link'}],
imgpath: '../JS/jqGrid/themes/iPost/images',
viewrecords: false,
onCellSelect: function(rowid, iCol, cellcontent)
{}
});
As you can see in the mark line i wrote altRows: true
but my grid is not change and all the lines are with the same color.
Can someone help me please with this problem?
Thanks.
Most Users Ever Online: 715
Currently Online:
46 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