Reversing Display Order of Items...

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    83 posts
    Member since:
    Sep 2008

    Posted 04 May 2011 Link to this post

    hey guys,

    This one might be pretty simple, but i cant for the life of me work out how to impliment this.

    I have a RadTreeView (defined below)

    What i would like to do with this is Reverse the order of it, in this example i have 0 - 12 possible controls within my TreeView,

    so if i have 4 controls,

    1
    2
    3
    4
    (is how they are being presented just now)

    i want them to display top heavy, so

    4
    3
    2
    1

    Is this possible? but only on the display, i still want them ordered 1 - 4 in the collection in the code behind? I really hope this is possible!! :)

    <StackPanel VerticalAlignment="Top">
                                            <telerikNavigation:RadTreeView HorizontalContentAlignment="Stretch" x:Name="uiActionersList" IsDragDropEnabled="True" DragEnded="uiActionersList_DragEnded"
                                                    HorizontalAlignment="Stretch" SelectionMode="Multiple" ScrollViewer.HorizontalScrollBarVisibility="Hidden" dragDrop:RadDragAndDropManager.AllowDrop="True"
                                                                                   IsDragPreviewEnabled="True"  IsDragTooltipEnabled="True" SelectionChanged="uiActionersList_SelectionChanged"
                                                    ItemsSource="{Binding ActionerModelViewCollection, NotifyOnSourceUpdated=True, NotifyOnTargetUpdated=True,Mode=TwoWay}" Margin="0,0,-5,0" >
                                                <telerikNavigation:RadTreeView.ItemTemplate>
                                                    <DataTemplate>
                                                        <pmControls:ActionerControl x:Name="ItemsHost" />
                                                    </DataTemplate>
                                                </telerikNavigation:RadTreeView.ItemTemplate>
                                            </telerikNavigation:RadTreeView>
                                        </StackPanel>

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 09 May 2011 Link to this post

    Hi kevin,

    You can try to use CollectionListView. Please examine the attached project and let us know if it gives you a good starting point.

    All the best,
    Petar Mladenov
    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top