ListBox Item Width

2 posts, 0 answers
  1. Farooq
    Farooq avatar
    5 posts
    Member since:
    Nov 2012

    Posted 07 Nov 2012 Link to this post

    I have a radlistbox and the items are being inserted programmatically, how do I expand the width of an item so multiple items won't show on a single line as they are showing as of now.

    currently items are being inserted to listbox in c# like :
    rlbAssigned.Items.Add(new RadListBoxItem(rlbAvailable.Items[rlbAvailable.SelectedIndex].Text, rlbAvailable.Items[rlbAvailable.SelectedIndex].Value));

    and the listbox is declared as:
    <telerik:RadListBox ID="rlbAvailable" runat="server" Height="320px" Width="200px">                                         </telerik:RadListBox>
  2. Farooq
    Farooq avatar
    5 posts
    Member since:
    Nov 2012

    Posted 07 Nov 2012 Link to this post

    I figured it out since it has Ul and li I resolved it using css like so:   
    .RadListBox ul li      
       {
         float: left !important;     
         width: 170px;
       }

    I would be glad if someone comes up with a another solution.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top