RadMap can use the standard data sources for data binding an ASP.NET control:
- Declarative ASP.NET data sources (SqlDatasource, ObjectDataSource, LinqDataSource, etc.)
- Server-side objects that implement IEnumerable, IDataSource or the IListSource interface.
The Markers and the Layers of Telerik ASP.NET map are data bound separately.
You can use the DataSourceID property of the markers layer when data binding markers declaratively or the
DataSource property when the markers are bound in the code behind.
The data binding of layers is achieved via the LayersDataSourceID and LayersDataSource properties.
The columns of the data source are attached to their corresponding data fields in the markers and layers via the properties
with the structure Data[field name]Field declared in the
RadMap > DataBindings > MarkerBinding and RadMap > DataBindings > LayerBinding properties.
The ItemDataBound event can be used to customize the data bound objects on the server. The MapItemDataBoundEventArgs
argument passed to the handler exposes the created item and the entire data item, to which it is data bound.
You can find more information and examples on data binding a RadMap on the server in the
RadMap - Server-side Data Binding help article
and details about its server-side API in the RadMap Server-side API