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

Binding to a Data Source

This tutorial will show how to bind RadMenu to an AccessDataSource:

  1. Drag a RadMenu component from the toolbox onto your Web page. The RadMenu Smart Tag should appear automatically:RadMenu Smart Tag

  2. In the RadMenu Smart Tag, use the Skin drop-down to change the skin for the RadMenu to "Outlook":RadMenu Choose Skin

  3. Still in the Smart Tag, open the Choose Data Source drop-down and select New Data Source. RadMenu New DataSource

  4. The Data Source Configuration Wizard appears. In the Select a DataSource Type screen, specify an AccessDataSource and click OK.Choose a DataSource Type

  5. In the Choose a Database screen, click the Browse button, and select a data file. Then choose Next to continue:Choose a DataSource

  6. In the Configure the Select Statement screen, choose Specify columns from a table or view, and select the columns for the RadMenuItem ID, parent RadMenuItem ID, and RadMenuItem Text properties. Then choose Next to continue: Configure Select

  7. The data should have a structure something like the following: RadMenu Data Structure

  8. Click the Finish button to exit the Wizard.

  9. In the Properties pane for the RadMenu component, set the DataFieldId, DataFieldParentId and DataTextField properties by selecting the appropriate fields from the drop-down list:! RadMenu Data Fields

  10. Run the application. The final result should look like the following:! DataBound RadMenu

See Also

In this article