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

RadListBox & Horizontal Orientation

1 Answer 456 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Scott
Top achievements
Rank 1
Scott asked on 23 Mar 2012, 11:52 PM
Greetings Telerik - 

I'm having trouble getting a horizontal scrollbar to appear in a horizontal list box. This works fine with the standard list box, but not with the Telerik one. Here is the standard listbox.

<ListBox Width="900" Grid.Row="1" ItemsSource="{Binding Tiles}" Background="Transparent" SelectedItem="{Binding SelectedTile, Mode=TwoWay}">
    <ListBox.ItemTemplate>
        <DataTemplate>
            <helpers:DataTemplateSelector2 Content="{Binding}" DataContext="{Binding}"
                           GridView="{StaticResource GridView}"              
                           ChartView="{StaticResource ChartView}"
                            Height="175" Width="200"/>
        </DataTemplate>
    </ListBox.ItemTemplate>
    <ListBox.ItemsPanel>
        <ItemsPanelTemplate>
            <VirtualizingStackPanel Orientation="Horizontal"/>
        </ItemsPanelTemplate>
    </ListBox.ItemsPanel>
</ListBox>

I've simply replaced the ListBox with telerik.RadListBox

<telerik:RadListBox Width="900" Grid.Row="1" ItemsSource="{Binding Tiles}" Background="Transparent" SelectedItem="{Binding SelectedTile, Mode=TwoWay}">
    <telerik:RadListBox.ItemTemplate>
        <DataTemplate>
            <helpers:DataTemplateSelector2 Content="{Binding}" DataContext="{Binding}"
                           GridView="{StaticResource GridView}"              
                           ChartView="{StaticResource ChartView}"
                            Height="175" Width="200"/>
        </DataTemplate>
    </telerik:RadListBox.ItemTemplate>
    <telerik:RadListBox.ItemsPanel>
        <ItemsPanelTemplate>
            <VirtualizingStackPanel Orientation="Horizontal"/>
        </ItemsPanelTemplate>
    </telerik:RadListBox.ItemsPanel>
</telerik:RadListBox>

Any thoughts?

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 26 Mar 2012, 02:32 PM
Hi Scott,

We are aware of a similar issue.The ListBox is still in beta version so we are working on it. PITS item you can find here. You can vote and track the progress of fixing it.

Kind regards,
Georgi
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ListBox
Asked by
Scott
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or