I have a RadComboBox with a EmptyMessage and want to clear the content, I've tried:
cboSearchGenre.Text = null;
cboSearchGenre.Text = "";
But I always get a empty ComboBox without the EmptyMessage or in the last example I get a ComboBox with the EmptyMessage as Text content not empty, how can I clear the CombBox and get the EmptyMessage from Client Side?
5 Answers, 1 is accepted
I hope you are trying to set the EmptyMessage of the Combo on the client side along with clearing the ComboBox selection. If so try the following approach and see it is working.
The second approach works:
Is this the correct way, the first approach doesn't work, the ComboBox is empty without EmptyMessage, is this by design or a bug?
Actually my suggestion was server-side, but obviously you needed client-side approach. I'm sorry for the confusion.
the Telerik team
|cboSearchGenre.Text = String.Empty;|