I’m switching from an older version (5.1.1) and I’m noticing a behavior that was not present in the old version. Here is the code:
1 2 |
$grid->setColProperty('somecolumn', array("label"=>"Some column", "width"=>"60", "align"=>"center", "edittype"=>"select", "editoptions"=>array("value"=>" :Select"), "searchoptions"=>array("clearSearch"=>false), "formoptions"=>array("label"=>"Some column"))); $grid->setSelect("somecolumn", array(""=>"", "yes"=>"yes"), true, true, true, array(""=>"Any")); |
In the old version in Add and Edit the was a dropdown with 2 options: an empty field and ‘yes’.
Now in the new version there are 3 options: ‘Any’, empty, ‘yes’. So the $defvals array is added to the options. Also, all fields that have the empty value show up as ‘Any’ in the grid.
Is there a way to revert to the way it was functioning in the old version?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top