Hello,
Im having some weird issue, i have put the this in the colmodel {name: 'test', index: 'test', search : 'true', stype: 'text', searchoptions: { defaultValue: 'asdfasf'}}
|
1 |
<br />when the grid loads the data (ajax call) it doesn't uses the defaultValue and the field for the filters<br /><br />var config = {<br />"url:"http://theurl",<br />"datatype":"json",<br />"colNames":["test"],<br />"colModel":[ {"name":"test","index":"test","search":true,"stype":"text","searchoptions":{"defaultValue":"asdfasdf"}} ],<br />"rowNum":10,<br />"rowList":[10,20,30],<br />"pager":"pager",<br />"sortname":"test",<br />"viewrecords":true,<br />"sortorder":"asc",<br />"height":"100%",<br />"autowidth":true,<br />"viewsortcols":[false,"horizontal",true],<br />"filterable":true,<br />"imgpath":"js",<br />"search":true,<br />"jsonReader":{"repeatitems":false,"id":"0"}<br />};<br /><br />$('#testingrid').jqGrid(config);<br />$('#testingrid').filterToolbar({<br /> |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top