CG Gurus,
When setting MyCGDropDown.JQDropDownOptions.Open(), how can I preset the search;.value. So, for example if MyCGDropDown contains a list of US States, how can I preset the search option to the value "wa" ?
Regards,
Monte Carver
When setting MyCGDropDown.JQDropDownOptions.Open(), how can I preset the search;.value. So, for example if MyCGDropDown contains a list of US States, how can I preset the search option to the value "wa" ?
procedure TIWFormDashboardUserOrder.IWDropDownJQDropDownOptionsOpen(Sender: TObject; AParams: TStringList);
var
s: string;
begin
s:= Format('%s.data("select2").search.val("%s").trigger("input");',[IWDropDown.GetIDJQuery, 'wa']);
CGAddJavaScriptToAjaxResponse(s);
end;