This is a migrated thread and some comments may be shown as answers.

[Solved] Scroll Bar in RadComboBox

4 Answers 518 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Hong
Top achievements
Rank 1
Hong asked on 09 Jun 2009, 02:18 PM
I have a multi-column RadComboBox in a DotNetNuke web page, the DropDownWidth is large enough to display all item data, however, the vertical and horizontal scroll bars are always shown when clicking the dropdown arrow. How do I remove the scroll bars?    



4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Jun 2009, 06:22 AM
Hi Hong,

Usually the Scrollbars will appear for ComboBox when the contents in the Dropdown is larger than the size of the DropDown. I am able to remove the scrollbars with the following height and width settings.

ASPX:
 
  <telerik:RadComboBox ID="RadComboBox1" DropDownWidth="700px" Height="1500px" DataSourceID="SqlDataSource1"  runat="server" OnItemDataBound="RadComboBox1_ItemDataBound"
          <HeaderTemplate> 
           <table width="700" > 
            <tr> 
             <td style="width:500px" >ProductName</td> 
              <td style="width:100px" >ProductID</td> 
               <td style="width:100px" >SupplierID</td> 
            </tr> 
           </table> 
          </HeaderTemplate> 
          <ItemTemplate> 
           <table width="700" > 
            <tr> 
             <td style="width:500px" > <%# DataBinder.Eval(Container.DataItem, "ProductName") %></td
              <td style="width:100px" ><%# DataBinder.Eval(Container.DataItem, "ProductID") %></td
               <td style="width:100px" ><%# DataBinder.Eval(Container.DataItem, "SupplierID") %></td
            </tr> 
           </table>   
                         
          </ItemTemplate> 
          
        </telerik:RadComboBox> 


Shinu
0
Hong
Top achievements
Rank 1
answered on 10 Jun 2009, 02:06 PM
Yes, I tried to change the width, the scrollbar was gone in my machine. However, it is still there when I load the page in my client's DNN portal. The scroll bar is always shown although the width is big enough. Is there any other DNN settings I need to modify to remove the bar?    Thanks.
0
Peter
Telerik team
answered on 12 Jun 2009, 01:59 PM
Hi Hong,

Do you have a live url which we can test?

Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Hong
Top achievements
Rank 1
answered on 12 Jun 2009, 03:40 PM
That is my client's employee portal web site, so I am sorry I can not let you check due to the credential reasons. Did you have the similar experience at DNN site?  

Thanks,
Hong  
Tags
ComboBox
Asked by
Hong
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Hong
Top achievements
Rank 1
Peter
Telerik team
Share this question
or