Forum

July 12th, 2025
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
No such method: searchGrid
29/06/2010
22:18
Avatar
ExactInternet
New Member
Members
Forum Posts: 1
Member Since:
29/06/2010
sp_UserOfflineSmall Offline

Hello,

I am implementing jqGrid for the first time in a PHP project I am working on and have come across a problem when trying to enable the search feature. I get an error message: "Uncaught Exception: jqGrid - No such method: searchGrid".

The code I'm using is:

    <script type="text/javascript">
    jQuery(document).ready(function(){
      jQuery("#accessLog").jqGrid({
        url:'datagrid.php',
        datatype: 'json',
        mtype: 'GET',
        colNames:['Employee Name','Access Level','Log In Time','Log Out Time','Days Since Last Log In'],
        colModel :[
          {name:'name', index:'firstname', width: 200, search: true},
          {name:'accesslevel', index:'accesslevel'},
          {name:'lastlogin', index:'lastlogin'},
          {name:'lastlogout', index:'lastlogout'},
          {name:'logindays', index:'logindays'}
        ],
        pager: '#pager',
        height: 250,
        rowNum:10,
        rowList:[10,20,30],
        sortname: 'firstname',
        sortorder: 'desc',
        viewrecords: true,
        width:900,
      });
    });
    </script>

I've downloaded the grid base and additional methods for searching, but I may have not reference the search JS file properly? Ideally I would like to see the magnifiying glass type icon in the bottom left corner of some of the demo grids!

Any help would be be much appreciated!

Adam

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

Currently Online:
24 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