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

  1. #1

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

    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.
  2. #2
    Anyone have any idea?
  3. #3
    Did you resolve your problema, I'm having the same issue
  4. #4
    GridPanel supports one view only
    What a sense to have two views? GroupView is inherited from GridView therefore it has all GridView's functionality
    Vladimir Shcheglov
    Sr. Developer
  5. #5
    ok, but how i can use GroupingView and MultipleHeaders for 1 GridPanel?

Similar Threads

  1. Replies: 7
    Last Post: Mar 27, 2013, 6:07 AM
  2. [CLOSED] Razor syntax for adding a partial view to a Panel
    By machinableed in forum 2.x Premium Help
    Replies: 1
    Last Post: Feb 23, 2012, 9:55 AM
  3. [CLOSED] Dynamically adding view to panel MVC
    By RCM in forum 1.x Premium Help
    Replies: 2
    Last Post: Oct 14, 2011, 6:19 PM
  4. [CLOSED] [1.0] Locking Grid View JavaScript Error
    By jskibo in forum 1.x Premium Help
    Replies: 4
    Last Post: Jun 01, 2010, 11:09 PM
  5. [CLOSED] Adding tree view to panel?
    By Jurke in forum 1.x Premium Help
    Replies: 3
    Last Post: Dec 09, 2008, 11:27 AM

Posting Permissions