New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core DropDownTree Remote Data Binding

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
remote_data_binding.cshtml
Remote_Data_BindingController.cs
EmployeeViewModel.cs
Remote_Data_Binding_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The Telerik UI for ASP.NET Core DropDownTree supports remote data binding and you can display remote data in the component.

To implement the remote data-binding feature, you need to specify a remote endpoint or web service returning data in a JSON or JSONP format, and utilize the Telerik UI for ASP.NET Core DataSource as a mediator between the DropDownTree and the underlying data.

To make the connection to the remote endpoint and process the data properly, the data source requires information about the web service URL.

This example shows how to configure the DropDownTree for remote data binding by adding the DataSource component in the helper definition. By default, the DropDownTree sends to the remote endpoint the id of the expanded node as a query string parameter. In this way, you can filter the data collection in the Action method based on the received id parameter, and return the appropriate child nodes to the DataSource of the component.

Additional Apps

This DropDownTree example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources