The TIWCGJQComboBoxEx component causes an access violation when calling the ItemsByValue method with a value that is not in the list.
I populate the items with 3 entries where the Caption and Value properties are set to the same value: "aaa", "bbb" and "ccc". I add an IWCGJQEdit on the form. Next, I drop a button on the form and set its OnChange event to a single line of code:
{code}
procedure TIWForm1.Button1JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
begin
ComboBoxEx1.SelectedIndex := ComboBoxEx1.Items.ItemsByValue[IWCGJQEdit1.Text].Index;
end;
{code}
If the value in the Edit is set to any of the values in the list, everything works fine. If I enter any value that is not in the items, such as "123", the error is generated.
Is there a property that can be set to prevent this?