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

Values are compressed down with NoWrap/LoadOnDemand

3 Answers 77 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 08 Jul 2008, 09:06 PM
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

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 09 Jul 2008, 08:30 AM
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
0
Adam
Top achievements
Rank 1
answered on 09 Jul 2008, 01:13 PM
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.
0
Accepted
Yana
Telerik team
answered on 10 Jul 2008, 08:15 AM
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
Tags
ComboBox
Asked by
Adam
Top achievements
Rank 1
Answers by
Yana
Telerik team
Adam
Top achievements
Rank 1
Share this question
or