Forum
15:27
11/06/2009
Hi,
Great plugin. However, I am currently having an issue with the getRowData method call in IE. Given this grid definition:
jQuery("#list").jqGrid({
url: '/Warehouse/CatalogEditor/GridData/',
height: 400,
datatype: 'json',
mtype: 'GET',
colNames: ['WarehouseID', 'Stock Number', 'Name', 'Description', 'Items In Stock', 'In Stock'],
colModel: [
{ name: 'WarehouseID', index: 'WarehouseID', width: 16, align: 'left' },
{ name: 'StockNumber', index: 'StockNumber', width: 95, align: 'left' },
{ name: 'Name', index: 'Name', width: 200, align: 'left' },
{ name: 'Description', index: 'Description', width: 285, align: 'left' },
{ name: 'ItemsInStock', index: 'ItemsInStock', width: 75, align: 'left' },
{ name: 'InStock', index: 'InStock', width: 75, align: 'left'}],
multiselect: true,
sortname: 'StockNumber',
sortorder: "desc",
viewrecords: true,
imgpath: '/scripts/themes/basic/images',
forceFit: true,
}
and this call:
var ret = jQuery("#list").getRowData(rowId);
I get an 'undefined' when I try and look at any of the properties of the ret variable. This works just fine in FF, but not in IE. I'm using jQuery 1.3.2, jqGrid 3.4.4 and IE 7.
Anyone have any ideas? Is this a fix that's in the newest beta?
15:47
11/06/2009
Ok, seems I solved my own issue. The trick was to include all of the individual .js files manually. So instead of this:
<script type="text/javascript" src="/Scripts/jquery.jqGrid.js" charset="utf-8"></script>
I have all of the js files listed individually:
<script type="text/javascript" src="/Scripts/js/grid.locale-en.js" charset="utf-8"></script>
.....
<script type="text/javascript" src="/Scripts/js/grid.setcolumns.js" charset="utf-8"></script>
That seems to work now.
00:51
Moderators
30/10/2007
Hello,
Thanks for investigating this behaviour. I recommend to use 3.5 where all modules are combined in one file.
Bets Regsrds
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:
104 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