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
Search oporators are not displying in demo drop down
27/05/2014
16:23
Avatar
tifischer
Member
Members
Forum Posts: 21
Member Since:
16/05/2014
sp_UserOfflineSmall Offline

I downloaded the demo and have it working on my site but the search operators (equals, contains, greater, ...) are not displaying.  Please advise as to how to fix this problem.

 

var template1 = { "groupOp": "AND", "rules": [ { "field": "a.firstName", "op": "bw", "data": "Client 1" },
{ "field": "a.lastName", "op": "gt", "data": "20"} ] };

jQuery("#person_list").jqGrid({
url:'server-update.php?q=1',
datatype: "json",
colNames:['ID','Type','Last','First','Email','Phone','Address','Custom','Registrations','Balance'],
colModel:[
//{name:'', sortable:true, index:'a.personType', width:25, hidden:false,search:false,hidedlg:true},
//search ID on
//{name:'', index:'a.personID', width:20, hidden:false,searchoptions:{sopt:['bw','cn','eq','ne','lt','gt','ew']}},
//search ID off
{name:'ID',key : true, index:'a.personID', width:20},
{name:'Type', index:'isStudent', sortable:true, width:25},
{name:'Last', index:'a.lastName', width:40},
{name:'First', index:'a.firstName', width:30},
{name:'Email', sortable:true, index:'a.emailAddress', width:60,searchoptions:{sopt:['bw','cn','eq','ne','lt','gt','ew']}},
{name:'Phone', sortable:false,index:'phone', width:35},
{name:'Address', sortable:false,index:'address', width:100},
{name:'Custom', sortable:false,search:false, hidden:false, index:'custom', width:30},
{name:'Registrations', sortable:false,search:false, hidden:false, index:'programCode', width:100},
{name:'Balance', sortable:false,search:false, hidden:false, index:'balance', width:40} //CN change 30 to 40
],
rowNum:10,
autowidth: true,
pager: '#pagerb',
sortname: 'lastName',
rowList:[10,20,50,100],
viewrecords: true,
sortorder: "asc",
caption: "",

});

jQuery("#person_list").jqGrid('navGrid','#pagerb', {
edit:false,
add:false,
del:false},
{}, {}, {},
{ multipleSearch:true, multipleGroup:false, showQuery: false,
// set the names of the template
"tmplNames" : ["Template One"],
// set the template contents
"tmplFilters": [template1] } );

 

Blessings,

Tiffany

27/05/2014
18:24
Avatar
tifischer
Member
Members
Forum Posts: 21
Member Since:
16/05/2014
sp_UserOfflineSmall Offline

I got it to work.  I had to use the theme from another example that you gave earlier with the downloaded 4.6.0 and then change the names in the theme to match the file names of the 4.6.0  directory.

 

Blessings,

Tiffany

30/05/2014
15:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Glad that you have resolved the problem. We will update our demos soon.

Kind 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: 715

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