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
how i do a custom search with jqGrid ?
13/05/2010
16:56
Avatar
kweles
Brazil
Member
Members
Forum Posts: 9
Member Since:
13/05/2010
sp_UserOfflineSmall Offline

Hi Friends!

I need make a custom search. 

I don't want to use the JqGrid search. I want create my own search with the jqGrid. 

sample:

In a simple page with two input text and a button:

Input text:  id and name

button: search

The problem is, i don´t know how i create the code to make this:

i did see some codes like this, but i don´t have sucess:

$("#gridnota").jqGrid({

url:'searchNotaEntrada?_search=true&rows=15&page=1&sidx=&sord=asc&filters=

{groupOp:AND,rules:[{field=id_regional,op:eq,data:1},{field=resumo,op:eq,data:0}]}',

datatype:"jsonstring",

datastr: actual_string_data_here

})

thank you!

13/05/2010
22:50
Avatar
kweles
Brazil
Member
Members
Forum Posts: 9
Member Since:
13/05/2010
sp_UserOfflineSmall Offline

Hi friends!

i found this code:

see this site: /blog/jqgrid/jqgrid.html

14/05/2010
17:36
Avatar
kweles
Brazil
Member
Members
Forum Posts: 9
Member Since:
13/05/2010
sp_UserOfflineSmall Offline

i found!

function gridReload(){
var id_regional = jQuery("#id_regional").val();
var resumo = jQuery("#resumo").val();
jQuery("#gridnota").jqGrid('setGridParam',{url:"searchNotaEntrada? id_regional="+id_regional+"&resumo="+resumo,page:1}).trigger("reloadGrid");
}

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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