PDA

View Full Version : Grid Panel Adding ext:GridView and ext:GroupingView to <view> creates an error.



eqttester
Mar 16, 2011, 10:33 PM
I have the following view inside of my grid view.

<View>
<ext:GridView ID="GridView1" runat="server">
<GetRowClass Fn="getRowClass" />
</ext:GridView>
<ext:GroupingView
ID="GroupingView1"
HideGroupedColumn="true"
runat="server"
ForceFit="true"
GroupTextTpl='{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
EnableRowBody="true">
<GetRowClass Handler="var d = record.data; rowParams.body = String.format('<div style=\'padding:0 5px 5px 5px;\'>The {0} [{1}] requires light conditions of <i>{2}</i>.<br /><b>Price: {3}</b></div>', d.Common, d.Botanical, d.Light, Ext.util.Format.usMoney(d.Price));" />
</ext:GroupingView>
</View>

This creates the following error.

Only one item can be added to this Items Collection.

eqttester
Mar 22, 2011, 10:20 PM
Anyone have any idea?

eduvolp
Nov 17, 2011, 3:14 PM
Did you resolve your problema, I'm having the same issue

Vladimir
Nov 17, 2011, 3:35 PM
GridPanel supports one view only
What a sense to have two views? GroupView is inherited from GridView therefore it has all GridView's functionality

maurox
Mar 07, 2012, 3:52 PM
ok, but how i can use GroupingView and MultipleHeaders for 1 GridPanel?