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
navGrid search doesn't work
22/02/2011
11:55
Avatar
GilbertWang
New Member
Members
Forum Posts: 1
Member Since:
22/02/2011
sp_UserOfflineSmall Offline

$("#rowed1″).jqGrid({Hi all,

  I'm using both navGrid  and filterToolbar in my grid. If I used the filter once, then use the navGrid clear button or clean the filter ,  then the navGrid search can't work.

 Is this a bug?

Here is my code:

html:

<div id="prowed1″></div> 

<table id="rowed1″></table>

js:

var mydata = [{id:"1",name:"test",sex:0 },{id:"2",name:"test2",sex:1},...{id:"18",name:"test3",sex:0}];

$(function(){

$("#rowed1″).jqGrid({

datatype: "local",

colNames:['ID', 'Name','Sex'],

colModel:[

{name:'id'},

{name:'name'},

{name:'sex',formatter:"select",stype:'select',editoptions:{value:":;0:M;1:F"}},

],

caption: 'Test',

pager: '#prowed1',

rowNum:10, 

rowList:[10,20,30]

});

$("#rowed1″).jqGrid('navGrid',"#prowed1″,{edit:false,add:false,del:false}); 

$("#rowed1″).jqGrid('filterToolbar', {stringResult : true,searchOnEnter : false,gridModel : true});

for(var i=0;i<=mydata.length;i++){

$("#rowed1″).addRowData(i+1,mydata[i]);

$("#rowed1″).trigger("reloadGrid");

}

});

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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