Databinding of r.a.d.navigational controls - menu, panelbar, tabstrip and treeview

Thread is closed for posting
2 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 27 Feb 2007 Link to this post

    Requirements

    r.a.d.controls version

    r.a.d.menu 4.2, r.a.d.panelbar 4.1,
    r.a.d.tabstip 3.4, r.a.d.treeview 6.1

    .NET version

    2.0

    Visual Studio version

    2005

    programming language

    C#, VB.NET

    browser support

    all browsers supported by r.a.d.controls


     
    PROJECT DESCRIPTION


    A working application demonstration databinding of navigational controls to various Data Sources:

    • AccessDataSource
    • SqlDataSource
    • SiteMapDataSource
    • XmlDataSource
    • ObjectDataSource
    • ArrayList
    • Dynamically Created Table
    • Sql Table
    • Access Table

    ItemDataBound and DataBound events are used to set additional properties or overwrite already set properties.

    This project is a demonstration of the flexibility and prowess of navigational controls with respect to Data Binding.

  2. 97AD96E1-EF11-4E30-BCDB-005E455D92B6
    97AD96E1-EF11-4E30-BCDB-005E455D92B6 avatar
    14 posts
    Member since:
    Jan 2006

    Posted 30 Aug 2007 Link to this post

    As of Q1 2007 SP2, Data Binding to XmlDataSource requires the following approach:

    C#:
    XmlElement element = (XmlElement)e.Item.DataItem;  
    e.Item.ToolTip = "Read more about " + element.Attributes["Text"].Value; 

    VB:
    Dim element As XmlElement = DirectCast(e.Item.DataItem, XmlElement)  
    e.Item.ToolTip = "Read more about " + element.Attributes("Text").Value 
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.