[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)
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <form id="form1" runat="server">
            <ext:ResourceManager runat="server" />
                Title="Grouping Test">
                     <ext:Store runat="server" GroupField="forumtitle">
                            <ext:JsonPProxy Url="http://www.sencha.com/forum/topics-browse-remote.php" SimpleSortMode="true">
                                    <ext:JsonReader Root="topics" TotalProperty="totalCount" IDProperty="threadid" />
                            <ext:Model runat="server">
                                    <ext:ModelField Name="title" />
                                    <ext:ModelField Name="forumtitle" />
                                    <ext:ModelField Name="forumid" />
                                    <ext:ModelField Name="lastposter" />
                                    <ext:ModelField Name="replycount" Type="Int" />
                            Text="Last Poster" 
                        <ext:CommandColumn runat="server" Hidden="true">
                                <ext:GridCommand Icon="TableRow" CommandName="SelectGroup">
                                    <ToolTip Title="Select" Text="Select all rows of the group" />
                    <ext:Grouping runat="server">
                        <GroupHeaderTpl runat="server">
    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 8:11 AM. Reason: [CLOSED]
  2. #2
    Hi @pgodwin,

    It looks it has been fixed already in v2.5.3.
  3. #3
    Hi Danill
    Thanks for your reply.

    It looks it has been fixed already in v2.5.3.
    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, 11: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, 6:58 PM
  3. [CLOSED] Gridpanel GroupCommand Example
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Dec 31, 2011, 9: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, 11:58 AM
  5. groupcommand handler parameters
    By wp_joju in forum 1.x Help
    Replies: 4
    Last Post: Feb 16, 2011, 10:22 AM

Tags for this Thread

Posting Permissions