Clear RadComboBox selection from IE

2 posts, 1 answers
  1. Louis
    Louis avatar
    7 posts
    Member since:
    Oct 2015

    Posted 02 Jun Link to this post

    We had the following problems when a RadDropDownList has properties set to:

    <telerik:RadComboBox  runat="server" ID="cmbStation" Width="100%" AutoPostBack="true" CausesValidation="false" EmptyMessage="Choose one" MarkFirstMatch="true" DataSource='<%# Stations %>' />


    Once we clicked "clear" the content of the RadComboBox with the "X" button in IE or clear manually, no postback was raised from the control.

    Instead have a "telerik" way, we just set the client event "OnClientDropDownClosing" the following javascript fonction:

    function CheckIfCleared(sender, eventArgs) {
        if (sender._value == "" && sender._filterText == "") {
            __doPostBack(sender._uniqueId, 'SelectedIndexChanged');
        return true;

    Is there a "Telerik" way, for current or next release, embedded in this control to do it ?
  2. Answer
    Nencho avatar
    1446 posts

    Posted 07 Jun Link to this post

    Hello Louis,

    The referenced X button is automatically added by the Internet Explorer for all inputs on the page that has any value in them. This button is not supported with our controls, which is why, we suggest to hide it and avoid its usage for clearance of the selection of the ComboBox.

    You can use the following css style rules in order to hide the Clear Button in Internet Explorer:

    <style type="text/css">
            .rcbInput::-ms-clear {
                display: none;

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top