i'm starter in jqgrid, i write this code for build jqgrid in asp.net
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
<div class="sfcode">var grid = $('#list');<br /> grid.jqGrid({<br /> url: 'jQGridHandler.ashx',<br /> postData: { ActionPage: 'CostTypes', Action: 'Fill' },<br /> ajaxGridOptions: { cache: false },<br /> direction: "rtl",<br /> <br /> datatype: 'json',<br /> <br /> height: 490,<br /> colNames: ['CostId', 'CostNo', 'CostName', 'Remark '],<br /> colModel: [<br /> { name: 'COST_ID', width: 100, sortable: true, search:true, editable: false, hidden: true, key: true, index: 'COST_ID' },<br /> { name: 'COST_NO', width: 100, sortable: true, editable: true },<br /> { name: 'COST_NAME', width: 350, sortable: true, editable: true },<br /> { name: 'REMARK', width: 300, sortable: true, editable: true }<br /> <br /> ],<br /> gridview: true,<br /> rowNum: 30,<br /> rowList: [30, 60, 90],<br /> pager: '#pager',<br /> sortname: 'COST_ID',<br /> viewrecords: true,<br /> rownumbers: true<br /> });<br /> grid.jqGrid('navGrid', '#pager', { add: false, edit: false, del: true, search: true },<br /> {},<br /> {},<br /> { url: "JQGridHandler.ashx?ActionPage=CostTypes&Action=Delete", reloadAfterSubmit: false },<br /> { multipleSearch: true});<br /></div><p>when click in search icon and show search box when enter text example <code>costNo=1</code> jqGrid not filter i think this action no work, please help me for implimet search in jqgrid</p><br /> <p>EDIT 01: when i add <code>loadonce: true</code> search work but when remove this option search don't work, please help me. thanks</p> |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top