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

White space in the dropdown when filtering the results

7 Answers 258 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
OWMontreal
Top achievements
Rank 1
OWMontreal asked on 14 Jan 2014, 09:53 PM
We just upgraded Telerik controls from 2012.1.411.40 to  2013.3.1114.40 recently. After this upgrade, we found an issue in the RADComboBox. Before this upgrade, the dropdown height is automatically resized when you type and the result is getting less. But with this latest version, the dropdown height no longer gets resized. It leaves a large white space. Please see the screenshot in the attachment.

The RADComboBox is set up as Filter= Contains. Please advise if this is an known issue or is there any workaround or settings to fix it. Thanks.


7 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Jan 2014, 06:11 AM
Hi,

With reference to this forum thread you can limit the height using "Height" or "MaxHeight" property.

Thanks,
Shinu.

0
OWMontreal
Top achievements
Rank 1
answered on 15 Jan 2014, 04:38 PM
I already found that thread before I post my question. The problem for us is that this auto resize on height used to work before our upgrade. We don't want to limit the height as fixed. It should be resized based on the number of result in the drop down.

Is there any way to fix this? Thanks
0
Kate
Telerik team
answered on 20 Jan 2014, 11:56 AM
Hi Andrew,

I checked the control and its behavior in our on-line demos here but I was not able to replicate the issue that you describe. Can you please provide more details on your scenario so we can test the issue locally and assist you in resolving it?

Regards,
Kate
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
OWMontreal
Top achievements
Rank 1
answered on 20 Jan 2014, 07:14 PM
Thanks for your reply. But this on-line demos uses another control RadAutoCompleteBox, not the one we are using. We are using ComboBox.

You can reproduce this problem on the demo of ComboBox: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx
0
Kate
Telerik team
answered on 21 Jan 2014, 01:10 PM
Hi Andrew,

In general the RadComboBox does not have a built-in property that will set the height of the dropdown according to the number of the items that are inside it.  Doyou use any custom implementation to achieve this behavior? If so, can you also clarify on your scenario. Meanwhile I can suggest that you also try the RadAutocompleteBox control (as referenced in my previous post)  that have such built-in functionality that can be used out of the box.
 
Regards,
Kate
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
OWMontreal
Top achievements
Rank 1
answered on 21 Jan 2014, 06:21 PM
Hi Kate, we don't have any custom implementation on re-sizing height. Like I said, it worked before in 2012.1.411.40 version but did not work any more in the latest version 2013.3.1114.40 with the exactly same code. Also we cannot use RadAutoCompleteBox because only ComboBox has features we want. Is there any way Telerik fix this in the ComboBox control? Do I need to log a ticket? Thanks.

Here is an example of our code to use ComboBox. You can see it did not have custom implementation. 

  <telerik:RadComboBox runat="server" ID="LookupControl" OnItemsRequested="Lookup_ItemsRequested" >
        <HeaderTemplate>
            <asp:Table ID="LookupHeader" runat="server">
                <asp:TableRow>
                    <asp:TableCell Width="120"><ow:OwLabel runat="server" ID="Name" ResourceId="Label_Name" /></asp:TableCell>
                    <asp:TableCell Width="80"><ow:OwLabel runat="server" ID="Address" ResourceId="Label_Address" /></asp:TableCell>
                    <asp:TableCell Width="80"><ow:OwLabel runat="server" ID="City" ResourceId="Label_City" /></asp:TableCell>
                    <asp:TableCell Width="80"><ow:OwLabel runat="server" ID="State" ResourceId="Label_StateProvince" /></asp:TableCell>
                    <asp:TableCell Width="50"><ow:OwLabel runat="server" ID="Zip" ResourceId="Label_PostalCodeZip" /></asp:TableCell>
                    <asp:TableCell Width="80"><ow:OwLabel runat="server" ID="Country" ResourceId="Label_Country" /></asp:TableCell>
                </asp:TableRow>
            </asp:Table> 
        </HeaderTemplate>
        <ItemTemplate>
            <asp:Table ID="LookupItem" runat="server">
                <asp:TableRow>
                    <asp:TableCell Width="120"><%# DataBinder.Eval(Container, "Text") %></asp:TableCell>
                    <asp:TableCell Width="80"><%# DataBinder.Eval(Container, "Attributes['Address']")%></asp:TableCell>
                    <asp:TableCell Width="80"><%# DataBinder.Eval(Container, "Attributes['City']")%></asp:TableCell>
                    <asp:TableCell Width="80"><%# DataBinder.Eval(Container, "Attributes['State']")%></asp:TableCell>
                    <asp:TableCell Width="50"><%# DataBinder.Eval(Container, "Attributes['Zip']")%></asp:TableCell>
                    <asp:TableCell Width="80"><%# DataBinder.Eval(Container, "Attributes['Country']")%></asp:TableCell>
                </asp:TableRow>
            </asp:Table>
        </ItemTemplate>
    </telerik:RadComboBox>



0
Kate
Telerik team
answered on 23 Jan 2014, 03:23 PM
Hello Andrew,

I tested the demo that you are referring to with the 2012.1.411.40 version of the Telerik controls but the dromdown of the RadComboBox control does not shrink to match filtered results in the control. Can you please open a formal support ticket where you can attach a runnable simple project that  I can test from my side and assist you with this case?

Regards,
Kate
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
ComboBox
Asked by
OWMontreal
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
OWMontreal
Top achievements
Rank 1
Kate
Telerik team
Share this question
or