How to size a listbox so it fills a panel?

Discussion in 'ASP .Net' started by Bogdan, May 28, 2009.

  1. Bogdan

    Bogdan Guest

    Hi,

    Is there a way I could size a listbox so it fills its parent panel? The
    panel has GroupingText set.
    If not, can I do the opposite? That is, can I size the parent panel so it
    fits tightly around the list box?

    Thanks,
    Bogdan
     
    Bogdan, May 28, 2009
    #1
    1. Advertisements

  2. Did you already try to use javascript for this?

    document.getElementById(control_client_id).style.width =
    document.getElementById(panel_client_id).style.width
     
    Alexey Smirnov, May 28, 2009
    #2
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.