Results 1 to 3 of 3

Thread: Can I format Extj groupHeader

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    48
    Vote Rating
    1
      0  

    Default Answered: Can I format Extj groupHeader

    This is my groupFeature
    this.myGroupingFeature = Ext.create('Ext.grid.feature.Grouping', { groupHeaderTpl: '{name}' });
    What I want is trim the first character. If the "name" is "(This". I just want to show "This" as the group header. Is there a way to do that.
    Last edited by eaglefox12; 22 Apr 2013 at 5:55 AM. Reason: code quote

  2. Sure, you can do something like this:

    Code:
    this.myGroupingFeature = Ext.create('Ext.grid.feature.Grouping', {
        groupHeaderTpl: '{[values.name.substring(1)]}' }
    );

  3. #2
    Touch Premium Member
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    316
    Answers
    59
    Vote Rating
    59
      0  

    Default

    Sure, you can do something like this:

    Code:
    this.myGroupingFeature = Ext.create('Ext.grid.feature.Grouping', {
        groupHeaderTpl: '{[values.name.substring(1)]}' }
    );

  4. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    48
    Vote Rating
    1
      0  

    Default Thank you

    Thank you so much droessner

    Quote Originally Posted by droessner View Post
    Sure, you can do something like this:

    Code:
    this.myGroupingFeature = Ext.create('Ext.grid.feature.Grouping', {
        groupHeaderTpl: '{[values.name.substring(1)]}' }
    );

Tags for this Thread

Posting Permissions

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