jqGrid Partial Text Search Not Working -


i need display table sql database following columns: id (integer, primary key) name (varchar)

i using jqgrid 3.5.3. not allowed update later version.

when use jqgrid search in name column, search function returns exact matches, not partial ones. here code:

var mygrid = jquery("#gridview").jqgrid({             url: getrootpath() + 'datahandler.ashx',             datatype: "json",             colnames: ['id', 'name'],             colmodel: [             { name: 'id', index: 'id', width: '45', formatter: 'integer' },             { name: 'name', index: 'name', width: '200', editable: true, stype: 'text', edittype: 'textarea', searchoptions: { sopt: ['cn', 'nc', 'bw', 'bn', 'ew', 'en']}},            ],             ignorecase: true         });     mygrid.filtertoolbar({ defaultsearch: "cn" });     mygrid[0].toggletoolbar(); 

as can see, i've tried both

sopt: ['cn', 'nc', 'bw', 'bn', 'ew', 'en'] 

and

filtertoolbar({ defaultsearch: "cn" }); 

why isn't partial search functioning correctly?

thanks in advance!

if use 6 years old version jqgrid 3.5.3 reason of problem in your server code. jqgrid send server name=searchstring searchstring part text typing user. the server responsible building case-insensitive select like uses searchstring. suppose old code uses fix = compare in select statement.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -