Checkbox into Combobox

3 posts, 0 answers
  1. Manuel
    Manuel avatar
    3 posts
    Member since:
    Oct 2013

    Posted 08 Oct 2013 Link to this post

    Hello, I need to write the items checked in combobox text separated by ",".
      Likewise, delete the items I unchecked in the text of combobox

    Check A and B --> combobox text =A,B
    uncheck B --> combobox text=A

    <telerik:RadComboBox ID="combo_empleados" AllowCustomText="true" Filter="Contains"
                
                    EnableLoadOnDemand="true"  runat="server" Width="70%">

                    <ItemTemplate>
                         <div >
                              <asp:CheckBox ID="chk1" runat="server" checked="false" AutoPostBack="False" Text=""/> <%# DataBinder.Eval(Container, "Text") %>  
                             
                         </div>
                    </ItemTemplate>
                
                </telerik:RadComboBox>


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

    Posted 08 Oct 2013 Link to this post

    Hi Manuel,

    Please try to set CheckBoxes=true of RadComboBox to achieve your scenario.
    ASPX:
    <telerik:RadComboBox ID="combo_empleados" AllowCustomText="true" Filter="Contains"
                CheckBoxes="true" CheckedItemsTexts="DisplayAllInInput" EnableLoadOnDemand="true"
                runat="server" DataSourceID="SqlDataSource1" DataTextField="CustomerID">
            </telerik:RadComboBox>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
                SelectCommand="SELECT [CustomerID] FROM [Orders]">
    </asp:SqlDataSource>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Manuel
    Manuel avatar
    3 posts
    Member since:
    Oct 2013

    Posted 09 Oct 2013 Link to this post

    Thanks, works perfectly ¡¡¡¡
Back to Top