Hello,
Have you got a sample with unidbgrid and an Implementation of MultiColumnSort ?
The Event OnMulticolumnsort return always one column
Other question :
Have you got a sample for having 3 state for sorting column when click on column title.
First click = asc
second click = desc
third click = none
clientevents->unievents :
function beforeInit(sender, config)
{
config.multiColumnSort = true;
}
On grid :
procedure TMainForm.MainGridMultiColumnSort(Columns: TUniDBGridColumnArr;
Directions: TUniSortDirections);
var
I: Integer;
IndxFldNames: string;
begin
IndxFldNames := '';
fIdxStr:= '';
//read the multisort
for I := High(Columns) downto 0 do
begin
case Directions[I] of
True :
begin
IndxFldNames := IndxFldNames + Columns[I].FieldName +