Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
412
Loading TreeView from XMLDocument
posted

This obviously doesn't work but it's what I'm going for...I don't even know where to start.  Could someone give me a little pseudo code to start with?

 

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim _serviceXML As New XmlDocument
        Dim xServices As XmlNodeList
        Dim xpath As String

        _serviceXML.Load("c:\servicesToTree")
        xpath = String.Format("/AccountInfo/Location[@LocationID={0}]/Product[@ProductLineID = '100002']/Configuration/Service", 550061)
        xServices = _serviceXML.SelectNodes(xpath)

        UltraWebTree1.DataSource = xServices
        UltraWebTree1.DataBind()
    End Sub

Parents
No Data
Reply
  • 28464
    posted

    Hello,

     The key here is to use the asp:XmlDataSource control that ships in ASP.NET 2.x+. If you issue a search on forums for "XmlDataSource" and "UltraWebTree" you will find some code samples for that, for example this one:

    http://forums.infragistics.com/forums/p/7653/31083.aspx#31083

    Hopefully this can help you get started.

     

Children
No Data