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

Set max height for the drop-down list?

4 Answers 491 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 11 Sep 2009, 03:54 PM
On one of my pages I've got a databound RadComboBox holding 30 or so items.  It expands upward to the top of the window.  This is a problem because it passes through a RadMenu and for some reason passes behind the menu - so the third and fourth items in the list aren't selectable because the RadMenu is in front of them.

So, is there any way to do any of the following:
-Set the max length of the drop down, in pixels or number of items displayed or whatever else?
-Force the combobox to expand downward?
-Get the drop down to be in front of the radmenu instead of the other way around?

4 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 14 Sep 2009, 10:53 AM
Hello Chris,

Yes, you can do all of these:
- Use the Height attribute to set the height of the drop down.
- Set EnableScreenBoundaryDetection="false" to force the RadComboBox drop down to expand downwards.
- You can tweak the zIndex of the RadMenu and RadComboBox to change the Z stacking.

Kind regards,
Kamen Bundev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ajay Gandhi
Top achievements
Rank 1
answered on 22 Mar 2010, 11:54 PM
I am hving the same problem. I set all the 3 properties, but i am having the same problem still. Below is the code snippet:

 

<telerik:RadComboBox ID="RadComboBox1" Runat="server" Skin="Vista" EnableScreenBoundaryDetection="false" Height="50" ZIndex="30">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="1/1/2011" />

 

 

<telerik:RadComboBoxItem Text="7/1/2011" />

 

 

<telerik:RadComboBoxItem Text="1/1/2012" />

 

 

</Items>

 

 

</telerik:RadComboBox>

Please help.

 

0
Kamen Bundev
Telerik team
answered on 25 Mar 2010, 06:03 PM
Hello Ajay Gandhi,

If the listed methods don't work, then maybe you are having a problem with your layout. Can you share a live URL of your application (or send a sample project) in a support ticket? When we are able to reproduce your issue we will do our best to help you. Thank you in advance.

Best wishes,
Kamen Bundev
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
Ajay Gandhi
Top achievements
Rank 1
answered on 25 Mar 2010, 06:13 PM
Thank you so much for replying. Unfortunately the aplication is Intranet and won't be able to share it. But I did some research and was able to fix the issue using the 'zIndex property'.
Tags
ComboBox
Asked by
Chris
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Ajay Gandhi
Top achievements
Rank 1
Share this question
or