Check box text

2 posts, 0 answers
  1. Naphtali
    Naphtali avatar
    22 posts
    Member since:
    Jul 2010

    Posted 06 Feb 2013 Link to this post

    I'm using the checkbox=true property for the RadComboBox.
    Here is the code:

      <telerik:RadComboBox ID="cboApplication" runat="server" 

                CheckBoxes="true" EnableCheckAllItemsCheckBox="true">

                <Localization CheckAllString="All" AllItemsCheckedString="All" ItemsCheckedString="Items Selected" />


    In code behind I fill in the values and set all items to selected.

    My Problem is that after changing the selection (un selecting a few items) and closing the combobox, only the first item is displayed in the combobox.
    I would like that all the selected items will be displayed.


  2. Kalina
    Kalina avatar
    918 posts

    Posted 11 Feb 2013 Link to this post

    Hello Naphtali,

    In order to set some initially checked items in RadComboBox input - you need to set the RadComboBoxItem.Checked property to "true":

    <telerik:RadComboBox ID="RadComboBox1" runat="server" 
            <telerik:RadComboBoxItem Text="item 1" Value="1" />
            <telerik:RadComboBoxItem Text="item 2" Value="2" />
            <telerik:RadComboBoxItem Text="item 3" Value="3" />
    protected void Page_Load(object sender, EventArgs e)
        this.RadComboBox1.FindItemByValue("1").Checked = true;
        this.RadComboBox1.FindItemByValue("2").Checked = true;

    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