Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
how can i develop multi select checkbox inside DropDownList in asp.net
Kindly reply...
Posted 19-Apr-11 0:10am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Check this link.
 
DropDownList with checkboxes[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

by using RadComboBox its easy to develop checkbox inside dropdownlist
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 

<tr>
                <td>
                    Country Name
                </td>
                <td>
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <telerik:RadComboBox ID="rcbMyList1" runat="server" DataTextField="country_Name"
                        DataValueField="country_Id" Width="200px" Height="200px" AutoPostBack="true">
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" ToolTip='<%# Eval("country_Id") %>' Text='<%# Eval("country_Name") %>' />
                        </ItemTemplate>
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                    </telerik:RadComboBox>
                </td>
            </tr>
 
code behind:
protected void Page_Load(object sender, EventArgs e)
   {
       if (!IsPostBack)
       {
           DataTable dt = new DataTable();
           dt = CountryHandler.GetAll_Country();
           rcbMyList1.DataTextField = "country_Name";
           rcbMyList1.DataValueField = "country_Id";
           rcbMyList1.DataSource = dt;
           rcbMyList1.DataBind();
 
       }
   }
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Please check it out here:
 
http://www.codeproject.com/KB/user-controls/Multiselect-Dropdown.aspx
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.141015.1 | Last Updated 17 Aug 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100