locked
multi-select dropdownlist with checkboxes RRS feed

  • Question

  • User-1706081156 posted

    When creating a windows forms  report (rdl), multi-value parameters are rendered with a nice drop down list with check boxes...including a (Select All) item.  When you run this via a report server and render the report for the web, the multi-value selection shows up nicely as well.

    Can I create a similar web form dropdownlist with checkboxes so I can duplicate this functionality with an RDLC report?

    Jim

    Tuesday, February 13, 2007 10:29 AM

Answers

All replies

  • User-1706081156 posted

    A post from another forum suggested this.  Noone at this forum seems to want
    to comment...
     I also found that a search for "checkedlistbox"  rather than "dropdownlist with checkbox"
    provided better results...

    http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1219269&SiteID=17

    Jim,

     Please check this online posting.

    http://www.dotnet247.com/247reference/msgs/42/211693.aspx

    It describes creating a dropdownlist with checkboxes. There is nothing out of the box available. You will have to write your own control.

    HTH,

    Rakesh

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 20, 2007 12:31 PM
  • User569573681 posted

    Yes you are true.. there is nothing out of way but yeah it's true we can write our custom control to feel similar behavior. 

    I am also having similar kind of requirement where-in I am supposed to design a search screen with multiple multi-select dropdownlist.

     What I did is I wrote a custom webcontrol where in I fixed a textbox and a button. on click of button I am toggling a div containing chekclistbox

     but the problem is IE6 overlaps other dropdownlist over the div tag. so list does't appear properly. the solution I found is to apply IFrame. but again it gives problem with IE7 and mozilla browser.

     So while writing the custom webcontrol different browser rendering has to be taken care of.

    Friday, June 27, 2008 2:48 AM
  • User1242141900 posted

    Hi,

    I'm trying to create my dropDownList with checkboxes but I'm having a lot of problems.

    What I'm trying to do now is override the DropDownList control (as suggested in this forum: http://www.dotnet247.com/247referenc...42/211693.aspx), but I'm havng problems right in the frist line:

    Public Class CheckBoxDropDownList : System.Web.UI.WebControls.WebControl, INamingContainer

    System is highlighted and asking me for a declaration ("Declaration expected"). What is wrong then? I created this class in the folder App_Code. Is it correct? Please, I need some help with this.

    I'm using ASP.NET 3.5, Visual Studio 2008 and VB.NET. And the DropDownList is inside a GridView.


    Please, if you have any suggestion about how to make this CheckBoxDropDownList, please let me know. I'm almost desperate!


    Thanks,

    Ana



    Wednesday, August 12, 2009 3:48 PM
  • User-2013020646 posted

    Using ASP.NET server control

    Article: http://saplin.blogspot.com/2011/05/dropdwoncheckboxes-introduction.html

    Control download: http://dropdowncheckboxes.codeplex.com/releases/view/67308

    Tuesday, May 31, 2011 8:13 AM
  • User1590142134 posted

    Yes. You can create.

    You can use the telerik RadComboBox. 

     <telerik:RadComboBox ID="cmbItemStatus" runat="server" OnClientDropDownClosing="onDropDownClosing"
     AllowCustomText="true" OnItemDataBound="cmbItemStatus_ItemDataBound" SkinID="ComboWithCheckBox">
    <ItemTemplate>
    <div onclick="StopPropagation(event)" class="combo-item-template">
    <asp:CheckBox runat="server" ID="chk1" />
    <asp:Label runat="server" ID="lblItemStatus" AssociatedControlID="chk1">
    <%# Eval("DisplayName")%>
    </asp:Label>
    </div>
    </ItemTemplate>
    </telerik:RadComboBox>.
    
    
    just checkout the www.telerik.com.
    Friday, June 3, 2011 2:22 AM
  • User-1278137068 posted

    Please take a look of the Single and Multiple Select Drop Down List. These are powerful searchable drop down list controls which are part of the XField Suite.

    Richard Xiong

    Wednesday, October 5, 2011 4:21 PM