Feb 19, 2014, 12:15 PM
[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?
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]