RadPanelBar for ASP.NET
Search RadPanelBar for ASP.NET
Contents
Introduction
What's New
Licensing
Installation and deployment
DNN
Getting Started
Feature overview
New to Telerik RadPanelBar?
Already using the control
AJAX support
ASP.NET 2.0 features
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
Telerik RadPanelBar client-side
Telerik RadPanelBar server-side
Example scenarios (How to)
Controlling the visual appearance
Defining the Telerik RadPanelBar structure
Custom Attributes
Templates
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 panelbar item hierarchy.
Example
ASPX
Copy Code
<
rad:RadPanelBar
ID
=
"RadPanelBar1"
runat
=
"server"
DataSourceID
=
"ObjectDataSource1">
</
rad
:
RadPanelBar
>
<
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
Code library project on Data Binding
ArrayList