Hi I can't seem to get sorting by more than one field at one time.
What am I doing wrong ? I tried ..
AllowFiltering = true;
$grid->SingleColumnSorting = false;
I tried every combination I could think of, but nothing seems to work.
Here is my code ...
$ds = new AdvancedArrayDataSource($arr);
$grid = new KoolGrid("grid");
$grid->scriptFolder = $KoolControlsFolder."/KoolGrid";
$grid->styleFolder="Default";
$grid->Width = "938px";
$grid->DataSource = $ds;
$grid->AjaxEnabled = true;
$grid->AllowSorting = true;
$grid->PageSize = 10;
$grid->AjaxLoadingImage = $KoolControlsFolder."/KoolAjax/loading/5.gif";
$column = new GridBoundColumn();
$column->DataField = "Department";
$column->HeaderText = "Department";
$column->AllowSorting = true;
$column->AllowFiltering = true;
$grid->MasterTable->AddColumn($column);
$column = new GridBoundColumn();
$column->DataField = "Name";
$column->HeaderText = "Name";
$column->AllowSorting = true;
$column->AllowFiltering = true;
$grid->MasterTable->AddColumn($column);
$column = new GridBoundColumn();
$column->DataField = "DepAirport";
$column->HeaderText = "From";
$column->AllowSorting = true;
$column->AllowFiltering = true;
$grid->MasterTable->AddColumn($column);
$column = new GridBoundColumn();
$column->DataField = "Airport";
$column->HeaderText = "To";
$column->AllowSorting = true;
$column->AllowFiltering = true;
$grid->MasterTable->AddColumn($column);
$column = new GridBoundColumn();
$column->DataField = "Carrier";
$column->HeaderText = "Carrier";
$column->AllowSorting = true;
$column->AllowFiltering = true;
$grid->MasterTable->AddColumn($column);
$column = new GridBoundColumn();
$column->DataField = "Flight";
$column->HeaderText = "Flight";
$column->AllowSorting = false;
$grid->MasterTable->AddColumn($column);
$column = new GridBoundColumn();
$column->DataField = "Locator";
$column->HeaderText = "Locator";
$column->AllowSorting = false;
$grid->MasterTable->AddColumn($column);
$column = new GridBoundColumn();
$column->DataField = "CountryName";
$column->HeaderText = "Country";
$column->AllowSorting = true;
$column->AllowFiltering = true;
$grid->MasterTable->AddColumn($column);
$grid->AjaxEnabled = true;
$grid->AllowGrouping = true; //Allow Grouping
$grid->MasterTable->ShowGroupPanel = true; //Show Group Panel
$grid->MasterTable->Pager = new GridPrevNextAndNumericPager();