This is a migrated thread and some comments may be shown as answers.

RadComboBox Clear Text issue

4 Answers 326 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jagat
Top achievements
Rank 1
Jagat asked on 19 Jun 2012, 08:20 PM
I'm using 2011.1.315.35 version RadCombobox with LoadonDemand and I can't get to clear its text. I have seen several forum that suggest below code but that didnt work.

rcbClients.SelectedValue = ""

rcbClients.Clients.Text = ""

 

 

<

 

telerik:RadComboBox runat="server" ID="rcbClients" Height="100px" EnableLoadOnDemand="true" AutoPostBack="true" ValidationGroup="Client"

ShowMoreResultsBox="true" EnableVirtualScrolling="true" AllowCustomText="false" OnClientItemsRequesting = "OnClientItemsRequesting"

EmptyMessage="Type lastname ...">

 

 

<WebServiceSettings Path="WCFClients.svc" Method="LoadClients" />

</

 

 

 

 

 

telerik:RadComboBox>

 

 



Appreciate your help!!

4 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 20 Jun 2012, 05:05 AM
Hi Jagat,

You can clear the RadComboBox by calling its ClearSelection() server method and resetting its Text to an empty string as follows.

C#:
rcbClients.ClearSelection();
rcbClients.Text = "";

Hope this helps.

Thanks,
Princy.
0
Jagat
Top achievements
Rank 1
answered on 20 Jun 2012, 05:05 PM
Thanks Princy but that didnt work either.
0
Helen
Telerik team
answered on 21 Jun 2012, 12:35 PM
Hi Jagat,

Please review the following forum post, which discusses a similar problem:

http://www.telerik.com/community/forums/aspnet-ajax/combobox/clear-radcombobox-text.aspx

Hope it helps.

Regards,
Helen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
David McClelland
Top achievements
Rank 1
answered on 15 Oct 2012, 03:07 PM
merikmgrasp's solution using OnClientDropDownClosed seemed to work the best for me.
Tags
ComboBox
Asked by
Jagat
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jagat
Top achievements
Rank 1
Helen
Telerik team
David McClelland
Top achievements
Rank 1
Share this question
or