FilterDropDownCheckUncheckAll

Hello


Im using TAdvStringGrid version 8.3.1.0, I have been using FilterDropDownCheckUncheckAll for long time, but I have noticed that it is not working correctly now.  I tried some of the demo projects and it was happening there also.  It looks like it works if FilterDropDownMultiCol = False, but I have this property true, then this check/uncheck all text goes in the bottom of the filter list and is not doing anything.  Is this something that is going to be fixed soon?

thank you

regards,
Elvar

It is not clear how exactly you see a problem.

Test case applied on a default grid:


procedure TForm3.FormCreate(Sender: TObject);
begin
  AdvStringGrid1.RowCount := 100;
  AdvStringGrid1.RandomFill(false,10);
  AdvStringGrid1.FilterDropDownAuto := true;
  AdvStringGrid1.FilterDropDownCheckUnCheckAll := 'all';
  AdvStringGrid1.FilterDropDownMultiCol := true;
end;

With this setup, I cannot see a problem here. What exact steps are required to see an issue?

Hi sorry

I meant

AdvStringGrid1.FilterDropDownCheck := true;

then it goes to the bottom and does not work

The check all / uncheck all is always assumed to be the first checkbox item.
So, use something like:

procedure TForm3.FormCreate(Sender: TObject);
begin
  AdvStringGrid1.RowCount := 100;
  AdvStringGrid1.RandomFill(false,10);
  advstringgrid1.FilterDropDownAuto := true;
  advstringgrid1.FilterDropDownCheck := true;
  advstringgrid1.FilterDropDownCheckUnCheckAll := '(all)';
  advstringgrid1.FilterDropDownMultiCol := true;
end;

Works perfectly now, but this behaviour was not like this before. I was using Delphi XE3 before I upgraded to 10.2, and then it always went to the top, but its solved, so all is good, 


thank you for your quick response

regards, Elvar

This is because it performs a sort by default now.

Hi,

I am using 8.3.3.0 Version of TAdvStringGrid component in Embarcadero 10.2 (C++). With previous version of TMS in Embarcadero XE8, the FilterDropDownCheckUncheckeAll was working when set to 'all'. It's not working anymore since i migrated the project. Can you help me? Thanks

I cannot see a problem.

Test code:


begin
  advstringgrid1.SaveFixedCells := false;
  advstringgrid1.LoadFromCSV('e:\tms\cars.csv');
  advstringgrid1.FilterDropDownAuto := true;
  advstringgrid1.FilterDropDownCheck := true;
  advstringgrid1.FilterDropDownCheckUnCheckAll := '(all)';
end;

and this works as  expected.