# Remote Binding

Develop powerful and lightweight web applications using ASP.NET MVC controls. Learn more about the ComponentOne MVC controls in ASP.NET MVC documentation.

## Content



The TreeView control allows you to retrieve data directly using **JSONResult** object. This specifies remote data URLs, which include the server, table and columns. The arrays returned are used as data sources for CollectionView objects. In tag helpers, [LoadActionURL](/componentone/api/mvc/online-mvc/dotnet-framework-api/C1.Web.Mvc/C1.Web.Mvc.TreeView.LoadActionUrl.html) property in TreeView is used to bind it to a collection by passing an action URL method to carry out a specific operation. Similarly, in HTML helpers, **Bind** property is used to bind to a collection.

This topic demonstrates how to retrieve data from an existing data source remotely. This is useful for developing data-intensive applications and scenarios for representing data as dashboards.

The below example code uses **Property** model added in the [QuickStart](/componentone/docs/mvc/online-mvc/workwithcontrols/TreeView/TreeViewQuickStart) section. The following image shows how the TreeView control is displayed after making the C1JSON Request to fetch data from the model.<br />

![](https://cdn.mescius.io/document-site-files/images/2b3ac322-100e-4637-958d-fb40dcda3f44/images/quickstarttreeview.png)

#### In Code

**RemoteBindController.cs**

```csharp
public class TreeViewController : Controller
    {
        // GET: TreeView
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult RemoteLoading_LoadAction()
        {
            return Json(Property.GetData(url));
        }
    }
```

**RemoteBind.cshtml**

```razor
@(Html.C1().TreeView()
    .Bind(Url.Action("RemoteLoading_LoadAction"))
    .DisplayMemberPath("Header")
    .ChildItemsPath("Items"))
```

## See Also

[Key Features](/componentone/docs/mvc/online-mvc/workwithcontrols/TreeView/TreeViewKeyFeatures)

**Reference**

[CollectionViewHelper Class](/componentone/api/mvc/online-mvc/dotnet-framework-api/C1.Web.Mvc/C1.Web.Mvc.CollectionViewHelper.html)

[TreeView Class](/componentone/api/mvc/online-mvc/dotnet-framework-api/C1.Web.Mvc/C1.Web.Mvc.TreeView.html)