TWebLookupComboBox and Clear?

I must be missing something terribly obvious. I've got a TWebLookupComboBox and I can populate it with lcb.LookupValues.AddPair(str, str) and it all works just great. However, I went to clear and repopulate it and I can't seem to figure out what works? lcb.Clear and lcb.LookupValues.Clear don't seem to do anything and not sure what else I should be tryng?

I can work around it with:

asm 
    document.getElementById("lcb").options.length = 0; 
end;

Which indeed does the trick. Would also be handy to delete only the current selection like a lcb.DeleteSelected which seems to also not be available?

1 Like

Thanks for reporting.
We fixed the issue now. Next update will address this and you'll be able to use
lcb.LookupValues.Clear as expected.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.