Checkboxlist control - would like vertical scroll bar

Discussion in 'ASP .Net' started by Framework fan, Nov 30, 2003.

  1. Hello.

    What is the best way of displaying a large list of checkboxes? I
    tried using a checkbox list control, but even if you set the height
    property, the control shows *all* of the checkboxes, without giving
    you a vertical scroll bar so that you can scroll up and down inside a
    smaller, more manageable container.

    The only way I can think of is using a treeview control. Is this my
    only option?

    Thank you.

    -Frameworker.
    Framework fan, Nov 30, 2003
    #1
    1. Advertising

  2. Framework fan

    Jagan Mohan Guest

    Just place your controls within the diiv tag to get a scrollbar.

    <DIV style="OVERFLOW-Y:scroll; WIDTH:760px; HEIGHT:570px">
    </DIV>

    Also check out
    http://www.dotnetjohn.com/articles/articleid98.aspx

    Thanks,
    Jagan Mohan

    "Framework fan" <> wrote in message
    news:...
    > Hello.
    >
    > What is the best way of displaying a large list of checkboxes? I
    > tried using a checkbox list control, but even if you set the height
    > property, the control shows *all* of the checkboxes, without giving
    > you a vertical scroll bar so that you can scroll up and down inside a
    > smaller, more manageable container.
    >
    > The only way I can think of is using a treeview control. Is this my
    > only option?
    >
    > Thank you.
    >
    > -Frameworker.
    Jagan Mohan, Dec 1, 2003
    #2
    1. Advertising

  3. That's great Jagan, thanks very much!
    -Frameworker.

    "Jagan Mohan" <> wrote in message news:<OIwx#>...
    > Just place your controls within the diiv tag to get a scrollbar.
    >
    > <DIV style="OVERFLOW-Y:scroll; WIDTH:760px; HEIGHT:570px">
    > </DIV>
    >
    > Also check out
    > http://www.dotnetjohn.com/articles/articleid98.aspx
    >
    > Thanks,
    > Jagan Mohan
    >
    > "Framework fan" <> wrote in message
    > news:...
    > > Hello.
    > >
    > > What is the best way of displaying a large list of checkboxes? I
    > > tried using a checkbox list control, but even if you set the height
    > > property, the control shows *all* of the checkboxes, without giving
    > > you a vertical scroll bar so that you can scroll up and down inside a
    > > smaller, more manageable container.
    > >
    > > The only way I can think of is using a treeview control. Is this my
    > > only option?
    > >
    > > Thank you.
    > >
    > > -Frameworker.
    Framework fan, Dec 2, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marshal Antony
    Replies:
    4
    Views:
    13,918
    Marshal Antony
    Dec 30, 2003
  2. bienwell
    Replies:
    8
    Views:
    13,862
    vabraham
    Dec 7, 2011
  3. Guy
    Replies:
    1
    Views:
    38,011
  4. Mircea Pleteriu

    How to set up a vertical scroll bar for my datagrid control?

    Mircea Pleteriu, Jul 15, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    287
    Cristian Suazo
    Jul 17, 2003
  5. Marshal Antony
    Replies:
    1
    Views:
    445
    Alessandro Zifiglio
    Dec 31, 2003
Loading...

Share This Page