[OPEN] [#444] Grid Drag and Drop - Moving to position 0 is not possible with groupfield

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [OPEN] [#444] Grid Drag and Drop - Moving to position 0 is not possible with groupfield

    Hi,

    please see the following example.
    I am not able to move a row to the first position (to the top) when I have declared a groupfield. If I remove the Groupfield, everything works fine.
    Is there any fix available?

    <%@ Page Language="VB" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
     
     <script runat="server">
    
         Protected Sub Page_Load(sender As Object, e As EventArgs)
             Dim data As New Generic.List(Of Object)()
    
             For i As Integer = 0 To 9
                 data.Add(New With { _
                     .Name = "Record #" + i.ToString(), _
                     .GroupName = "Group 1" _
                 })
             Next
    
             Me.Store1.DataSource = data
             Me.Store1.DataBind()
         End Sub
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head id="Head1" runat="server">
        <title>Drag and Drop rows to reorganize - Ext.NET Examples</title>
        <link href="/resources/css/examples.css" rel="stylesheet" />
    </head>
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            
            <h1>Drag and Drop rows to reorganize</h1>
            
            <ext:GridPanel ID="GridPanel1"
                runat="server" 
                MultiSelect="true"            
                Title="Grid"
                Width="400"
                Height="300">
                <Store>
                    <ext:Store ID="Store1" runat="server" GroupField="GroupName">
                        <Model>
                            <ext:Model ID="Model1" runat="server">
                                <Fields>
                                    <ext:ModelField Name="Name" />
                                    <ext:ModelField Name="GroupName" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel>
                    <Columns>
                        <ext:Column ID="Column1" runat="server" Text="Record Name" Width="160" DataIndex="Name" Flex="1" />
                    </Columns>
                </ColumnModel>                    
                <View>
                    <ext:GridView ID="GridView1" runat="server">
                        <Plugins>
                            <ext:GridDragDrop ID="GridDragDrop1" runat="server" DragText="Drag and drop to reorganize"/>
                        </Plugins>
                    </ext:GridView>
                </View>   
                <Features>
                    <ext:Grouping ID="Grouping1" runat="server" />
                </Features>
            </ext:GridPanel>
        </form>    
    </body>
    </html>
    Last edited by Daniil; Feb 28, 2014 at 4:14 AM. Reason: [OPEN] [#444]

Similar Threads

  1. Replies: 4
    Last Post: Jul 19, 2013, 1:16 AM
  2. [CLOSED] Grid Drag and Drop example
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 14, 2011, 1:20 PM
  3. [CLOSED] Grid to Grid Drag and Drop Questions
    By dmoore in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 15, 2011, 10:43 AM
  4. Replies: 2
    Last Post: Mar 11, 2009, 8:59 AM
  5. Grid to grid Drag and Drop grouping issue
    By bobs in forum 1.x Help
    Replies: 0
    Last Post: Feb 10, 2009, 7:13 AM

Posting Permissions