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

How to set up treelistview in silvelright

7 Answers 76 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
paul orsillo
Top achievements
Rank 1
paul orsillo asked on 15 Sep 2010, 07:28 PM
Can anyone point me to an example of a hierarchical RadTreeListView using the silverlight RadControls - q2 2010 sp1 distribution?

Not something based on the quickstart assembly,  just the normal binaries.

Every example I've found locates several necessary controls in a different place - apparently these dlls are different from q2.

I have found the RadTreeListView - apparently now in Navigation. But I still cannot locate which namespaces contain the RadTreeListView.ChildTableDefinitions or the TreeListViewTableDefinition.

Thank you,
Paul

7 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 15 Sep 2010, 07:33 PM
Hello paul orsillo,

 RadTreeListView, as well as all of its satellite types (such as TreeListViewTableDefinition), are located in the Telerik.Windows.Controls.GridView assembly and should be accessible from the xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" namespace in XAML. Please let me know if you would like me to prepare a very simple sample project for you.

All the best,
Yavor Georgiev
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
0
paul orsillo
Top achievements
Rank 1
answered on 15 Sep 2010, 08:01 PM
Thank you for the response. That is what I thought but every related line of this xaml throws "not found" errors:

<UserControl x:Class="RadControlsSilverlightApp2.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <Grid x:Name="LayoutRoot">
        <telerik:RadTreeListView x:Name="RadTreeListView1"
                                 ItemsSource="{StaticResource TreeListSource}">
            <telerik:RadTreeListView..ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}" />
                </telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:RadTreeListView.Columns>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding BlocksNotCovered}" Header="Not Covered (Blocks)" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Converter={StaticResource RelativeBlocksValueConverter1}, ConverterParameter=0}"
                                            Header="Not Covered (%)" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding BlocksCovered}" Header="Covered (Blocks)" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Converter={StaticResource RelativeBlocksValueConverter1}, ConverterParameter=1}"
                                            Header="Covered (%)" />
            </telerik:RadTreeListView.Columns>
        </telerik:RadTreeListView>
    </Grid>
</UserControl>

My project has reference for Telerik.windows.controls,Telerik.windows.controls.GridView,Telerik.windows.controls.navigation
all of which reference this folder location:
C:\Program Files\Telerik\RadControls for Silverlight Q2 2010 SP1\Binaries\Silverlight\
0
paul orsillo
Top achievements
Rank 1
answered on 15 Sep 2010, 08:38 PM
Found it. The project template was set for Silverlight 3 not silverlight 4.

Thank you Yavor for your help.
0
paul orsillo
Top achievements
Rank 1
answered on 15 Sep 2010, 08:52 PM
Still looking for
RadTreeListView..ChildTableDefinitions
TreeListViewTableDefinition

Also RadTreeListView no longer exposes these properties:
AutoGenerateColumns                                
IsReadOnly

I copied the code from the demo source
0
Yavor Georgiev
Telerik team
answered on 15 Sep 2010, 10:29 PM
Hello paul orsillo,

 You don't need to reference Telerik.Windows.Controls.Navigation for RadTreeListView. You do need, however, Telerik.Windows.Controls.Input and Telerik.Windows.Data.

Regards,
Yavor Georgiev
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
0
DOCS
Top achievements
Rank 1
answered on 16 Sep 2010, 07:17 AM
Please update your "Getting Started" documentation to reflect these points. Nowhere does it suggest that the example code is only valid for Silverlight 4.

I have been working for several hours trying to get this code to work as we only have Silverlight 3. Since the latest release supports either of these versions of Silverlight why did you not mention this?
0
Veselin Vasilev
Telerik team
answered on 16 Sep 2010, 09:40 AM
Hi Sandy,

We apologize for the omission. We will put a note on each new control we added in the last Q.

All the best,
Veselin Vasilev
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
TreeListView
Asked by
paul orsillo
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
paul orsillo
Top achievements
Rank 1
DOCS
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or