This demo illustrates how the BindToXML method can be used to populate the TreeList with node information taken from an XML file. The source XML file contains hierarchical information about a set of website pages.
The MVC TreeList can be bound to an XML file with the following data binding methods:
- BindToXML(string fileName);
- BindToXML(string fileName, string xPath);
- BindToXML(string fileName, string xPath, string transformFileName);
In this demo, a column is added to the tree list. This column FieldName property value defines a name of the corresponding data source field.