How to add a vertical scroll bar to a CheckBoxList Server control in ASP.NET

Discussion in 'ASP .Net Web Controls' started by Marshal Antony, Dec 30, 2003.

  1. How to add a vertical scroll bar to a CheckBoxList Server control in
    ASP.NET.

    Any help is appreciated.

    Thanks,

    Marshal Antony
     
    Marshal Antony, Dec 30, 2003
    #1
    1. Advertising

  2. hi Marshal, the CheckboxList control outputs tables. Tables dont support the
    overflow CSS property. What you can do is wrap the control within div tags
    and set the style of the div tags overflow property to auto like this :<div
    style="overflow: auto;height:100px;width:200px;">
    <asp:CheckBoxList id="CheckBoxList1" runat="server"></asp:CheckBoxList>
    </div>

    Now if the width of your checkboxList exceeds the height of your div, that
    is 100px you get vertical scrollbars and if the width exceeds 200px you have
    horizontal scrollbars.

    "Marshal Antony" <> wrote in message
    news:...
    > How to add a vertical scroll bar to a CheckBoxList Server control in
    > ASP.NET.
    >
    > Any help is appreciated.
    >
    > Thanks,
    >
    > Marshal Antony
    >
    >
    >
    >
     
    Alessandro Zifiglio, Dec 31, 2003
    #2
    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. Framework fan
    Replies:
    2
    Views:
    9,217
    Framework fan
    Dec 2, 2003
  2. Marshal Antony
    Replies:
    4
    Views:
    14,008
    Marshal Antony
    Dec 30, 2003
  3. bienwell
    Replies:
    8
    Views:
    14,145
    vabraham
    Dec 7, 2011
  4. Guy
    Replies:
    1
    Views:
    38,060
  5. 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:
    314
    Cristian Suazo
    Jul 17, 2003
Loading...

Share This Page