[CLOSED] GroupCommand and GroupHeaderTpl

  1. #1

    [CLOSED] GroupCommand and GroupHeaderTpl

    Hi There

    I have an issue when I combine a CommandColumn with GroupCommands and a GroupHeaderTpl. Instead of my GroupHeaderTpl, rendered is object Object (see screenshot below).


    Note that the problem goes away if I use the GroupHeaderTplString property of the Grouping Feature, or if remove the GroupCommands. Unfortunately, I have quite a complex Template I'd like to use, so would prefer to use a proper XTemplate if possible.

    Example below:
    <%@ Page Language="C#" AutoEventWireup="true" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
    
    </script>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ResourceManager runat="server" />
            <ext:GridPanel 
                runat="server" 
                Width="600" 
                Height="600"
                Title="Grouping Test">
                <Store>
                     <ext:Store runat="server" GroupField="forumtitle">
                        <Proxy>
                            <ext:JsonPProxy Url="http://www.sencha.com/forum/topics-browse-remote.php" SimpleSortMode="true">
                                <Reader>
                                    <ext:JsonReader Root="topics" TotalProperty="totalCount" IDProperty="threadid" />
                                </Reader>
                            </ext:JsonPProxy>
                        </Proxy>
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="title" />
                                    <ext:ModelField Name="forumtitle" />
                                    <ext:ModelField Name="forumid" />
                                    <ext:ModelField Name="lastposter" />
                                    <ext:ModelField Name="replycount" Type="Int" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel>
                    <Columns>
                        <ext:Column 
                            runat="server" 
                            Text="Title" 
                            DataIndex="title" 
                            Width="220" 
                            />
                        <ext:Column 
                            runat="server" 
                            Text="Last Poster" 
                            DataIndex="lastposter" 
                            Width="130" 
                            />
                        <ext:CommandColumn runat="server" Hidden="true">
                            <GroupCommands>
                                <ext:GridCommand Icon="TableRow" CommandName="SelectGroup">
                                    <ToolTip Title="Select" Text="Select all rows of the group" />
                                </ext:GridCommand>
                            </GroupCommands>
                        </ext:CommandColumn>
                    </Columns>
                </ColumnModel>
                <Features>
                    <ext:Grouping runat="server">
                        <GroupHeaderTpl runat="server">
                            <Html>
                                {name}
                            </Html>
                        </GroupHeaderTpl>
                    </ext:Grouping>
                </Features>
    
            </ext:GridPanel>
        </form>
    </body>
    </html>
    Attached Thumbnails Click image for larger version. 

Name:	grouping issue.PNG 
Views:	22 
Size:	17.1 KB 
ID:	16391  
    Last edited by Daniil; Nov 20, 2014 at 7:11 AM. Reason: [CLOSED]
  2. #2
    Hi @pgodwin,

    It looks it has been fixed already in v2.5.3.
    https://github.com/extnet/Ext.NET/issues/550
  3. #3
    Hi Danill
    Thanks for your reply.

    It looks it has been fixed already in v2.5.3.
    https://github.com/extnet/Ext.NET/issues/550
    I have tested against 2.5.3 (which seems to be the current deployed version on NuGet). I can confirm that ImageCommandColumn with a GroupImageCommand works, however a CommandColumn with a GridCommand does not (as per the example).
  4. #4
    Indeed. I've fixed a CommandColumn as well in SVN trunk, the revision #6174.

    Thank you for pointing out the problem.

Similar Threads

  1. Replies: 4
    Last Post: Jun 23, 2015, 10:32 AM
  2. [CLOSED] [#550] GroupHeaderTpl not working when gridpanel has GroupCommands
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 17
    Last Post: Sep 16, 2014, 5:58 PM
  3. [CLOSED] Gridpanel GroupCommand Example
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Dec 31, 2011, 8:23 AM
  4. [CLOSED] GroupCommand on a row with an ampersand in the name...
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 19, 2011, 10:58 AM
  5. groupcommand handler parameters
    By wp_joju in forum 1.x Help
    Replies: 4
    Last Post: Feb 16, 2011, 9:22 AM

Tags for this Thread

Posting Permissions