Check Boxes in Combo box

3 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 04 Apr 2011 Link to this post

    I have a Radcombo box with check boxes this is my markup:


    <telerik:RadComboBox ID="ddlSpecialty" runat="server" AutoPostBack="true" AppendDataBoundItems="true" EnableEmbeddedSkins="false" Skin="Activity" Width="185px" Height="300px" emptyMessage="Click to change Specialties" >







    <asp:CheckBox ID="chkSpecialty" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" AutoPostBack="true"></asp:CheckBox>



    <asp:Label ID="lblSpecialty" runat="server" AssociatedControlID="chkSpecialty"><%#Eval("Specialty") %></asp:Label>









    What I can't do is this:

    If one check box is selected then show that value in the radcombobox, but if more than one is selected then have the words 'Multiple Selected' be displayed.

    Can anyone offer any help on this.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 05 Apr 2011 Link to this post

    Hello Andy,

    I found code libraries, using checkboxes inside RadComboBox. I hope tis would shed some light on achieving your functionality.
    Using CheckBoxes for multi-item selection, complete solution
    RadComboBox Advanced Multiple Selection

  3. DevCraft R3 2016 release webinar banner
  4. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 08 Apr 2011 Link to this post

    Hi Andy,

    When multiple selection is implemented usually the values are stored in the Text property of the RadComboBox, which is in fact the text shown in the input. Since you want to show a message once more than one item is selected, my suggestion is to use a hidden input on the page to store these values.

    Best wishes,
    Dimitar Terziev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top