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

DropDown Height

1 Answer 76 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nucleo
Top achievements
Rank 1
Nucleo asked on 16 Jan 2013, 06:55 PM
Hello, 

I'm having some problems while using the ComboBox. I need its DropDown list gets the maximum height it can, but I can't find a way to accomplish this.

I have already tried the solution on this thread (http://www.telerik.com/community/forums/silverlight/combobox/height-of-dropdown-and-maxdropdownheight.aspx), but it's not working. Actually it doesn't change a thing.

Can you please help me?

Kind Regards.

1 Answer, 1 is accepted

Sort by
0
Accepted
Ventzi
Telerik team
answered on 22 Jan 2013, 07:44 AM
Hi Marcelo,

You could bind the MaxDropDownHeight property of RadComboBox to the ActualHeight property of your Host like following:
public double MaxDropDownHeight
{
    get
    {
        return (double)App.Current.Host.Content.ActualHeight;
    }
}
This will set the height of the DropDown to the maximal available height. 

I hope this helps.

Kind regards,
Ventzi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ComboBox
Asked by
Nucleo
Top achievements
Rank 1
Answers by
Ventzi
Telerik team
Share this question
or