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

How to turn off scrolling in dropdown

3 Answers 180 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ed Staffin
Top achievements
Rank 1
Ed Staffin asked on 23 Apr 2010, 02:23 PM
Hi,
I have a RadComboBox control with an embedded treeview control as defined below.   
The issue is that when the dropdown is opened and the treeview is displayed, if the user expands the tree, I end up with 2 scollbars. One for the combobox and one for the tree. I'd like to hide the scrollbar on the combobox if that is possible.
Any help would be great.
Thanks ... Ed
           <telerik:RadComboBox ID="ddlTask" runat="server" Height="140px" Width="300px"   
                ShowToggleImage="True" Skin="Vista" Style="vertical-align: middle;" OnClientLoad="tvCombo_Load" 
                OnClientDropDownOpened="tvCombo_OnClientDropDownOpenedHandler">  
                <ItemTemplate> 
                    <div id="div1" onclick="tvCombo_StopPropagation(event);">  
                        <telerik:RadTreeView runat="server" ID="tvTask"   
                         OnClientNodeClicking="tvCombo_NodeClicking" Skin="Vista" Height="140px" 
                           
                         > 
                        </telerik:RadTreeView> 
                    </div> 
                </ItemTemplate> 
                <Items> 
                    <telerik:RadComboBoxItem Text="" /> 
                </Items> 
              <CollapseAnimation Type="None" /><ExpandAnimation Type="None" />   
            </telerik:RadComboBox> 

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 23 Apr 2010, 04:02 PM
Hi Ed Staffin,

You can hide the RadTreeView's scrollbar in this way:
<telerik:RadTreeView runat="server" ID="tvTask" OnClientNodeClicking="tvCombo_NodeClicking" Skin="Vista" Height="140px" style="overflow: visible"
                         >

Kind regards,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ed Staffin
Top achievements
Rank 1
answered on 23 Apr 2010, 04:13 PM
It worked, but it makes no sense to me. Why would style="overflow:visible" turn OFF the scroll bar???
Thanks ... Ed
0
Yana
Telerik team
answered on 26 Apr 2010, 11:19 AM
Hello Ed Staffin,

This css style is applied to the main div of the treeview, here you can read what is its purpose.

Greetings,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Ed Staffin
Top achievements
Rank 1
Answers by
Simon
Telerik team
Ed Staffin
Top achievements
Rank 1
Yana
Telerik team
Share this question
or