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

                                    I am using List control to bind data with TreeList Control. List is list of objects and object's structure contains Id and parent iin iint form(also tried references in ID and parent ID) . When I assign datasource to treelist control at first time, then it shows correct hirarchy. but at runtime If again populate source list and assign as datasource to xtratreelist list control, then it doesnot add additional nodes in treelist control.

                                    Initially I was using Datatable instead of List and it was working fine. willl you please guide me on this.

                                    Thank you,

                                    Muhammad

                                You must  log in  or  register  to leave comments

                                2 Solutions

                                Creation Date Rating Importance Sort by
                                0

                                Hi,

                                thanx for replying.

                                treelist.RefreshDataSource(); didnot worked but before binding to new datasource ,

                                I used

                                tvwCallEvent.DataSource = null;

                                tvwCallEvent.DataSource = sourceList;

                                and it works for me.

                                You must  log in  or  register  to leave comments
                                0

                                Hi,
                                Thank you for contacting us.
                                Call the TreeList.RefreshDataSource method to update data displayed within the tree list.
                                Alternatively, use the BindingList instance as TreeList's data source, instead of the List instance.
                                In the attachment, you can find a simple sample that illustrates both these approaches.

                                You must  log in  or  register  to leave comments

                                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