[CLOSED] Ext.Net DropZone vs Ext native DropZone

  1. #1

    [CLOSED] Ext.Net DropZone vs Ext native DropZone

    Hello,

    I would like to use "DragZone" to configure a drag and drop of rows between one grid to another:

    <ext:GridPanel ID="GridFields" runat="server" Height="200">
        <Store>
            <ext:Store runat="server" JsonData="[{name:'1'},{name:'2'},{name:'3'}]">
                <Model>
                    <ext:Model runat="server">
                        <Fields>
                            <ext:ModelField Name="name" Type="String"></ext:ModelField>
                        </Fields>
                    </ext:Model>
                </Model>
            </ext:Store>
        </Store>
        <ColumnModel>
            <Columns>
                <ext:Column runat="server" Text="name" DataIndex="name"></ext:Column>
            </Columns>
        </ColumnModel>
        <View>
            <ext:GridView ID="GridFieldsView">
                <Plugins>
                    <ext:GridDragDrop ID="GridDragDrop1" runat="server" DragGroup="DDReportGrid" />                                
                </Plugins>
            </ext:GridView>
        </View>
    </ext:GridPanel>
    <ext:GridPanel ID="GridPanel1" runat="server" Icon="DatabaseTable" Height="200">
        <Store>
            <ext:Store ID="Store2" runat="server" >
                <Model>
                    <ext:Model ID="Model1" runat="server">
                        <Fields>
                            <ext:ModelField Name="name" Type="String"></ext:ModelField>
                        </Fields>
                    </ext:Model>
                </Model>
            </ext:Store>
        </Store>
        <ColumnModel>
            <Columns>
                <ext:Column ID="Column1" runat="server" Text="name" DataIndex="name"></ext:Column>
            </Columns>
        </ColumnModel>
        <View>
            <ext:GridView ID="GridView1">
                <Plugins>
                    <ext:GridDragDrop DropGroup="DDReportGrid"></ext:GridDragDrop>
                </Plugins>
            </ext:GridView>
        </View>
    </ext:GridPanel>
    Howevre, it appears that using the <DragZone> Ext.Net elmenet does not work correctly:

    <ext:DragZone runat="server" ID="DragSource1" Group="DDReportGrid" Target="Ext.getCmp('GridFields').getView()">
    </ext:DragZone>
    I tried using native one, and this worked like a charm:

    var AppTT = new Ext.view.DragZone({
        view: App.GridFields.getView(),
        ddGroup: "DDReportGrid",
        dragText: "Dragging"
    });
    Is there something to fix on your "own" Ext.Net implementation of the DragZone?
    Thanks!
    Last edited by Daniil; May 31, 2013 at 11:57 AM. Reason: [CLOSED]
  2. #2
    Try to wrap Target by ={}
    Target="={Ext.getCmp('GridFields').getView()}"
  3. #3
    Thank you Vladimir, it wokred!!!! :-)

Similar Threads

  1. [CLOSED] DropTarget or DropZone?
    By capecod in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 21, 2010, 3:44 PM
  2. Replies: 1
    Last Post: Oct 16, 2010, 6:57 PM

Posting Permissions