TTMSFMXTreeView Filter not working (anymore)

Hi,


This used to work and users are complaining that this functionality isn't working anymore.

When entering filter text, the Treeview becomes ALWAYS empty.

To test:
1. Drop a TTMSFMXTreeView and a TEdit on a Form.
2. Make sure the TTMSFMXTreeView has some data in it.
3. Implement the OnChangeTracking Event of the Edit.

procedure TForm1.Edit1ChangeTracking(Sender: TObject);
var
  fd: TTMSFMXTreeViewFilterData;
begin
  TMSFMXTreeView1.RemoveFilters;

  if Edit1.Text <> '' then
  begin
    fd               := TMSFMXTreeView1.Filter.Add;
    fd.Column        := 0;
    fd.Condition     := '"' + Edit1.Text + '"';
    fd.CaseSensitive := False;

    TMSFMXTreeView1.ApplyFilter;
  end;
end;

Hi,


We have investigated and applied a fix, that will be available in the next release.
Please note that combining double quotes and asterix is not supported.

Thanks Pieter,


How should I fill the condition property?
The double-quotes were suggested by TMS a while back.

Should I remove the double-quotes or the asterixes?
I want the treeview to only show the entries which contain the specified text (text could be in the middle of a column text).

Hi, 


You should remove the double-quotes to fix the issue. The double-quotes and asterix combination was an issue that we've encountered here while fixing the other issue about the filtering not working. So in the next version, the filtering issue should be fixed, but you should also remove the double quotes. As it's written now, you should have a text anywhere in the treeview that says: Audi for example, so the asterixes need to be part of the text for the condition to be true.