For several hours this after I was getting an error in IE8. It was the infamous red screen of death proclaiming "this website has been reported as unsafe".
The cause of this error was the telerik:RadTreeView tag. As soon as I removed the tag, the error went away. Did anyone else notice this behaviour? Code below.
<script type="text/javascript">
//<!--
function onClientContextMenuItemClicked(sender, args)
{
var menuItem = args.get_menuItem();
var treeNode = args.get_node();
switch(menuItem.get_value())
{
case "Edit":
var wnd = location.href='/admin/content_category_details_self.aspx?CategoryID=' + treeNode.get_value();
wnd.setSize(800,500);
break;
case "Add":
var wnd = location.href='/admin/content_category_details_self.aspx?CategoryID=0&ParentID=' + treeNode.get_value();
wnd.setSize(800,500);
break;
case "Sort":
OpenOverlay('/admin/content_category_sort.aspx?CategoryID=' + treeNode.get_value(),600,400);
break;
}
}
//-->
</script>
<telerik:RadTreeView Skin="Outlook" ID="RadTree1" OnClientContextMenuItemClicked="onClientContextMenuItemClicked" Runat="server">
<ContextMenus>
<telerik:RadTreeViewContextMenu Skin="Outlook" ID="MainContextMenu" runat="server">
<Items>
<telerik:RadMenuItem Value="Edit" Text="Edit"></telerik:RadMenuItem>
<telerik:RadMenuItem Value="Add" Text="Add Subcategory"></telerik:RadMenuItem>
<telerik:RadMenuItem Value="Sort" Text="Sort"></telerik:RadMenuItem>
</Items>
</telerik:RadTreeViewContextMenu>
</ContextMenus>
</telerik:RadTreeView>
The cause of this error was the telerik:RadTreeView tag. As soon as I removed the tag, the error went away. Did anyone else notice this behaviour? Code below.
<script type="text/javascript">
//<!--
function onClientContextMenuItemClicked(sender, args)
{
var menuItem = args.get_menuItem();
var treeNode = args.get_node();
switch(menuItem.get_value())
{
case "Edit":
var wnd = location.href='/admin/content_category_details_self.aspx?CategoryID=' + treeNode.get_value();
wnd.setSize(800,500);
break;
case "Add":
var wnd = location.href='/admin/content_category_details_self.aspx?CategoryID=0&ParentID=' + treeNode.get_value();
wnd.setSize(800,500);
break;
case "Sort":
OpenOverlay('/admin/content_category_sort.aspx?CategoryID=' + treeNode.get_value(),600,400);
break;
}
}
//-->
</script>
<telerik:RadTreeView Skin="Outlook" ID="RadTree1" OnClientContextMenuItemClicked="onClientContextMenuItemClicked" Runat="server">
<ContextMenus>
<telerik:RadTreeViewContextMenu Skin="Outlook" ID="MainContextMenu" runat="server">
<Items>
<telerik:RadMenuItem Value="Edit" Text="Edit"></telerik:RadMenuItem>
<telerik:RadMenuItem Value="Add" Text="Add Subcategory"></telerik:RadMenuItem>
<telerik:RadMenuItem Value="Sort" Text="Sort"></telerik:RadMenuItem>
</Items>
</telerik:RadTreeViewContextMenu>
</ContextMenus>
</telerik:RadTreeView>