This is a migrated thread and some comments may be shown as answers.

[Solved] EnableDragAndDrop and IFrame

1 Answer 160 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 21 Feb 2008, 01:00 PM
If I create the most simple example enabling drag and drop and include an iframe, the drag and drop does not work. It does not work in that you cannot pick up the item in the tree.

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="DragAndDrop.aspx.vb" Inherits="IPSCWebClient.DragAndDrop" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="scm" runat="server">  
        </asp:ScriptManager> 
 
        <telerik:RadTreeView ID="RadTreeView1" Runat="server" EnableDragAndDrop="true">  
            <Nodes> 
                <telerik:RadTreeNode runat="server" bod="guid1" text="Node 1"></telerik:RadTreeNode> 
                <telerik:RadTreeNode runat="server" bod="guid2" text="Node 2"></telerik:RadTreeNode> 
            </Nodes> 
        </telerik:RadTreeView> 
 
        <iframe src="http://www.google.co.uk" /> 
    </form> 
</body> 
</html> 

If the IFrame is taken out, then enable dragdrop works fine.

Thanks,
Martin

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 21 Feb 2008, 01:03 PM
Hi Martin,

I think you are experiencing the problem described in this blog post:
http://blogs.telerik.com/AtanasKorchev/Posts/07-05-20/On_closing_IFRAME_tags.aspx

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Martin
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or