How to set up treelistview in silvelright

8 posts, 0 answers
  1. paul orsillo
    paul orsillo avatar
    31 posts
    Member since:
    Jan 2010

    Posted 15 Sep 2010 Link to this post

    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
  2. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 15 Sep 2010 Link to this post

    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
  3. DevCraft banner
  4. paul orsillo
    paul orsillo avatar
    31 posts
    Member since:
    Jan 2010

    Posted 15 Sep 2010 Link to this post

    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\
  5. paul orsillo
    paul orsillo avatar
    31 posts
    Member since:
    Jan 2010

    Posted 15 Sep 2010 Link to this post

    Found it. The project template was set for Silverlight 3 not silverlight 4.

    Thank you Yavor for your help.
  6. paul orsillo
    paul orsillo avatar
    31 posts
    Member since:
    Jan 2010

    Posted 15 Sep 2010 Link to this post

    Still looking for
    RadTreeListView..ChildTableDefinitions
    TreeListViewTableDefinition

    Also RadTreeListView no longer exposes these properties:
    AutoGenerateColumns                                
    IsReadOnly

    I copied the code from the demo source
  7. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 15 Sep 2010 Link to this post

    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
  8. DOCS
    DOCS avatar
    7 posts
    Member since:
    Aug 2010

    Posted 16 Sep 2010 Link to this post

    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?
  9. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 16 Sep 2010 Link to this post

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