Hi,
I am using RadCombobox control from promethues. How do I set the maximum height of the combobox so that it would display the scrollbar when it exceeds the maximum height and adjust the height if there are only very fiew items such as one or two.
Thanks
Sub
I am using RadCombobox control from promethues. How do I set the maximum height of the combobox so that it would display the scrollbar when it exceeds the maximum height and adjust the height if there are only very fiew items such as one or two.
Thanks
Sub
4 Answers, 1 is accepted
0
Hi Sub,
The RadComboBox' height works the following way:
Nick
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The RadComboBox' height works the following way:
- If Height is not set, the height of the combobox will automatically be calculated to accommodate all the items. If the overall height of the dropdown area is about to cross the browser's borders, a scrollbar will appear.
- If Height is set, a vertical scrollbar will appear when the overall height exceeds the height of the items.
Nick
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Sub
Top achievements
Rank 1
answered on 01 Apr 2008, 01:37 PM
Hi,
Thanks for the reply. I know that If I do not set the Height then a scrollbar will appear only when overall height of the dropdown area is about to cross the browser's borders, That is not what I want. It will not look nice to have a big list of items with no scroll bar until it exceeds the browser's boundry. I want to set a maximum height so that it will show the scrollbar after it reaches the certain height but also adjusts the height if there are only very fiew items such as one or two. Is there a way to set it in your CSS styles?
Thanks
Subha
Thanks for the reply. I know that If I do not set the Height then a scrollbar will appear only when overall height of the dropdown area is about to cross the browser's borders, That is not what I want. It will not look nice to have a big list of items with no scroll bar until it exceeds the browser's boundry. I want to set a maximum height so that it will show the scrollbar after it reaches the certain height but also adjusts the height if there are only very fiew items such as one or two. Is there a way to set it in your CSS styles?
Thanks
Subha
0
Hello Sub,
I am afraid this would not be possible with RadComboBox. The Height works just as I described with my previous post. In your case, you can set the Height property to a certain value to show scrollbars when the overall height of the items exceeds this value. However, if the items' height is smaller than the Height of the combo, the drop-down will be stretched down as per the value of the RadComboBox' Height property.
I hope that this is not a major show-stopper for you.
Regards,
Nick
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I am afraid this would not be possible with RadComboBox. The Height works just as I described with my previous post. In your case, you can set the Height property to a certain value to show scrollbars when the overall height of the items exceeds this value. However, if the items' height is smaller than the Height of the combo, the drop-down will be stretched down as per the value of the RadComboBox' Height property.
I hope that this is not a major show-stopper for you.
Regards,
Nick
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Hello Sub,
You can also check this knowledge base article: (ID#956) Set the Height of RadComboBox based on number of items
Kind regards,
Veskoni
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
You can also check this knowledge base article: (ID#956) Set the Height of RadComboBox based on number of items
Kind regards,
Veskoni
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
