I am creating a dropdown with the following.
If I have any items in the drop down the first value is always selected. I need to allow the user to not select anything or somehow display a blank value when it is not selected. The Allow clear does not seem to work.
lCb := TIWCGJQDropDown.Create(aComponentOwner);
lCb.Parent := aComponentParent;
lCb.Name := 'dynmcompDlgMstrUDF0';
lCb.Visible := True;
lCb.Enabled := True;
lCb.JQDropDownOptions.Multiple := False;
lCb.JQDropDownOptions.AllowClear := True;
lCb.DataLink.DataSource := aMstrDS;
lCb.DataLink.FieldName := 'SHORT_DESC';
lCb.Height := h_size;
lCb.Width := w_size;
lCb.Top := top_pos;
lCb.Left := left_pos_comp;
lCb.ZIndex := z_indx;
lStrList := TStringList.Create;
try
lStrList.Delimiter := ';';
lStrList.DelimitedText := FieldbyName('SHORT_VAL').AsString;
fxStrListToCGDropDownList(lStrList,lCB);
finally
lStrList.Free;
end;