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

DropDown in Grid height not dynamically sized

1 Answer 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
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");                   
 
  
 
                combo.clearItems();
 
                $.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("="));
 
                    comboItem.set_text(text);
 
                    comboItem.set_value(value);
 
                    combo.get_items().add(comboItem);
 
                });
 
            }
 
  
 
<telerik:GridTemplateColumn UniqueName="AddressType" HeaderText="Address Type">
 
                        <ItemTemplate></ItemTemplate>                          
 
                        <EditItemTemplate>
 
                            <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" >                
                            </telerik:RadComboBox>
 
                        </EditItemTemplate>                    
 
</telerik:GridTemplateColumn>

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

1 Answer, 1 is accepted

Sort by
0
Veli
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.

Regards,
Veli
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
Tags
Grid
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Veli
Telerik team
Share this question
or