Forum


18:42

21/07/2008

I have the following two problems:
1). Function navGrid("#pager", {edit: false, add: false, del: false, search: true}) causes a error and displays a small modal window "Warning! Please Select Row?" error message when the page is loaded.
2). When the search button at the left bottom corner is clicked, the search panel shows up. But it dose not show up inside the grid, but above the grid instead.
i). In Firefox, it pushes the grid down a little bit. Any click on the page closes the searching panel.
ii). In IE7, it pushes the grid down all the way to the bottom.
I am currently using jqGrid 3.2. Please help. Thank you in advance.
My code is as following:
html:
<table id="gridTest" class="scroll"></table>
<div id="pager" class="scroll" style="text-align:center;"></div>
Javascript:
$("#gridTest")
.jqGrid({
url: '/lawyer_file/get_file_list/1',
datatype: 'json',
mtype: 'GET',
multiselect: true,
toolbar :[true,"bottom"], //?? how to use this toolbar ??
colNames: ['Open File Number', 'Buyer', 'Seller'],
colModel: [
{name: 'fileNumber', index: 'id', width: 150, sortable: false },
{name: 'buyer', index: 'buyer', width: 200, sortable: true },
{name: 'seller', index: 'seller', width: 200, sortable: true }
],
pager: jQuery('#pager'),
rowNum: 10,
rowList: [10, 20, 30],
sortname: 'id',
sortorder: 'desc',
viewrecords: true,
imgpath: '/themes/blue/stylesheets/i/jqGrid',
caption: 'BUY/SELL Files',
// Add hyperlink to each row.
loadComplete: function(){
var ids = $("#gridTest").getDataIDs();
for (var i=0; i<ids.length; i++) {
var rowId = ids[i];
var rowData = $("#gridTest").getRowData(rowId);
fileLink = "<a href='/lawyer_file/" + ids[i] + "'>" + rowData["fileNumber"] + "</a>";
$("#gridTest").setRowData(rowId, {fileNumber: fileLink})
}
}
})
.navGrid("#pager", {edit: false, add: false, del: false, search: true})
.navButtonAdd(
"#pager",
{ caption: "Close Files",
onClickButton: function(){
alert("closing selected files...");
}
}
);
02:01

Moderators
30/10/2007

You forgot to include the jqModal.css. Please before posting any issue
read the documentation.
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:
60 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