Change Flow of the list

2 posts, 0 answers
  1. Manfred
    Manfred avatar
    53 posts
    Member since:
    Jan 2011

    Posted 14 Mar 2014 Link to this post

    Hi there,

    just one question:
    is it possible, to change the flow of the list?
    My List at the moment looks like screenshot one and I want to see it like image two.
    The Items of the ListBox are created with an ItemTemplateSelector from a list in a list, the complete item shown in the images are also items of a listbox, so i have a listbox in a listboxitem :)


    Is this possible with the RadListBox or which Control can provide this behaviour?


    Best Regards
    Manfred
  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 17 Mar 2014 Link to this post

    Hi Manfred,

    You could easily achieve the desired scenario by setting different ItemsPanel of the ListBox. For example you could use RadWrapPanel as shown below:

    <telerik:RadListBox ItemsSource="{Binding ItemsSource}">
        <telerik:RadListBox.ItemsPanel>
            <ItemsPanelTemplate>
                <telerik:RadWrapPanel Orientation="Horizontal" />
            </ItemsPanelTemplate>
        </telerik:RadListBox.ItemsPanel>
    </telerik:RadListBox>

    Hope this helps.

    Regards,
    Kalin
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  3. DevCraft banner
Back to Top