or
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
root
>
<
tools
name
=
"Clipboard"
>
<
tool
name
=
"PasteStrip"
size
=
"large"
/>
<
tool
name
=
"Cut"
shortcut
=
"CTRL+X"
/>
<
tool
name
=
"Copy"
shortcut
=
"CTRL+C"
/>
</
tools
>
<
tools
name
=
"Basic Text"
>
<
tool
name
=
"FontName"
shortcut
=
"CTRL+SHIFT+F"
/>
<
tool
name
=
"RealFontSize"
shortcut
=
"CTRL+SHIFT+P"
width
=
"80px"
/>
<
tool
name
=
"ConvertToLower"
strip
=
"FontDropDowns"
/>
<
tool
name
=
"ConvertToUpper"
strip
=
"FontDropDowns"
/>
<
tool
name
=
"Bold"
strip
=
"FontBasicTools"
shortcut
=
"CTRL+B"
/>
<
tool
name
=
"Italic"
strip
=
"FontBasicTools"
shortcut
=
"CTRL+I"
/>
<
tool
name
=
"Underline"
strip
=
"FontBasicTools"
shortcut
=
"CTRL+U"
/>
<
tool
name
=
"ForeColor"
strip
=
"FontBasicTools"
/>
<
tool
name
=
"BackColor"
strip
=
"FontBasicTools"
/>
<
tool
name
=
"Indent"
strip
=
"Indention"
/>
<
tool
name
=
"Outdent"
strip
=
"Indention"
/>
<
tool
name
=
"JustifyLeft"
strip
=
"Align"
/>
<
tool
name
=
"JustifyCenter"
strip
=
"Align"
/>
<
tool
name
=
"JustifyRight"
strip
=
"Align"
/>
<
tool
name
=
"InsertParagraph"
shortcut
=
"CTRL+M"
strip
=
"other"
/>
<
tool
name
=
"ToggleTableBorder"
strip
=
"other"
/>
</
tools
>
<
tools
name
=
"Include"
>
<
tool
name
=
"LinkManager"
shortcut
=
"CTRL+K"
strip
=
"EditingTools3"
/>
<
tool
name
=
"Unlink"
shortcut
=
"CTRL+SHIFT+K"
strip
=
"EditingTools3"
/>
<
tool
name
=
"InsertUnorderedList"
strip
=
"Lists"
/>
<
tool
name
=
"InsertOrderedList"
strip
=
"Lists"
/>
<
tool
name
=
"InsertDate"
/>
<
tool
name
=
"InsertTime"
/>
<
tool
name
=
"InsertHorizontalRule"
/>
<
tool
name
=
"InsertTable"
/>
<
tool
name
=
"InsertSymbol"
/>
</
tools
>
<
tools
name
=
"Proofing"
>
<
tool
name
=
"AjaxSpellCheck"
size
=
"large"
showtext
=
"false"
/>
</
tools
>
<
tools
name
=
"Help"
>
<
tool
name
=
"Help"
showtext
=
"false"
size
=
"large"
/>
</
tools
>
</
root
>
foreach
(EditorToolGroup toolGroup
in
Editor.Tools)
{
if
(
new
List<
string
> {
"Clipboard"
,
"Basic Text"
,
"Include"
}.Contains(toolGroup.Tag))
{
foreach
(EditorToolBase tool
in
toolGroup.Tools)
{
if
(tool
is
EditorTool)
{
(tool
as
EditorTool).Enabled = isHtmlMail;
}
}
}
}
<
telerik:RadEditor
ID
=
"HTMLEditor"
EditModes
=
"Design,Html"
Height
=
"480px"
Style="min-height: 480px;
min-width: 690px"
runat
=
"server"
Skin
=
"Office2007"
EnableResize
=
"true"
ExternalDialogsPath
=
"~/EditorDialogs"
ContentFilters="MakeUrlsAbsolute,ConvertToXhtml,IECleanAnchors,ConvertCharactersToEntities,FixEnclosingP,
FixUlBoldItalic,IndentHTMLContent,MozEmStrong,RemoveScripts">
<
contextmenus
>
<
telerik:EditorContextMenu
>
<
telerik:EditorTool
Name
=
"Cut"
/>
<
telerik:EditorTool
Name
=
"Copy"
/>
<
telerik:EditorTool
Name
=
"Paste"
/>
<
telerik:EditorTool
Name
=
"PasteFromWordNoFontsNoSizes"
/>
<
telerik:EditorTool
Name
=
"PastePlainText"
Text
=
"Paste as Plain Text"
/>
<
telerik:EditorTool
Name
=
"PasteHtml"
Text
=
"Paste HTML"
/>
<
telerik:EditorTool
Name
=
"SelectAll"
/>
<
telerik:EditorTool
Name
=
"CampaignerInsertImage"
Text
=
"Insert Image..."
/>
<
telerik:EditorTool
Name
=
"LinkManager"
Text
=
"Edit Link..."
ShowIcon
=
"true"
/>
</
telerik:EditorContextMenu
>
<
telerik:EditorContextMenu
TagName
=
"TD"
>
<
telerik:EditorTool
Name
=
"InsertRowAbove"
/>
<
telerik:EditorTool
Name
=
"InsertRowBelow"
/>
<
telerik:EditorTool
Name
=
"DeleteRow"
/>
<
telerik:EditorTool
Name
=
"InsertColumnLeft"
/>
<
telerik:EditorTool
Name
=
"InsertColumnRight"
/>
<
telerik:EditorTool
Name
=
"DeleteColumn"
/>
<
telerik:EditorTool
Name
=
"MergeColumns"
/>
<
telerik:EditorTool
Name
=
"MergeRows"
/>
<
telerik:EditorTool
Name
=
"SplitCell"
/>
<
telerik:EditorTool
Name
=
"SplitCellHorizontal"
/>
<
telerik:EditorTool
Name
=
"DeleteCell"
/>
<
telerik:EditorTool
Name
=
"SetCellProperties"
/>
<
telerik:EditorTool
Name
=
"SetTableProperties"
/>
</
telerik:EditorContextMenu
>
<
telerik:EditorContextMenu
TagName
=
"A"
Enabled
=
"true"
>
<
telerik:EditorTool
Name
=
"LinkManager"
Text
=
"Edit Link..."
/>
<
telerik:EditorTool
Name
=
"Unlink"
/>
</
telerik:EditorContextMenu
>
<
telerik:EditorContextMenu
TagName
=
"IMG"
Enabled
=
"true"
>
<
telerik:EditorTool
Name
=
"Cut"
/>
<
telerik:EditorTool
Name
=
"Copy"
/>
<
telerik:EditorTool
Name
=
"CampaignerInsertImage"
Text
=
"Replace Image..."
/>
<
telerik:EditorTool
Name
=
"CampaignerEditImage"
Text
=
"Edit Image..."
/>
<
telerik:EditorTool
Name
=
"SetImageProperties"
/>
</
telerik:EditorContextMenu
>
</
contextmenus
>
<
modules
>
<
telerik:EditorModule
Name
=
"RadEditorStatistics"
/>
<
telerik:EditorModule
Name
=
"RadEditorDomInspector"
/>
<
telerik:EditorModule
Name
=
"RadEditorNodeInspector"
Enabled
=
"true"
/>
</
modules
>
<
tools
>
<
telerik:EditorToolGroup
>
<
telerik:EditorTool
Name
=
"SaveDesign"
Text
=
"Save "
ShowText
=
"true"
/>
<
telerik:EditorTool
Name
=
"SaveAs"
Text
=
"Save As My Template"
ShowText
=
"false"
ShowIcon
=
"true"
/>
<
telerik:EditorTool
Name
=
"Print"
/>
<
telerik:EditorTool
Name
=
"AjaxSpellCheck"
ShowIcon
=
"true"
Text
=
"Spellchecker"
/>
<
telerik:EditorTool
Name
=
"SelectAll"
/>
<
telerik:EditorTool
Name
=
"FindAndReplace"
ShowIcon
=
"true"
/>
<
telerik:EditorSeparator
Visible
=
"true"
/>
<
telerik:EditorTool
Name
=
"Undo"
ShowIcon
=
"true"
/>
<
telerik:EditorTool
Name
=
"Redo"
ShowIcon
=
"true"
/>
<
telerik:EditorSeparator
Visible
=
"true"
/>
<
telerik:EditorTool
Name
=
"Cut"
/>
<
telerik:EditorTool
Name
=
"Copy"
/>
<
telerik:EditorToolStrip
Name
=
"CampaignerPasteToolStrip"
PopupHeight
=
"150"
>
<
telerik:EditorTool
Name
=
"Paste"
Text
=
"Paste"
/>
<
telerik:EditorTool
Name
=
"PasteFromWordNoFontsNoSizes"
/>
<
telerik:EditorTool
Name
=
"PastePlainText"
Text
=
"Paste as Plain Text"
/>
<
telerik:EditorTool
Name
=
"PasteHtml"
Text
=
"Paste HTML"
/>
</
telerik:EditorToolStrip
>
<
telerik:EditorSeparator
Visible
=
"true"
/>
<
telerik:EditorTool
Name
=
"CampaignerInsertImage"
Text
=
"Insert Image"
/>
<
telerik:EditorTool
Name
=
"CampaignerEditImage"
Text
=
"Edit Image..."
Enabled
=
"false"
/>
<
telerik:EditorTool
Name
=
"LinkManager"
ShowIcon
=
"true"
Text
=
"Insert Link"
/>
<
telerik:EditorTool
Name
=
"Unlink"
ShowIcon
=
"true"
/>
<
telerik:EditorTool
Name
=
"InsertHorizontalRule"
ShowIcon
=
"true"
/>
<
telerik:EditorTool
Name
=
"InsertParagraph"
/>
<
telerik:EditorTool
Name
=
"InsertSymbol"
/>
<
telerik:EditorTool
Name
=
"InsertTable"
/>
<
telerik:EditorSeparator
Visible
=
"true"
/>
<
telerik:EditorTool
Name
=
"ToggleScreenMode"
Text
=
"Full Screen"
/>
<
telerik:EditorTool
Name
=
"ModuleManager"
Text
=
"Show"
ShowText
=
"true"
/>
</
telerik:EditorToolGroup
>
<
telerik:EditorToolGroup
>
<
telerik:EditorTool
Name
=
"FormatBlock"
Text
=
"Format Block"
ShowIcon
=
"true"
/>
<
telerik:EditorTool
Name
=
"FontName"
Text
=
"Font"
/>
<
telerik:EditorTool
Name
=
"RealFontSize"
Text
=
"Size"
/>
<
telerik:EditorTool
Name
=
"Bold"
/>
<
telerik:EditorTool
Name
=
"Italic"
Text
=
"Italic"
/>
<
telerik:EditorTool
Name
=
"Underline"
Text
=
"Underline"
ShowIcon
=
"true"
/>
<
telerik:EditorTool
Name
=
"ForeColor"
ShowIcon
=
"true"
/>
<
telerik:EditorTool
Name
=
"BackColor"
ShowIcon
=
"true"
/>
<
telerik:EditorSeparator
Visible
=
"true"
/>
<
telerik:EditorTool
Name
=
"JustifyLeft"
Text
=
"Left"
/>
<
telerik:EditorTool
Name
=
"JustifyCenter"
Text
=
"Center"
/>
<
telerik:EditorTool
Name
=
"JustifyRight"
Text
=
"Right"
/>
<
telerik:EditorTool
Name
=
"JustifyFull"
Text
=
"Both"
/>
<
telerik:EditorTool
Name
=
"JustifyNone"
Text
=
"None"
/>
<
telerik:EditorSeparator
Visible
=
"true"
/>
<
telerik:EditorTool
Name
=
"InsertOrderedList"
/>
<
telerik:EditorTool
Name
=
"InsertUnorderedList"
/>
<
telerik:EditorTool
Name
=
"Indent"
/>
<
telerik:EditorTool
Name
=
"Outdent"
/>
<
telerik:EditorToolStrip
Name
=
"CampaignerClearToolstrip"
>
<
telerik:EditorTool
Name
=
"ClearHTML"
Text
=
"Clear All"
/>
<
telerik:EditorTool
Name
=
"StripAll"
Text
=
"Clear All Formatting"
/>
<
telerik:EditorTool
Name
=
"StripCss"
Text
=
"Clear Css Formatting"
/>
<
telerik:EditorTool
Name
=
"StripSpan"
Text
=
"Clear Span Elements"
/>
<
telerik:EditorTool
Name
=
"StripWord"
Text
=
"Clear Word Formatting"
/>
</
telerik:EditorToolStrip
>
</
telerik:EditorToolGroup
>
</
tools
>
<
content
></
content
>
</
telerik:RadEditor
>
<
telerik:RadScriptBlock
ID
=
"DemoScriptBlock"
runat
=
"server"
>
<
script
type
=
"text/javascript"
language
=
"javascript"
>
function OnClientItemExpand(sender, args) {
$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(args.get_item().get_value());
}
function OnButtonClick(sender, args) {
$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(sender.get_text());
}
</
script
>
</
telerik:RadScriptBlock
>
<
telerik:RadAjaxManagerProxy
ID
=
"PanelbarDemoAjaxmanagerProxy"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"uxProfileList"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"uxProfileList"
/>
</
UpdatedControls
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"DemoLabel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"DemoButton"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"DemoButton"
/>
</
UpdatedControls
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"DemoLabel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
telerik:RadPanelBar
ID
=
"uxProfileList"
OnClientItemClicked
=
"OnClientItemExpand"
OnClientItemExpand
=
"OnClientItemExpand"
ExpandMode
=
"FullExpandedItem"
Width
=
"100%"
runat
=
"server"
>
<
Items
>
<
telerik:RadPanelItem
runat
=
"server"
Text
=
"Personal Info"
Value
=
"PersonalInfo"
Font-Bold
=
"true"
>
</
telerik:RadPanelItem
>
<
telerik:RadPanelItem
runat
=
"server"
Text
=
"Profile Info"
Value
=
"ProfileInfo"
Font-Bold
=
"true"
>
</
telerik:RadPanelItem
>
<
telerik:RadPanelItem
runat
=
"server"
Text
=
"Education"
Value
=
"Education"
Font-Bold
=
"true"
>
</
telerik:RadPanelItem
>
<
telerik:RadPanelItem
runat
=
"server"
Text
=
"WorkExperience"
Value
=
"WorkExperience"
Font-Bold
=
"true"
>
</
telerik:RadPanelItem
>
</
Items
>
</
telerik:RadPanelBar
>
<
asp:Label
ID
=
"DemoLabel"
Text
=
"Demo Label"
runat
=
"server"
></
asp:Label
>
<
telerik:RadButton
ID
=
"DemoButton"
Text
=
"Demo Button"
OnClientClicked
=
"OnButtonClick"
runat
=
"server"
>
</
telerik:RadButton
>
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
DemoLabel.Text = Request["__EVENTARGUMENT"].ToString();
}