TreeViewExtension.BindToSiteMap(String, Boolean) Method
In This Article
Binds the TreeView to a sitemap file specified by its name, and specifies whether the starting node should be displayed.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public TreeViewExtension BindToSiteMap(
string fileName,
bool showStartingNode
)
#Parameters
Name | Type | Description |
---|---|---|
file |
String | A string specifying the file name. |
show |
Boolean | true if the starting node should be displayed; otherwise, false. |
#Returns
Type | Description |
---|---|
Tree |
An extension object. |
See Also