Values are compressed down with NoWrap/LoadOnDemand

4 posts, 1 answers
  1. Adam
    Adam avatar
    177 posts
    Member since:
    Oct 2012

    Posted 08 Jul 2008 Link to this post

    I have a combobox that we are using load on demand and no wrap. When I turn on no wrap and the only values that are in the drop down would normally wrap. The values appear are compressed. I know they are being returned, they just don't show up.

    Here is the combobox:
    <telerik:RadComboBox ID="radPeople" CssClass="MyCombo" runat="server" AllowCustomText="True" EnableLoadOnDemand="True" 
                            Width="250px" NoWrap="True"
                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                        </telerik:RadComboBox> 

    Here is a style that I'm trying to set on page load to set overflow: hidden, as this was the issue with the RadGrid when I turned wrapping off.
    .MyCombo .RadComboBoxDropDown_WebBlue .rcbNoWrap {overflowhidden

    Thanks,

    Adam
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 09 Jul 2008 Link to this post

    Hi Adam,

    As far as I understood you don't want to have scrollbars in the combobox. Please, check out the attached project for a solution of this problem.

    In case this is not what you are trying to achieve, please send me  a more detailed explanation of the desired layout and screenshots if possible.  

    Greetings,
    Yana
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adam
    Adam avatar
    177 posts
    Member since:
    Oct 2012

    Posted 09 Jul 2008 Link to this post

    Sorry, I guess I should have explained further. The scrollbars are totally fine and expected. I was using LoadOnDemand and it worked perfectly. However, when an entry was too long, it wrapped, so we enabled NoWrap. Let's say that I entere the letter M into the box and the list has two entries, one of them is shorter and wouldn't wrap, but one of them longer and would have wrapped but no longer does. This works perfectly.

    The problem is if I type in the second letter. If I type the send letter in and it limits it down to the shorter value, then the box displays the entry just fine. However, if the second letter makes the longer entry appear (the one that would have wrapped), the value list becomes about 2px high and nothing is visible. You can still click the scrollbars (even though they are so small there is no use to clicking on them).

    If you need a screenshot, please tell me where to send them to.
  5. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 10 Jul 2008 Link to this post

    Hi Adam,

    I suggest you set the Height property of RadComboBox to at least 40px.
    You can look at the combobox definition below for a reference.

    <telerik:RadComboBox ID="radPeople" CssClass="MyCombo" runat="server" AllowCustomText="True" 
                    EnableLoadOnDemand="True" Width="150px" NoWrap="True" Height="40px" Skin="WebBlue" OnItemsRequested="radPeople_ItemsRequested">  
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </telerik:RadComboBox> 


    Greetings,
    Yana
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top