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
search in jqgrid
Tags: jqgrid
07/09/2012
13:30
Avatar
mohsen.bahrzadeh
Member
Members
Forum Posts: 6
Member Since:
13/02/2012
sp_UserOfflineSmall Offline

i'm starter in jqgrid, i write this code for build jqgrid in asp.net

var grid = $('#list'); grid.jqGrid({ url: 'jQGridHandler.ashx', postData: { ActionPage: 'CostTypes', Action: 'Fill' }, ajaxGridOptions: { cache: false }, direction: "rtl", datatype: 'json', height: 490, colNames: ['CostId', 'CostNo', 'CostName', 'Remark '], colModel: [ { name: 'COST_ID', width: 100, sortable: true, search:true, editable: false, hidden: true, key: true, index: 'COST_ID' }, { name: 'COST_NO', width: 100, sortable: true, editable: true }, { name: 'COST_NAME', width: 350, sortable: true, editable: true }, { name: 'REMARK', width: 300, sortable: true, editable: true } ], gridview: true, rowNum: 30, rowList: [30, 60, 90], pager: '#pager', sortname: 'COST_ID', viewrecords: true, rownumbers: true }); grid.jqGrid('navGrid', '#pager', { add: false, edit: false, del: true, search: true }, {}, {}, { url: "JQGridHandler.ashx?ActionPage=CostTypes&Action=Delete", reloadAfterSubmit: false }, { multipleSearch: true});

when click in search icon and show search box when enter text example

costNo=1
jqGrid not filter i think this action no work, please help me for implimet search in jqgrid

EDIT 01: when i add

loadonce: true
search work but when remove this option search don't work, please help me. thanks
10/09/2012
18:54
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

yYou will need to understand that the grid does not support a search at your end (server)

You will need to write your own code at server to perform the search.

We have a examples in PHP, but you can easy understand and translet it in ASP.

Also you may need to look at the demo files which can be downloaded from the Download section.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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