Forum


07:27

Is there an example of using the integrated search in 3.6? The 3.5 examples does not seem to work, although I am a little unclear on how the 'filter' div is used by the filterToolbar function.
I converted to the new calling convention, so I have $('#scrolling").jqGrid('filterToolbar'); as my function.
Thanks for your assistance,
Ron
10:21

Moderators
30/10/2007

Hello,
So what does not work?
By the way you have error calling this:
$('#scrolling”).jqGrid('filterToolbar');
maybe it should be
$("#scrolling”).jqGrid('filterToolbar');
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.
07:17

Tony,
The quote was a typo when I entered the text in the forum, it is not so in my code.
Anyway, when I put a call to filterToolbar into my script, I get an error on the following line in grid.custom.js:
th = $("<th role='columnheader' class='ui-state-default ui-th-column ui-th-"+ts.p.direction+"'></th>"); 636
Saying that ts is not defined.
Thanks for your help!
Ron
10:45

Moderators
30/10/2007

Hello,
Could you please post the whole code?
Also be a sure thet you download the needed module grid.custom.js or load them into the page.
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.
11:26

Here is the code. The error is coming from grid.custom.js
HTML:
<table id="s3list" class="scroll" cellpadding="0" cellspacing="0"></table>
<div id="s3pager" class="scroll" style="text-align:center;"></div>
js:
...
var mygrid = $("#s3list").jqGrid({
url:'http://localhost:8080/browse/s.....R',
datatype: "json",
width: 700,
colNames:['Column Name','Type','Null'],
colModel:[
{name: 'colname',index:'colname'},
{name: 'coltype',index:'coltype'},
{name: 'nullable',index:'nullable'}
],
rowNum:10,
mtype: "GET",
pager: '#s3pager',
sortname: 'colname',
toolbar: [true,'top'],
viewrecords: true,
rownumbers: true,
sortorder: "desc",
gridview : true,
caption:"Toolbar Search Example" });
mygrid.jqGrid('navGrid','#s3pager',{edit:false,add:false,del:false,search:false,refresh:false});
mygrid.jqGrid('filterToolbar'); // Problem occurs on this call
the error is:
Line 635 of grid.custom.js: ts is not defined
Thanks for your help,
Ron
00:19

Hi .
Why does this error filterToolbar
th = $("<th role='columnheader' clas...umn ui-th-"+ts.p.direction+"'></th>");\\r\\n
say that the modules are loaded
19:14

Moderators
30/10/2007

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.
19:28

where is the error in code
jQuery("#jqgajax").jqGrid({
url:'server.php?q=2',
editurl: "server.php",
datatype: "json",
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name:'id',index:'id', width:55},
{name:'invdate',index:'invdate', width:90},
{name:'name',index:'name asc, invdate', width:100,
editable: true, edittype:"select", editoptions:{dataUrl:'test.txt',width:100}, search:true },
{name:'amount',index:'amount', width:80, align:"right",editable:true},
{name:'tax',index:'tax', width:80, align:"right", search:true},
{name:'total',index:'total', width:80,align:"right"},
{name:'note',index:'note', width:150, sortable:false}
],
rowNum:10,
width:700,
autowidth: true,
rownumbers: true,
// toolbar: [true,"top"],
rowList:[10,20,30],
pager: '#pjqgajax',
sortname: 'invdate',
viewrecords: true,
sortorder: "desc",
caption:"New API Example"
});
jQuery("#jqgajax").jqGrid('navGrid','#pjqgajax',{edit:true,add:true,del:false});
jQuery("#jqgajax").jqGrid('filterToolbar');
19:34

Moderators
30/10/2007

Hello,
Please read carfully. There is important note and exmaple.
Reagrds
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.
20:42

Moderators
30/10/2007

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.
22:16

Moderators
30/10/2007

Hello,
I do not see any problems in the demo which uses the latest version. Open you jqGrid min file and see which modules are included.
To have this feature the grid.custom.js should be here.
Best 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:
55 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