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

TreeView in RadComboBox Drop Down Height

5 Answers 115 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 06 May 2011, 09:54 PM
Hello,

I am trying to use the treeview in the RadComboBox: http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx?product=combobox

When the user expands a combo item, I need the RadComboBox drop down to expand too.  Seems easy enough to do, but I have a CSS style applied that I would like for it to meet.  It doesn't seem to apply the style initially (maybe because its a custom item template) and so how can I handle?

If the style class doesn't work, then I'm thinking tap into the NodeExpanded event on the TreeView, and adjust the size of the drop down.  Is there a method that says "reevaluate the combo's contents and allow more room"?

Thanks.

5 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 10 May 2011, 05:32 PM
Hi Brian,

Could you please try to include the following style in your page's head tag:

<style type="text/css">
   .rcbScroll
    {
        height: auto !important;
    }
</style>



Regards,
Helen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Brian Mains
Top achievements
Rank 1
answered on 19 May 2011, 01:58 PM
Hey,

That worked great actually, but with one drastic side-effect: in IE 8, this prevents the drop downs from appearing at all.  IE 7, 9, and FF worked fine, but IE 8 the drop down was 1 px, and I couldn't adjust it.

Brian
0
Helen
Telerik team
answered on 24 May 2011, 04:45 PM
Hi Brian,

I just tested it under IE8 and everything worked as expected. See the attached screenshot for details.
Do you reproduce the issue only in the IE8 mode of IE9?

Greetings,
Helen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Brian Mains
Top achievements
Rank 1
answered on 24 May 2011, 07:37 PM
Hello,

Yes IE 8 mode of IE 9.

Thanks.
0
Helen
Telerik team
answered on 26 May 2011, 02:12 PM
Hello Brian,

Could you please try to set the min-height for the same element:

<style type="text/css">
.rcbScroll
{
    height: auto !important;
    min-height: 200px !important;
}
</style>


Kind regards,
Helen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ComboBox
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Helen
Telerik team
Brian Mains
Top achievements
Rank 1
Share this question
or