how to set default value

2 posts, 0 answers
  1. Ashok
    Ashok avatar
    23 posts
    Member since:
    Jul 2012

    Posted 08 Sep 2010 Link to this post

    Hi Team

    i have Radcombobox

     

    <telerik:RadComboBox ID="Test" runat="server" EmptyMessage="Select"

     

     

    EnableLoadOnDemand="true" EnableVirtualScrolling="true" Filter="Contains"

     

     

    onKeyDown="if(event.keyCode==13) event.keyCode=9;" ItemsPerRequest="20" ShowMoreResultsBox="true"

     

     

    TabIndex="133" Width="200px">

     

     

    </telerik:RadComboBox>

    if i click Clear button i need to set like select in dropdown.
    i used like but not working

     

    Test.SelectedIndex = -1;
    Test.Selectedvalue="";
    Test.Selectedvalue=0;
    not working ...

    Give me the Solution as soon as possible..

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

    Posted 08 Sep 2010 Link to this post

    Hello,


    Setting the SelectedIndex worked for me in selecting an item in the list. If you want to clear the RadComboBox, then try the the ClearSelection() method and see whether it helps.

    Code:
          RadComboBox1.ClearSelection();


    Shinu.
Back to Top