Results 1 to 5 of 5

Thread: Customize grid grouping header?

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Answers
    12
    Vote Rating
    2
      0  

    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,382
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    What is it based on? The groupField?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

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

  4. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Answers
    12
    Vote Rating
    2
      0  

    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,382
    Answers
    3997
    Vote Rating
    1536
      0  

    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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

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

  6. #5
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Answers
    12
    Vote Rating
    2
      0  

    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
  •