RadListBox & Horizontal Orientation

2 posts, 0 answers
  1. Scott
    Scott avatar
    4 posts
    Member since:
    Jan 2012

    Posted 23 Mar 2012 Link to this post

    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?
  2. Georgi
    Admin
    Georgi avatar
    349 posts

    Posted 26 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
Back to Top