This is a migrated thread and some comments may be shown as answers.

Checkbox into Combobox

2 Answers 23 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 08 Oct 2013, 07:40 AM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 08 Oct 2013, 11:00 AM
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.
0
Manuel
Top achievements
Rank 1
answered on 09 Oct 2013, 08:52 AM
Thanks, works perfectly ¡¡¡¡
Tags
ComboBox
Asked by
Manuel
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Manuel
Top achievements
Rank 1
Share this question
or