Issue clearing RadCombobox databount to Page method

2 posts, 0 answers
  1. Prava kafle
    Prava kafle avatar
    217 posts
    Member since:
    Apr 2010

    Posted 22 Aug 2012 Link to this post


    I am dynamically adding RadComboBoxes to placeholder and I have a search Button and reset Button.
    I am using Page method to data bind  RadComboBox as shown in the link.
    On clicking "search" Button,  I collect values from these Comboxes and process the information.
    By clicking "Reset" button, I  clear the selection from Comboboxes .

    After a post back from "search" button, if I try to reset ComboBoxes, it does not clear the selection from  comboBoxes.
    But if "Reset"  button is clicked before any post back to server,   it successfully  clears selection from comboBoxes.

    Dynamically Adding Comboxes :
                 RadComboBox  radAutoCompleteBox = new RadComboBox();
                 radAutoCompleteBox  .ID = f"ACPTBox"+ i;
                  radAutoCompleteBox.WebServiceSettings.Method = "GetDataForSearchControl";
                  radAutoCompleteBox.WebServiceSettings.Path = "TSearch.aspx";
                  radAutoCompleteBox.CssClass = "TSrchCBBox"; 
                  radAutoCompleteBox.OnClientItemsRequesting = "autoCompleteRequesting";
                  radAutoCompleteBox.Skin = "Office2010Blue";
                  radAutoCompleteBox.EnableEmbeddedSkins = true;
                  radAutoCompleteBox.EnableViewState = true;
                  radAutoCompleteBox.AutoPostBack = false;
                  radAutoCompleteBox.AllowCustomText = true;
                  radAutoCompleteBox.EnableLoadOnDemand = true;
                  radAutoCompleteBox.EnableVirtualScrolling = true;
                  radAutoCompleteBox.ShowMoreResultsBox = true;


                      radAutoCompleteBox.ClearSelection(); //THIS DOES NOT WORK
                      radAutoCompleteBox.SelectedIndex = -1;
                      radAutoCompleteBox.Text = "";


    Can someone help me in solving this issue?
  2. Ivana
    Ivana avatar
    657 posts

    Posted 24 Aug 2012 Link to this post

    Hi Prava,

    Thank you for contacting Telerik team.

    Attached is a sample page which shows what I have tested locally. As my tests show there seems that the RadComboBox works just as expected. Would you please take a look at it and let me know if there is something I am missing?

    Thank you in advance for your cooperation.

    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.
Back to Top