Forum


20:07

31/03/2009

sure do... Only thing is... it doesn;t work well in IE7. Result is the javascript array
I left the comments in to show you what I've been wrestling with as far as the IE 7 b.s.
function OnComplete(result) {
if (result != null) {
jQuery("#list2").jqGrid({
// url:'localhost'+new Date().getTime(),
// url: "myurl.php",
// datatype: "clientSide",
datatype: "clientside",
height: "400",
colNames: ['Title', 'Artist', 'Auditionplayer', 'Editorplayer'],
colModel: [
{ name: 'title', index: 'title', width: 185 },
{ name: 'artist', index: 'artist', width: 140 },
{ name: 'auditionurl', index: 'auditionurl', width: 220, align: "left" },
{ name: 'editauditionurl', index: 'editauditionurl', width: 235, align: "left" }
],
viewrecords: true,
caption: "SongList"
});
jQuery("#list2").clearGridData();
// jQuery("#list2").setGridParam({ url: +new Date().getTime() });
var _songs = result;
for (var i = 0; i <= _songs.length; i++) {
jQuery("#list2").addRowData(i + 1, _songs[i]);
}
}
}
if you can figure out the IE7 problem , please let me know, plus,,, the hide grid button is wierd
03:18

Moderators
30/10/2007

Hello,
datatype: “clientside”, is not correct you should do
datatype: “clientSide”,
or
datatype: “local”,
Also what is happen if you try just with simple grid and array.
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:
78 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