Results 1 to 5 of 5

Thread: Customize grid grouping header?

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Answers
    12

    Default Answered: Customize grid grouping header?

    I am using the grouping feature for a grid, and currently, I have the following:

    Code:
    groupHeaderTpl: '{name} - {rows.length}'
    I would like to show an icon for certain groups in the grid depending on whether or not a certain field is set in any one of the items that belong to that particular group. Is there a way I can do this?

    Thanks!

  2. You should be able to specify a full XTemplate definition and then you can use the functions. You can also do inline JS in the string

  3. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    What is it based on? The groupField?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  4. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Answers
    12

    Default

    Quote Originally Posted by mitchellsimoens View Post
    What is it based on? The groupField?
    Yes..

  5. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    You should be able to specify a full XTemplate definition and then you can use the functions. You can also do inline JS in the string
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  6. #5
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Answers
    12

    Default

    Quote Originally Posted by mitchellsimoens View Post
    You should be able to specify a full XTemplate definition and then you can use the functions. You can also do inline JS in the string
    Oh ok! That is what I was looking for. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •