select

Menu / WCF Web Service

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7
Hover a menu item to populate its children from the WCF service.

Example Source Code & Description

Instructions
Open in new window
  • This example demonstrates how to populate RadMenu from WCF Web Service. You need to point to an existing web service and method:

    <telerik:RadMenu runat="server" ID="RadMenu1" DataSourceID="LinqDataSource1"
    	DataTextField="Title" DataValueField="CategoryId" >
    	<WebServiceSettings Path="MenuWcfService.svc" Method="LoadData" />
    	<DataBindings>
    		<telerik:RadMenuItemBinding Depth="0" ExpandMode="WebService" />
    	</DataBindings>
    </telerik:RadMenu>
    

    The root nodes are populated from a LinqDataSource:

    Check the source code of the web service for the implementation of the LoadData method.

Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us