By default, the C1Navigationlist.LoadOnDemand property is set to True, meaning that the C1NavigationList's content (for example, subitems of the list) loads on an as-needed basis. This is helpful when you have a lot of content on the page and want to keep initial load times to a minimum, but there may be situations where you want to render all of the data to the client upon page load. In this topic, you will learn how to disable LoadOnDemand in Design view, in Source view, and in code. 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.
In Design View
Complete the following steps:
1. Right-click the C1Navigationlist control to open its context menu and then select Properties from the list.
The Properties window opens with C1NavigationList's properties in focus.
2. Locate the LoadOnDemand property, click its drop-down arrow, and select False from the list.
In Source View
To disable LoadOnDemand, add LoadOnDemand="False" to the <cc1:C1NavigationList> tag so that the XHTML markup resembles the following:
<cc1:C1NavigationList ID="C1NavigationList3" runat="server" LoadOnDemand="False">
</cc1:C1NavigationList>
In Code
Complete the following steps:
1. Import the following namespace into your project:
Imports C1.Web.iPhone.C1NavigationList
•C#
using C1.Web.iPhone.C1NavigationList;
2. Set the LoadOnDemand property to True by adding the following code to the Page_Load event:
C1NavigationList1.LoadOnDemand = False
•C#
C1NavigationList1.LoadOnDemand = false;
3. Save the project and open it in a Studio for iPhone-compatible browser to execute the program.