White space in the dropdown when filtering the results

8 posts, 0 answers
  1. OWMontreal
    OWMontreal avatar
    5 posts
    Member since:
    Apr 2006

    Posted 14 Jan 2014 Link to this post

    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.


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Jan 2014 Link to this post

    Hi,

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

    Thanks,
    Shinu.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. OWMontreal
    OWMontreal avatar
    5 posts
    Member since:
    Apr 2006

    Posted 15 Jan 2014 Link to this post

    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
  5. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 20 Jan 2014 Link to this post

    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.
  6. OWMontreal
    OWMontreal avatar
    5 posts
    Member since:
    Apr 2006

    Posted 20 Jan 2014 Link to this post

    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
  7. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 21 Jan 2014 Link to this post

    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.
  8. OWMontreal
    OWMontreal avatar
    5 posts
    Member since:
    Apr 2006

    Posted 21 Jan 2014 Link to this post

    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>



  9. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 23 Jan 2014 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017