select

Menu / LinqDataSource

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

Example Source Code & Description

Instructions
Open in new window
  • This example shows how to codelessly bind RadMenu to LinqDataSource. Since the LinqDataSource is not hierarchical by nature you need to set the DataFieldID and DataFieldParentID properties:

    <telerik:RadMenu runat="server" ID="RadMenu1" 
        DataSourceID="LinqDataSource1" DataTextField="Text" 
        DataFieldID="id" DataFieldParentID="parentId" >
    </telerik:RadMenu>
    <asp:LinqDataSource runat="server" ID="LinqDataSource1" 
        ContextTypeName="LinqToSql.TelerikSamplesDataContext"
        TableName="Links">
    </asp:LinqDataSource>
    
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