PDA

View Full Version : [CLOSED] Grouping feature broken after latest from SVN



jchau
Apr 17, 2013, 9:17 PM
Maybe I am setting this up wrong but I can't seem to get Grouping feature to work now. I got latest from SVN this morning. After grid loads, clicking on the + / - signs don't do anything. The groupings are shown but there's no rows underneath them.



<script runat="server">


Private Sub storePlans_RefreshData(ByVal sender As Object, ByVal e As Ext.Net.StoreReadDataEventArgs) Handles storePlans.ReadData

Me.storePlans.DataSource = GetGridData()
Me.storePlans.DataBind()

End Sub

Private Function GetGridData() As IEnumerable
Dim list As New System.Collections.Generic.List(Of Object)

list.Add(New With {.ENTITYGUID = Guid.NewGuid(), .Name = "Test", .Category = "Category1"})

list.Add(New With {.ENTITYGUID = Guid.NewGuid(), .Name = "Test2", .Category = "Category2"})

list.Add(New With {.ENTITYGUID = Guid.NewGuid(), .Name = "Test3", .Category = "Category3"})

Return list

End Function


</script>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" Theme="Gray"
DisableViewState="true" />
<ext:Store runat="server" ID="storePlans" AutoLoad="true" GroupField="Category">
<Proxy>
<ext:PageProxy>
</ext:PageProxy>
</Proxy>
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="ENTITYGUID">
<Fields>
<ext:ModelField Name="ENTITYGUID">
</ext:ModelField>
<ext:ModelField Name="Name">
</ext:ModelField>
<ext:ModelField Name="Category">
</ext:ModelField>
</Fields>
</ext:Model>
</Model>
</ext:Store>
<ext:GridPanel runat="server" ID="gridPlans" StoreID="storePlans" TrackMouseOver="true"
SelectionMemory="false" AutoScroll="true" ColumnLines="true" Height="400">
<ColumnModel>
<Columns>
<ext:RowNumbererColumn ID="RowNumbererColumn1" runat="server">
</ext:RowNumbererColumn>
<ext:Column ID="Column1" DataIndex="Name" Text="Name" runat="server" Width="200">
</ext:Column>
</Columns>
</ColumnModel>
<Features>
<ext:Grouping ID="Grouping1" runat="server" HideGroupedHeader="true" />
</Features>
</ext:GridPanel>
</form>
</body>
</html>

Vladimir
Apr 17, 2013, 9:44 PM
The problem is related with row numberer column renderer (it raises a javascript error if grouping feature is used)
We will commit a fix soon, thanks for the report

P.S. Small tip, You can detect problem code if set Development ScriptMode in ResourceManager, in this case, error message will be listed in browser console

jchau
Apr 17, 2013, 10:00 PM
The problem is related with row numberer column renderer (it raises a javascript error if grouping feature is used)
We will commit a fix soon, thanks for the report

P.S. Small tip, You can detect problem code if set Development ScriptMode in ResourceManager, in this case, error message will be listed in browser console

Oops. I guess I introduced that with my overrides for RowNumberer Renderer =P. Thanks for the tip on ScriptMode too. Did not know that existed.

jchau
Apr 19, 2013, 1:18 AM
I notice this is marked as closed. Does this mean the fix is already committed to SVN?

Daniil
Apr 19, 2013, 4:09 AM
I notice this is marked as closed. Does this mean the fix is already committed to SVN?

Yes, it has been committed.