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:

    GroupHeaderTplString='<span id="{text} ({[]} {[ > 1 ? "Submissions" : "Submission"]})'

    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:	244 
Size:	45.4 KB 
ID:	4550
  2. #2
    Please see the following sample, it works correctly

    - i don't see closing tag for span element
    - need use 'values.rows.length' instead ''
  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, 6:44 AM
  2. GridView RTL
    By mono in forum 1.x Help
    Replies: 1
    Last Post: May 17, 2012, 1:34 PM
  3. Replies: 1
    Last Post: Jan 08, 2012, 6:10 AM
  4. Replies: 2
    Last Post: Nov 04, 2011, 7:06 PM
  5. GridPanel - W/MultiSelect - Pushes iframe
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Apr 16, 2009, 12:52 PM

Tags for this Thread

Posting Permissions