Hi ,
I can’t implement ignorecase. I have search all over forum but no luck… even your demo without any option is working with insensitive string.
`
1234567891011121314151617181920212223242526272829303132333435363738 $grid = new jqGridRender($conn);// Data from this SQL is 1252 encoded, so we need to tell the grid// Set the SQL Data source//$grid->showError = true;//$grid->debug = true;$table = 'DIVISI';$grid->SelectCommand ='SELECT DIVISIID, GROUPS, DIVISI FROM '.$table;// set the ouput format to XML$grid->dataType = 'json';// Let the grid create the model$grid->setPrimaryKeyId("DIVISIID");$grid->setColModel();$grid->table = $table;// set labels in the header$grid->setColProperty("DIVISIID", array("label"=>"ID", "hidden"=>true));$grid->setColProperty("GROUPS", array("label"=>"Groups","width"=>30, "editoptions"=>array("style"=>"text-transform: uppercase;"),"searchoptions"=>array("sopt"=>array("cn"))));$grid->setColProperty("DIVISI", array("label"=>"Divisi","width"=>90, "editoptions"=>array("style"=>"text-transform: uppercase;"),"searchoptions"=>array("sopt"=>array("cn") )));// Set the url from where we obtain the data$grid->setUrl('divisi_.php');// Set some grid options$grid->setGridOptions(array("rowNum"=>99999,"rowList"=>array(10,20,30),"sortname"=>"DIVISI", "width"=>"500"));// Enable toolbar searching$grid->toolbarfilter = true;$grid->navigator = true;$grid->setNavOptions('navigator', array("excel"=>true,"add"=>true,"edit"=>true,"del"=>true,"view"=>true));//$grid->setNavOptions('navigator',array("csv"=>true, "pdf"=>true));$grid->setFilterOptions(array("stringResult"=>true,"searchOperators"=>true,"searchOnEnter"=>true,"defaultSearch"=>"cn","ignoreCase"=>true));// Enjoy$grid->renderGrid('#grid','#pager',true, null, null, true,true);//echo "finish";
I ‘m using jqgrid adodb connection to firebird database. I cannot run :
$conn->Execute(“SET NAMES utf8”);
so I skip this… if this cause the problem…
Thank you
Ari
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top