RadMenu for ASP.NET
Search RadMenu for ASP.NET
Contents
At a glance
How RadMenu compares to ASP.NET Menu
How RadMenu compares to ASP.NET menu
What's new
Licensing
Installation and deployment
DNN
Feature overview
Getting Started
New to Telerik RadMenu?
Already using the control
AJAX support
Templates
Context Menu
Custom Attributes
ASP.NET 2.0 features
Defining the Telerik RadMenu structure
Data Binding
Overview and types of data sources
DataTable, DataSet or DataView
Access database and OleDbDataAdapter
SQL database and SqlDataAdapter
SqlDataSource or AccessDataSource
SiteMapDataSource
XmlDataSource
ObjectDataSource
ArrayList
Append databound items
Controlling the visual appearance
Example scenarios (How to)
Telerik RadMenu client-side
Telerik RadMenu server-side
Troubleshooting
API Reference
Get more help
PID412 ; RID7VID0
ObjectDataSource
Send comments
on this topic.
See Also
Language Filter: All
Language Filter: Multiple
Language Filter: Visual Basic .NET
Language Filter: C#
Data Binding > ObjectDataSource
Visual Basic .NET
C#
Glossary Item Box
When data-bound to ObjectDataSource, Telerik RadMenu
cannot
create menu item hierarchy.
Example
ASPX
Copy Code
<
rad:RadMenu
ID
=
"RadMenu1"
runat
=
"server"
DataSourceID
=
"ObjectDataSource1">
</
rad
:
RadMenu
>
<
asp:ObjectDataSource
ID
=
"ObjectDataSource1"
Runat
=
"server"
TypeName
=
"NodesArray"
SelectMethod
=
"GetNodes"/>
NodesArray.CS
Copy Code
using
System;
using
System.Collections;
using
System.Data;
using
System.IO;
public
class
NodesArray
{
public
NodesArray() {}
public
static
ArrayList GetNodes()
{
ArrayList nodesList =
new
ArrayList();
nodesList.Add(
"One"
);
nodesList.Add(
"Two"
);
nodesList.Add(
"Three"
);
return
nodesList;
}
}
NodesArray.VB
Copy Code
Imports
System
Imports
System.Collections
Imports
System.Data
Imports
System.IO
Public
Class
NodesArray
Public
Sub
New
()
End
Sub
'New
Public
Shared
Function
GetNodes()
As
ArrayList
Dim
nodesList
As
New
ArrayList()
nodesList.Add(
"One"
)
nodesList.Add(
"Two"
)
nodesList.Add(
"Three"
)
Return
nodesList
End
Function
'GetNodes
End
Class
'NodesArray
See Also
ArrayList
Code library project on Data Binding