Rad combobox value not clear ?

2 posts, 0 answers
  1. Aravind
    Aravind avatar
    41 posts
    Member since:
    Jun 2013

    Posted 05 Aug 2013 Link to this post

    Hai Everyone,
      I have a problem in radcombobox.First i add the value in db whatever enter in combobox,then i click again same page i see the what value lastly enter in comobox .I need to remove lastly enter value in comobox.it behave like remember username and password.After logout it goes to login page and can see username and password enter in textbox,bcz we check remember password at first login.
    here i attach the screen shot.  
    in no.1 ,i enter value in comobox and save in db.
        no.2.if i click same page i clear the value of comobox in javascript and verify there is no value,but
        no 3.i see the lastly enter value in comobox.
    So pls reply me how clear lastly enter value ? or in page load i need add some text like "--SELECT--" ?

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Aug 2013 Link to this post

    Hi Aravind,

    I guess you are clearing the entire item in the RadComboBox on clear button click and you want to show "SELECT" as the EmptyMessage. Here is the complete code snippet I tried.

    <telerik:RadComboBox ID="RadComboBox1" runat="server"  EmptyMessage="SELECT">
            <telerik:RadComboBoxItem Text="Item1" />
                <telerik:RadComboBoxItem Text="Item2" />
                <telerik:RadComboBoxItem Text="Item3" />
    <telerik:RadButton Text="clear" ID="RadButton1" runat="server"
             OnClientClicked="OnClick1" AutoPostBack="false">

    function OnClick1(sender, args)
            var combobox = $find('<%=RadComboBox1.ClientID %>');

    Please provide your code and elaborate the scenario it it doesn't help.

Back to Top