[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.TreeViewBuilder.Bind

Bind Method

Bind(IEnumerable<object>, string)

Loads the nodes from the specified data.

Declaration
public TreeViewBuilder Bind(IEnumerable<object> data, string lazyLoadActionUrl = null)
Parameters
Type Name Description
IEnumerable<object> data

The nodes data.

string lazyLoadActionUrl

URL of the load action for lazy nodes. It is optional. When it is provided, the TreeView control works in lazy loading mode. Otherwise, all the nodes will be loaded from data.

Returns
Type Description
TreeViewBuilder

A TreeViewBuilder.

Bind(string, string)

Loads the nodes from the specified url.

Declaration
public TreeViewBuilder Bind(string loadActionUrl, string lazyLoadActionUrl = null)
Parameters
Type Name Description
string loadActionUrl

URL of the load action.

string lazyLoadActionUrl

URL of the load action for lazy nodes. It is optional. When it is provided, the TreeView control works in lazy loading mode. Otherwise, all the nodes will be loaded from data.

Returns
Type Description
TreeViewBuilder

A TreeViewBuilder.