Hello,
I am trying to clear the text in the combobox with autocomplete feature but with no luck? So, in our page we have this functionality that can scan a barcode. I'm catching the keyup for the whole page and then reset the values in the control where the focus is on. When it is in the combobox, I cannot get the text cleared. My barcode indicator is this symbol: ]
Whenever my focus is on the combobox, it is being left there. I tried to hookup with the keyup event of this control, but I still cannot clear what has been written in the textbox. I did:
var textbox = this.combobox.FindChildrenOfType<TextBox>();
if (textbox != null)
textbox.Text = string.Empty;
Is there any other way I can clear the text??? Please advise.
Thanks,
Zamel
I am trying to clear the text in the combobox with autocomplete feature but with no luck? So, in our page we have this functionality that can scan a barcode. I'm catching the keyup for the whole page and then reset the values in the control where the focus is on. When it is in the combobox, I cannot get the text cleared. My barcode indicator is this symbol: ]
Whenever my focus is on the combobox, it is being left there. I tried to hookup with the keyup event of this control, but I still cannot clear what has been written in the textbox. I did:
var textbox = this.combobox.FindChildrenOfType<TextBox>();
if (textbox != null)
textbox.Text = string.Empty;
Is there any other way I can clear the text??? Please advise.
Thanks,
Zamel