Back to Devexpress

TreeListExtension.BindToXML(String) Method

aspnetmvc-devexpress-dot-web-dot-mvc-dot-treelistextension-dot-bindtoxml-x28-system-dot-string-x29.md

latest1.7 KB
Original Source

TreeListExtension.BindToXML(String) Method

Binds the TreeList to the XML file specified by its name.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public TreeListExtension BindToXML(
    string fileName
)
vb
Public Function BindToXML(
    fileName As String
) As TreeListExtension

Parameters

NameTypeDescription
fileNameString

A string specifying the file name.

|

Returns

TypeDescription
TreeListExtension

An extension object.

|

Remarks

Note

The fileName parameter must refer to a physical file on the server, not a url

csharp
BindToXML(HttpContext.Current.Server.MapPath("~/App_Data/MyDataFile.xml"))
vb
BindToXML(HttpContext.Current.Server.MapPath("~/App_Data/MyDataFile.xml"))

See Also

Tree List

TreeListExtension Class

TreeListExtension Members

DevExpress.Web.Mvc Namespace