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

Reversing Display Order of Items...

1 Answer 209 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 2
Kevin asked on 04 May 2011, 10:06 AM
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>

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 09 May 2011, 06:16 PM
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
Tags
TreeView
Asked by
Kevin
Top achievements
Rank 2
Answers by
Petar Mladenov
Telerik team
Share this question
or