Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ListBox items with check box

ListBox items with check box

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netwinforms
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anada8886
    wrote on last edited by
    #1

    Hi, I want to display a list of n(might cross 100) number of items on the page in a ListBox. But just for the convenience of the user, I want each ListBox item with a checkbox. So that the user can easily select multiple items & he doesn't need to keep pressed ctrl key while selecting multiple items. There is a control CheckedListBox,but it is available for Windows forms only,and not in ASP.Net. How can I achieve my requirement?Kindly give some guidance. Thank You.

    R A 2 Replies Last reply
    0
    • A anada8886

      Hi, I want to display a list of n(might cross 100) number of items on the page in a ListBox. But just for the convenience of the user, I want each ListBox item with a checkbox. So that the user can easily select multiple items & he doesn't need to keep pressed ctrl key while selecting multiple items. There is a control CheckedListBox,but it is available for Windows forms only,and not in ASP.Net. How can I achieve my requirement?Kindly give some guidance. Thank You.

      R Offline
      R Offline
      RajpootRohan
      wrote on last edited by
      #2

      what exactly you want to do.

      cheers, sneha

      A 1 Reply Last reply
      0
      • A anada8886

        Hi, I want to display a list of n(might cross 100) number of items on the page in a ListBox. But just for the convenience of the user, I want each ListBox item with a checkbox. So that the user can easily select multiple items & he doesn't need to keep pressed ctrl key while selecting multiple items. There is a control CheckedListBox,but it is available for Windows forms only,and not in ASP.Net. How can I achieve my requirement?Kindly give some guidance. Thank You.

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        First of all I want know that Why your trying to do this ? If there is more than 100 Chekbox , How many of them user will select ? So first think about your design !! Now come back to your Solution. If I am not wrong you want some thing This[^](Check Langauge, Platform, Technology.. Section ) . There are multiple approaches to solve this . 1. You can create them at runtime, placed it inside a Div, which should have scroll option. [ Performance overhead is there ] 2. Simple way to use GridView, use Check box Template Field . 3. Create your own custom control.

        cheers, Abhijit CodeProject MVP My Blog :Abhijit's World of .Net

        A 1 Reply Last reply
        0
        • R RajpootRohan

          what exactly you want to do.

          cheers, sneha

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          sneha Choudhary wrote:

          what exactly you want to do

          He want to do CheckBox List like This[^]

          cheers, Abhijit CodeProject MVP My Blog :Abhijit's World of .Net

          1 Reply Last reply
          0
          • A Abhijit Jana

            First of all I want know that Why your trying to do this ? If there is more than 100 Chekbox , How many of them user will select ? So first think about your design !! Now come back to your Solution. If I am not wrong you want some thing This[^](Check Langauge, Platform, Technology.. Section ) . There are multiple approaches to solve this . 1. You can create them at runtime, placed it inside a Div, which should have scroll option. [ Performance overhead is there ] 2. Simple way to use GridView, use Check box Template Field . 3. Create your own custom control.

            cheers, Abhijit CodeProject MVP My Blog :Abhijit's World of .Net

            A Offline
            A Offline
            anada8886
            wrote on last edited by
            #5

            Hey,thanx for your reply. Well,by default all the items(may be 5-100) will be selected. But,just wanted to allow the user to disselect any item,if he wants to. Otherwise there is no compulsion of having such design. Anyways,thanx for those suggestions .I'll try to get the desired output using them.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups