or
<script type=
"text/javascript"
language=
"javascript"
>
// Prevents pasting into RadEditor
// from RadEditor menu and Context menu
function
OnClientCommandExecuting(editor, args) {
var
commandName = args.get_commandName();
if
(commandName ==
"PasteFromWord"
|| commandName ==
"PasteFromWordNoFontsNoSizes"
|| commandName ==
"PastePlainText"
|| commandName ==
"PasteAsHtml"
|| commandName ==
"Paste"
) {
args.set_cancel(
true
);
}
//alert(commandName);
}
// Prevents pasting into RadEditor
// by pressing Ctrl + V
function
OnClientLoad(editor) {
editor.attachEventHandler(
"onkeydown"
,
function
(e) {
if
(e.ctrlKey && e.keyCode == 86) {
if
(document.all) {
e.cancelbubble =
true
;
e.returnvalue =
false
;
return
false
;
}
else
{
e.preventdefault();
return
false
;
}
}
});
// Prevents Firefox from loading the context menu.
editor.attachEventHandler(
"oncontextmenu"
,
function
(e) {
if
(e.preventDefault) e.preventDefault();
if
(e.stopPropagation) e.stopPropagation();
return
false
;
});
}
</script>
<
telerik:RadTreeView
ID
=
"RadTreeView1"
runat
=
"server"
CheckBoxes
=
"True"
MultipleSelect
=
"True"
EnableViewState
=
"true"
ShowLineImages
=
"False"
EnableEmbeddedSkins
=
"False"
Skin
=
"tree_2"
OnNodeClick
=
"RadTreeView1_NodeClick"
OnNodeDataBound
=
"RadTreeView1_NodeDataBound"
>
<
NodeTemplate
>
<
small
>
<
asp:Label
ID
=
"lblnodeText"
Text='<%#Eval("Title") %>' runat="server" /><
asp:Label
ID
=
"lblCatId"
Text='<%#Eval("Id") %>' runat="server" Visible="false"></
asp:Label
><
asp:Label
ID
=
"lblisCustomer"
Text='<%#Eval("isCustomer") %>' runat="server" Visible="false"></
asp:Label
><
asp:Label
ID
=
"Description"
runat
=
"server"
Text='<%#Eval("description") %>' Visible="false" /><
asp:HiddenField
ID
=
"DescriptionVisible"
runat
=
"server"
Value='<%#Eval("descriptionVisible") %>' />
</
small
>
<
small
><
a
href
=
"javascript:Popup_Window('category_detail','<%# Eval("
id") %>')" style="text-decoration: none;">
<
span
style
=
"color: #BBBBBB"
>e</
span
></
a
></
small
></
NodeTemplate
>
</
telerik:RadTreeView
>