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_Related Related Topics sp_TopicIcon
Filter/Search
29/05/2012
22:53
Avatar
marcelocr2
New Member
Members
Forum Posts: 2
Member Since:
29/05/2012
sp_UserOfflineSmall Offline

Hi, I am new to jqgrid and I wanty to filter/search data, but I dont know how to change de php file, I am using this in HTML file

$("#srccontents").filterGrid("list",{ gridModel:true, gridNames:true, formtype:"vertical", enableSearch: false, enableClear: false, autosearch: true });

and the query in php file is:

$SQL = "SELECT id, nombre, descripcion FROM desc_examenes ORDER BY $sidx $sord LIMIT $start , $limit"; 

I suppose i should include the where clause, but I dont know how to get the value the user wnats to search

Thank you

31/05/2012
00:23
Avatar
marcelocr2
New Member
Members
Forum Posts: 2
Member Since:
29/05/2012
sp_UserOfflineSmall Offline

Ji, I made some changes and I can search now using the navigation bar, but I want to make the search usig the filtertoolbar too.

        $("#list").jqGrid('filterToolbar',{stringResult: true, searchOnEnter : false, defaultSearch: 'cn'});$("#list").jqGrid('navGrid','#pager',{edit:false,add:false,del:false});

Every time I use the filtertoolbar it doesn send any parameters to the server so the query looks like this:

SELECT id, nombre, descripcion FROM desc_examenes WHERE '' ORDER BY nombre asc

I dont know why I am not capturing the parameters with the toolbar

Thank You

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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