Binding C1NavigationList to a Site Map Data Source

In this topic, you will learn how to bind the C1NavigationList control to a site map data source. This topic assumes that you have created an AJAX-enabled ASP.NET project that contains a ScriptManager control (see Creating an AJAX-Enabled ASP.NET Project) and a C1NavigationList control.

Complete the following steps:

1.   Click the Design tab to enter Design view.

2.   In Solution Explorer, right-click the project to open its context menu and select Add New Item.

      The Add New Item dialog box appears.

3.   Select SiteMap from the templates list and click OK to add the site map file to your project. 

4.   Replace the markup in the site map file with the following markup:

      SiteMap Markup

5.   Return to the .aspx page and click the Design tab to enter Design view.

6.   Click C1NavigationList's smart tag () to open the C1NavigationList Tasks menu.

7.   Click the Choose Data Source drop-down arrow and select New data source.

 

 

      The Data Source Configuration Wizard dialog box opens.

8.   Select Site Map and then click OK to close the Data Source Configuration Wizard dialog box.

9.   Save the project and open it in a Studio for iPhone-compatible browser. Observe that the site map has populated the C1NavigationList control's item list.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.