Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Integrated Search in 3.6?
05/11/2009
07:27
Avatar
Ron
Guest
Guests

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

06/11/2009
10:21
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

09/11/2009
07:17
Avatar
Ron
Guest
Guests

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

09/11/2009
10:45
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

09/11/2009
11:26
Avatar
Ron
Guest
Guests

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&#39;,
      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

15/12/2009
00:19
Avatar
david
Guest
Guests

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

15/12/2009
19:14
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello

Look herehow to call this method

http://www.trirand.com/jqgridw....._searching

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.

15/12/2009
19:28
Avatar
david
Guest
Guests

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');

15/12/2009
19:34
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

15/12/2009
19:52
Avatar
david
Guest
Guests

honestly, I read but I understand where I wrong

15/12/2009
20:42
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

16/12/2009
15:37
Avatar
david
Guest
Guests

Tony

In version 3.6 simple it's something wrong, because filterToolbar doesn't work.

17/12/2009
22:16
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information