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
How to custom jqgrid search dialog
27/09/2012
10:56
Avatar
mohsen.bahrzadeh
Member
Members
Forum Posts: 6
Member Since:
13/02/2012
sp_UserOfflineSmall Offline

i'm starter in jqGrid. i have 4 feild , Id,Name,Date and Age. i Want when user click in icon search and appear search box when select Date item for search Now Appear one textBox for user enter your date, but i want Appear two textBox for user enter FromDate and ToDate.
please help me. thanks All

27/09/2012
13:05
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You can use filters option in postData array to define this.

Like this

var mysearch =

{ "groupOp":"AND",
    "rules":[
      {"field":"Date","op":"gt","data":""},

      {"field":"Date","op":"lt","data":""},

     ]
}

$("#table").jqGrid({

....

postData : { filters : mysearch }

...

});

Regards

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.

28/09/2012
00:37
Avatar
mohsen.bahrzadeh
Member
Members
Forum Posts: 6
Member Since:
13/02/2012
sp_UserOfflineSmall Offline

@tony: thanks for help me. but i want first design this form when user select Date from Select control

Image Enlarger

thanks for help me.

28/09/2012
08:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Unfrotunatley this is not possible at the moment.

Regards

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.

26/10/2012
08:47
Avatar
mohsen.bahrzadeh
Member
Members
Forum Posts: 6
Member Since:
13/02/2012
sp_UserOfflineSmall Offline

@Tony: i want implemet this ability but i don't know how to implemet this, please help me. thanks

27/10/2012
14:23
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

@mohsen: Look at the demo which is small modification of the early demo from the answer. It shows how to implement custom searching control (stype: "custom"). Another answer could help you in the next step ot the implementation if you would need to implement interval searching locally.

Best regards
Oleg 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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