[FIXED] [#162] Can not drop to textfield with existing text

  1. #1

    [FIXED] [#162] Can not drop to textfield with existing text

    If you try to drag something to a textfield with existing text, the drop indicator shows drop not possible. If you drag over empty textfield, it's fine. It's only if you try to drag over existing text.

    <html>
    <head id="Head1" runat="server">
        <title>DragDrop from TreePanel to Div - Ext.NET Examples</title>
        
        <script>
            var notifyDrop = function (dd, e, data) {
                alert("success");
                return true;
            };
        </script>
    </head>
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            
            <h1>DragDrop from TreePanel to Div</h1>
            
            <ext:Panel ID="Panel1" 
                runat="server" 
                Width="600" 
                Height="400" 
                Layout="Border">
                <Items>
                    <ext:TreePanel ID="TreePanel1" 
                        runat="server" 
                        EnableDrag="true"                            
                        DDGroup="tree2div"
                        Region="West"
                        Split="true"
                        Margins="5 0 5 5"
                        Width="200"
                        Title="Tree"
                        AutoScroll="true"
                        Collapsible="true">
                        <Store>
                            <ext:TreeStore ID="TreeStore1" runat="server">
                                <Model>
                                    <ext:Model ID="Model1" runat="server">
                                        <Fields>
                                            <ext:ModelField Name="data" />
                                        </Fields>
                                    </ext:Model>
                                </Model>
                            </ext:TreeStore>
                        </Store>
                        <Root>
                            <ext:Node Text="Root" Expanded="true">
                                <Children>
                                    <ext:Node Text="Folder 1">
                                        <CustomAttributes>
                                            <ext:ConfigItem Name="data" Value="Folder 1 data" Mode="Value" />
                                        </CustomAttributes>
                                        <Children>
                                            <ext:Node Text="Child 1" Leaf="true">
                                                <CustomAttributes>
                                                    <ext:ConfigItem Name="data" Value="Folder 1 Child 1 data" Mode="Value" />
                                                </CustomAttributes>
                                            </ext:Node>
                                        </Children>
                                    </ext:Node>
                                    
                                    <ext:Node Text="Folder 2">
                                        <CustomAttributes>
                                            <ext:ConfigItem Name="data" Value="Folder 2 data" Mode="Value" />
                                        </CustomAttributes>
                                        <Children>
                                            <ext:Node Text="Child 2" Leaf="true">
                                                <CustomAttributes>
                                                    <ext:ConfigItem Name="data" Value="Folder 2 Child 2 data" Mode="Value" />
                                                </CustomAttributes>
                                            </ext:Node>
                                        </Children>
                                    </ext:Node>
                                    
                                    <ext:Node Text="Leaf 1" Leaf="true">
                                        <CustomAttributes>
                                            <ext:ConfigItem Name="data" Value="Leaf 1 data" Mode="Value" />
                                        </CustomAttributes>
                                    </ext:Node>
                                </Children>
                            </ext:Node>
                        </Root>
    
    
                        <View>
                            <ext:TreeView ID="TreeView1" runat="server">
                                <Plugins>
                                    <ext:TreeViewDragDrop ID="TreeViewDragDrop1" runat="server" EnableDrop="false" DragGroup="tree2div" />
                                </Plugins>
                            </ext:TreeView>
                        </View>
                    </ext:TreePanel>
                
                    <ext:Panel ID="Panel2" 
                        runat="server" 
                        Title="Target"
                        Region="Center"
                        Margins="5 5 5 0">
                       <Items>
                       <ext:TextField runat="server" Text="Some Existing Text" ID="txtTarget"></ext:TextField>
                       </Items>
                    </ext:Panel>
                </Items>
            </ext:Panel> 
            
            <ext:DropTarget ID="DropTarget1" runat="server" Target="txtTarget" Group="tree2div">
                <NotifyDrop Fn="notifyDrop" />
            </ext:DropTarget>
        </form>
    </body>
    </html>
    Last edited by Daniil; Mar 07, 2013 at 6:27 PM. Reason: [OPEN] [#162]
  2. #2
    Hello!

    I was able to reproduce with trunk and IE 9. We are investigating.

    Thank you!
  3. #3
    It seems only be reproducible in IE. It is OK in FireFox and Chrome.

    I reported to Sencha.
    http://www.sencha.com/forum/showthread.php?258150
  4. #4
    Sencha opened a bug ticket.

    We created an Issue to monitor.
    https://github.com/extnet/Ext.NET/issues/162
  5. #5
    Both the Sencha team and the Ext.NET team can no longer reproduce this issue as of Ext.NET 4.x.

    Please let us know if you run into the same problem with Ext.NET 4.x (or higher) and we will reopen this Issue for investigation. Going forward, support for this issue can only be provided for Ext.NET 4.x (or higher).
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 3
    Last Post: Jun 23, 2015, 10:53 AM
  2. Replies: 5
    Last Post: Jun 23, 2015, 10:51 AM
  3. Ext.NET 3 Grid row drag/drop and text selection
    By anup in forum Examples and Extras
    Replies: 0
    Last Post: Jan 19, 2015, 1:18 PM
  4. Replies: 5
    Last Post: Aug 16, 2013, 2:40 PM
  5. [CLOSED] Can adjust the text to drop down a combobox?
    By softmachine2011 in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 15, 2012, 11:35 AM

Posting Permissions