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

row of radCombobox in one line

5 Answers 105 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Adrien
Top achievements
Rank 1
Adrien asked on 22 Feb 2016, 02:08 PM

I would like than the text of a row must just on one line.

Sometimes, the size text are so important and I would like to cut the text after 100px by exemple and don't put on line (by default).

Any ideas to resolve my problem?

5 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 24 Feb 2016, 09:52 AM
Hi Adrien,

You can apply the following custom CSS rules in order to achieve the desired appearance:
.RadComboBoxDropDown .rcbItem,
.RadComboBoxDropDown .rcbHovered,
.RadComboBoxDropDown .rcbDisabled,
.RadComboBoxDropDown .rcbLoading,
.RadComboBoxDropDown .rcbCheckAllItems,
.RadComboBoxDropDown .rcbCheckAllItemsHovered {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

I hope that the above helps you.

Regards,
Veselin Tsvetanov
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Adrien
Top achievements
Rank 1
answered on 24 Feb 2016, 11:18 AM
Nice, It's perfect :)
0
Adrien
Top achievements
Rank 1
answered on 25 Feb 2016, 12:47 PM
It's possible to have the same concept for RadAutoCompleteBox?
0
Veselin Tsvetanov
Telerik team
answered on 26 Feb 2016, 09:35 AM
Hello Adrien,

You could use the same approach for RadAutoCompleteBox:
.RadAutoCompleteBoxPopup .racItem {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

Regards,
Veselin Tsvetanov
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Adrien
Top achievements
Rank 1
answered on 26 Feb 2016, 02:36 PM
Thanks Again :)
Tags
ComboBox
Asked by
Adrien
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Adrien
Top achievements
Rank 1
Share this question
or