I am using a TAdvSmoothComboBox with a header. If I have entered a text in the edit control of the header to filter the entries already works fine. Then I change the list:
cb.BeginUpdate(); cb.Items.Clear(); for i := 0 to strlist.Count-1 do begin item := cb.Items.Add; item.Caption := strlist.Strings; end; cb.SelectedItemIndex := -1; // Why necessary? cb.EndUpdate();
The text in the edit control remains, but have no effect. Now I have 2 questions:
How to clear the filter text? <= Prio high
Is it possible to automatically clear the filter text when the list is cleared? <= Prio low
Is it possible to automatically clear the selected item when the list is cleared? <= Prio low
The TMS Component pack 8.0.5.0 (17/11/2015) is released and I have downloaded and tested it. The release contains TAdvSmoothComboBox with V2.2.1.0. The new method ClearFilter works perfect for me, question 1 is cleared. Question 2 is not really important, because I can do it now manually with the new method ClearFilter. It looks like the selected item is now cleared when the list is cleared, question 3 is also cleared.