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

Rendering of RadAutoCompleteBox

4 Answers 58 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Nessi
Top achievements
Rank 1
Nessi asked on 31 Aug 2015, 07:00 AM

The autocomplete box is rendered in a div element, other controls just in a span. ​If I ​assign a label to a Telerik control, the control is placed right of the label, but the auto complete box is placed underneath (as it's a div, not just a span).

 

Can I somehow change that behavior?

4 Answers, 1 is accepted

Sort by
0
Aneliya Petkova
Telerik team
answered on 31 Aug 2015, 08:59 AM
Hello Nessi,

All RadControls are rendered in a div HTML element. I tested RadAutoCompleteBox with Label and the label is placed correctly on the same line with the control.

Please note that RadAutoCompleteBox has Label property, which you could use to add label. Attached is a sample page. Here is a screenshot showing how the control is displayed at my side.

If this is not helpful, please provide sample runnable project, where we will be able to inspect your exact implementation.

Regards,
Aneliya Petkova
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
Nessi
Top achievements
Rank 1
answered on 31 Aug 2015, 10:38 AM

Hi Aneliya,

 the Label property works, but for design reasons I wanted to use an asp Label using the AssociatedControlID property. That works just fine with several Telerik controls, such as the RadTextBox or the RadComboBox. But the RadAutoCompleteBox just behaves differently.

How can I provide you with a sample project. I can only attach image files.

 

Cheers,

Udo

 

0
Accepted
Aneliya Petkova
Telerik team
answered on 31 Aug 2015, 11:14 AM
Hi Udo,

As this is a forum thread you are not allowed to attach .zip files. As an alternative you could open new support ticket or use one of the sites for free online storage.

Please add the following CSS to you page and let me know if this fixes the issue with the label positioned above the RadAutoCompleteBox control:
div.RadAutoCompleteBox {
    display:inline-block;
}

Regards,
Aneliya Petkova
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
Nessi
Top achievements
Rank 1
answered on 31 Aug 2015, 11:22 AM

Hi!

Yes, that fixed it. Thanks.

Cheers,

Udo

Tags
AutoCompleteBox
Asked by
Nessi
Top achievements
Rank 1
Answers by
Aneliya Petkova
Telerik team
Nessi
Top achievements
Rank 1
Share this question
or