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

DropDown in Grid height not dynamically sized

1 Answer 50 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
Lenny_shp asked on 13 Jul 2010, 10:32 PM
VS2008 2010.1.706.35  IE8

I’m populating RadComboBox in RadGrid OnRowSelected() on client side.

// load address types for the related combo
            function SetAddressCombo(){
                var grid = $find("<%=RadContactMailings.ClientID %>");
                var combo = grid.get_masterTableView().get_dataItems()[g_lastRowIndex].findControl("RadCmbAddressType");                   
                $.each(g_addrType, function(i) {
                    var comboItem = new Telerik.Web.UI.RadComboBoxItem();
                    var text = g_addrType[i].substring(0, g_addrType[i].indexOf("="));
                    var value = g_addrType[i].substring(g_addrType[i].indexOf("="));
<telerik:GridTemplateColumn UniqueName="AddressType" HeaderText="Address Type">
                            <telerik:RadComboBox runat="server" ID="RadCmbAddressType" width="99%" MaxDropDownItems="25"
                                DataSource='<%# (new string[] {Eval("Address.Type").ToString()}) %>'
                                CollapseAnimation-Type="None" ExpandAnimation-Type="None" Skin="WebBlue"
                                OnClientBlur="OnAddressTypeClientBlur" OnClientFocus="OnAddressTypeFocus" OnClientDropDownOpened="OnAddressTypeOpened" >                

The dropdown is filled, but the height is not dynamically sized.

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 19 Jul 2010, 01:13 PM
Hello Lenny_shp,

We cannot reproduce this issue. RadComboBox successfully resizes its dropdown list based on the number of combo items added. Attaching the sample page I used for testing. I populate the combo items on the client in the combo's own client Load event. Even though the event is different, the approach is the same. Have a look and let me know if you are able to reproduce this issue in the test page.

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
Asked by
Top achievements
Rank 2
Answers by
Telerik team
Share this question