1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    48
    Vote Rating
    0
    eaglefox12 is on a distinguished road

      0  

    Default Answered: Can I format Extj groupHeader

    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
    311
    Answers
    59
    Vote Rating
    52
    droessner is a jewel in the rough droessner is a jewel in the rough droessner is a jewel in the rough

      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
    0
    eaglefox12 is on a distinguished road

      0  

    Default Thank you

    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)]}' }
    );