RadToolBar for ASP.NET

RadToolbar Send comments on this topic.
ContentFile Property
See Also  Example
Telerik.WebControls Namespace > RadToolbar Class : ContentFile Property


The location (path + filename) of the XML content file used to populate the menu.   

 

Namespace: Telerik.WebControls
Assembly: RadToolbar (in RadToolbar.dll)

Syntax

Visual Basic (Declaration) 
Public Property ContentFile As String
Visual Basic (Usage)Copy Code
Dim instance As RadToolbar
Dim value As String
 
instance.ContentFile = value
 
value = instance.ContentFile
C# 
public string ContentFile {get; set;}

Return Value

Default: string.Empty

Example

This is an example content file.
C#Copy Code
<?xml version="1.0" encoding="utf-8" ?>
<radToolbar>
   <Button ToolTip=
"New Document" CommandName="new" AutoPostBack="False" ButtonImage="new.gif" DisplayType="ImageOnly"  />
   <Button ToolTip=
"Open Document" CommandName="Open" AutoPostBack="False" ButtonImage="Open.gif" DisplayType="ImageOnly" />
   <Button ToolTip=
"Save Document" CommandName="Save" AutoPostBack="False" ButtonImage="Save.gif" DisplayType="ImageOnly" />
   <Separator />
   <ToggleButton CommandName=
"toggle" AutoPostBack="False" DisplayType="TextOnly" Enabled="True" Width="90px" Toggled="True" ButtonText="toggle button" Visible="True" />
</radToolbar>
    

Remarks

RadToolbarButton class is serilized to a <Button> element.

RadToolbarToggleButton is serialized to a <ToggleButton> element.

Separators are serialized as <Separator>.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also