Current filter:
                                You should refresh the page.
                                Support Center
                                0

                                This example demonstrates how to display information in a tree from a hierarchical data structure using HierarchicalDataTemplate.

                                • James Gustafson 10.21.2013

                                  Configuration: IDE:Windows Visual Studio 2010 Professional, DevExpress v13.1, OS:Windows 7

                                  I downloaded and ran this example in debug mode. The UI displays correctly, but when I expand all the items (where they expands beyond visible area), I get the following errors in my output console:
                                  System.Windows.Data Error: 40 : BindingExpression path error: 'Progress' property not found on 'object' ''Task' (HashCode=2375986)'. BindingExpression:Path=Row.Progress; DataItem='TreeListRowData' (HashCode=54363863); target element is 'ProgressBar' (Name=''); target property is 'Value' (type 'Double')
                                  ...
                                  System.Windows.Data Error: 40 : BindingExpression path error: 'EndDate' property not found on 'object' ''ProjectStage' (HashCode=51243495)'. BindingExpression:Path=Row.EndDate; DataItem='TreeListRowData' (HashCode=46139827); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
                                  System.Windows.Data Error: 40 : BindingExpression path error: 'State' property not found on 'object' ''ProjectStage' (HashCode=51243495)'. BindingExpression:Path=Row.State; DataItem='TreeListRowData' (HashCode=46139827); target element is 'ComboBoxEdit' (Name=''); target property is 'SelectedItem' (type 'Object')
                                  ...

                                  Also, (Forgive the newbie question -- I have little-to-no .NET, C#, DevEpxress experience):
                                  I have a hierarchical data structure similar to this example. I'd prefer to keep the data bindings/display all in XAML. Is there a way to display the data in a grid view _other_ than a TreeListView -- I read a post somewhere that said you _had_ to use a TreeView, but would like 2nd opinion? eg: Say I want to replace the 'Name' and 'Executor' columns with 'Project', 'Stage', and 'Task'. And instead of expanding the rows to view the data hierarchy details, the next column to the right contained the details. So in this case (which would make no graphical sense) the left-most column would have 'Project: Betaron' and 'Project: Stanton', the next column would have the "Information Gathering, Planning, Design, Development, Testing and Delivery' as sub-rows within the project. The next column would have "Start/end date, completed' etc as sub-rows within the Stage.

                                  I tried using Grid Control Bands but was unsuccessful -- probably a configuration issue on my end. I just wanted to know if this was even possible before i waste too many more cycles on it. Any examples would be greatly appreciated ;)

                                • Hi James,

                                  I see that you've created a separate ticket regarding this issue - Q534797. We will contact you there.

                                  Thanks

                                You must  log in  or  register  to leave comments
                                Show Implementation Details
                                Select file
                                • Data.cs
                                • MainWindow.xaml
                                • ViewModel.cs
                                Select language
                                • C#
                                • VB.NET
                                Select version
                                • v2011 vol 1.7 - v2014 vol 1.6

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners