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_Related Related Topics sp_TopicIcon
Search not working
Tags: search
18/02/2011
15:58
Avatar
Terradon
New Member
Members
Forum Posts: 2
Member Since:
18/02/2011
sp_UserOfflineSmall Offline

Hi all,

i am playing with jgrid now for a few days and finally i got it working and am ready to add some features, like searching for data.

i just can't get it working!

I do get the multiple searchbox, but after setting a search value, i click on OK, the grid reloads with the same data, so not with the search results.

I think i sent the request to the wrong page? But how do i set it up to another backend page?

Do i have to add 2 kind of beckend pages? One for normal results and one for search results? Because i need a where clausule in mysql when searching?

I use php end xml data.

My code:

<script type="text/javascript">
$(function(){
  $("#list").jqGrid({
    url:'jquery/jqgrid/backend_spelerslijst.php',
    datatype: 'xml',
    mtype: 'GET',
    colNames:['VIP','nick', 'rating','laatst','max_invites','Gespeeld','nieuw'],
    colModel :[
      {name:'VIPSTATUS', index:'VIPSTATUS', width:20, align:'center'},
      {name:'nick', index:'nick', width:150},
      {name:'rating', index:'rating', width:80, align:'center'},
      {name:'lastactivity', index:'lastactivity', width:150, align:'center'},
      {name:'max_invites', index:'max_invites', width:80, align:'center'},
      {name:'spellen', index:'spellen', width:65, align:'center'},
      {name:'nieuw', index:'nieuw', width:50, align:'center'}
      
    ],
    pager: '#pager',
    rowNum:25,
    rowList:[25,50,100],
    height:"100%",
    multiselect: true,
    sortname: 'playerID',
    sortorder: 'desc',
    viewrecords: true,
    caption: 'Spelerslijst',

  });
  jQuery("#list").jqGrid('navGrid','#pager',{del:false,add:false,edit:false,search:true,refresh:false },{},{},{},{multipleSearch:true});
});

</script>

Many,many thanks in advance for any help,

i got an headache of it for 2 days now:(

19/02/2011
00:29
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

jqGrid does not do all the magic for you 🙂

You should write your own server side script when search is performed.

The demos are in PHP, but you will have a idea how to do this

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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