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

Rad ListBox Alignment

5 Answers 202 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
brian
Top achievements
Rank 1
brian asked on 16 Sep 2010, 05:51 AM
Is there a way to align the list item horizontally?

Thanks

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Sep 2010, 12:25 PM
Hello Brian,

You can add the following css in your page to allign all listbox items in Horizontal ditection.

CSS:
<style type="text/css">
        .rlbItem
        {
            float:left !important;
        }
        .rlbGroup, .RadListBox
        {
            width:auto !important;
        }
</style>

Thanks
Princy.
0
brian
Top achievements
Rank 1
answered on 16 Sep 2010, 03:18 PM
Thanks for your response. We tried but doesn't work. Could you provide a sample?

Thanks again.
0
Princy
Top achievements
Rank 2
answered on 17 Sep 2010, 08:34 AM
Hello Brian,


Here is the code that I tried.

Mark-up:
<telerik:RadListBox Skin="Outlook" ID="RadListBox1" runat="server">
    <ButtonSettings TransferButtons="All"></ButtonSettings>
    <Items>
        <telerik:RadListBoxItem runat="server" Text="Item1" />
        <telerik:RadListBoxItem runat="server" Text="Item2" />
        <telerik:RadListBoxItem runat="server" Text="Item3" />
    </Items>
</telerik:RadListBox>

Style:
<style type="text/css">
    .rlbItem
    {
        float: left !important;
    }
    .rlbGroup, .RadListBox
    {
        width: auto !important;
    }
</style>

Here I found the forum link which discussed similar scenario: How to allign items in horizontal direction inside listbox

Could you provide the version of the control that you are trying, if this does not help?
Is it happening for any specific browser?


Thanks,
Princy.
0
vivek
Top achievements
Rank 1
answered on 09 Nov 2010, 10:15 AM
Hi Princy,

I am populating data in RadListBox at runtime. Problem is the data into the RadListbox ia not left aligned. Could you please help me to align my data from the left. Currently it is center aligned. Is there any property to set. Please provide me sample.

Thanx in advance
Vivek
0
Yana
Telerik team
answered on 12 Nov 2010, 10:12 AM
Hello vivek,

It seems that some styles on your pages overwrite RadListBox's style. Please send us a live url where the issue can be observed.

Greetings,
Yana
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
ListBox
Asked by
brian
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
brian
Top achievements
Rank 1
vivek
Top achievements
Rank 1
Yana
Telerik team
Share this question
or