| -- Filter -- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Filtered grid | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Constructor:
$filteredGrid = AjaxGrid::create( "filteredGrid", array( new DBQueryDescriptor("city", array("ID","Name", "CountryCode", "District")) ), array( "ID" => new ColumnMapped("%s", array("city.ID"),true,'5%'), "Name" => new ColumnMapped("%s", array("city.Name"), true), "Country Code" => new ColumnMapped("%s", array("city.CountryCode"), true, NULL, true), "District" => new ColumnMapped("%s", array("city.District"), true, NULL, true) ), false, '1', array( "Country Code" => array("District")) ); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|