GroupHeaderTplString pushes gridview display over

  1. #1

    GroupHeaderTplString pushes gridview display over

    I'm updating a review page to 2.0 and I've switched from GroupingView to Grouping (breaking change #23) and it works and displays fine, except for the GroupHeaderTplString functionality. My table displays perfectly without it but when I add it in the data in the table gets pushed off the screen with two dark lines representing the groups. Is there a bug with the GroupHeaderTplString?

    Here is my code:

    <Features>
    <ext:Grouping
    EnableGroupingMenu="true"
    EnableNoGroups="true"
    ID="GroupingView1"
    runat="server"
    HideGroupedHeader="true"
    StartCollapsed="false"
    GroupHeaderTplString='<span id="{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Submissions" : "Submission"]})'
    />
    </Features>

    Here's what I see (data is offscreen in this shot but when I remove the GroupHeaderTplString attribute it displays perfectly):

    Click image for larger version. 

Name:	GroupHeaderTplString.jpg 
Views:	245 
Size:	45.4 KB 
ID:	4550
  2. #2
    Please see the following sample, it works correctly
    https://examples2.ext.net/#/GridPane...eous/Grouping/

    - i don't see closing tag for span element
    - need use 'values.rows.length' instead 'values.rs.length'
  3. #3
    Thanks for the quick help - making those changes fixed it!

    However I do have an additional question - in 1.X versions the GroupingView would also show the value of the grouped field in the header of the grouped section. It seems like in 2.0 the Grouping only shows the count (eg. "(4 Submissions)") - is there a way to show the grouped field value in 2.0? For example, if we were grouping by "Status" it might show "Pending (4 Submissions)").
  4. #4
    Use {name}
  5. #5
    You're the man Vladimir!

Similar Threads

  1. Replies: 15
    Last Post: Feb 06, 2013, 5:44 AM
  2. GridView RTL
    By mono in forum 1.x Help
    Replies: 1
    Last Post: May 17, 2012, 12:34 PM
  3. Replies: 1
    Last Post: Jan 08, 2012, 5:10 AM
  4. Replies: 2
    Last Post: Nov 04, 2011, 6:06 PM
  5. GridPanel - W/MultiSelect - Pushes iframe
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Apr 16, 2009, 11:52 AM

Tags for this Thread

Posting Permissions