Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  1. #1
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    303
    Answers
    8
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Default Unanswered: Dynamic GroupHeaderTpl

    Unanswered: Dynamic GroupHeaderTpl


    Hello everyone,

    I need to change groupHeaderTpl upon to the groupingField value. In my case I group through a boolean field.
    How can I do this? I tried some variants but unable to achieve to my goal.
    I'll be happy if someone can help me?
    Thanks i advance.

    Code:
    groupHeaderTpl: '{name}=="true" ? Shared : Your own'
    Code:
    groupHeaderTpl: '[{name}=="true" ? Shared : Your own]'
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

  2. #2
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    303
    Answers
    8
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Default


    Any ideas??
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

  3. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,865
    Answers
    652
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Have a look at the following for function / condition support in templates:
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.XTemplate
    http://localhost/extjs4/docs/#!/api/...groupHeaderTpl

    Scott.

  4. #4
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    303
    Answers
    8
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Default


    Thanks Scott, I've looked there before too.. So what's wrong here, can you explain me please?

    Code:
    var tpl = new Ext.XTemplate(
     '<tpl if="{name} == true">',
              '<p>Public Documents</p>',
    '</tpl>',
    '<tpl else>',
              '<p>Your Documents</p>',
    '</tpl>'
            );
    
    var groupingFeature = Ext.create('Ext.grid.feature.Grouping',{
        groupHeaderTpl: tpl
    });
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

  5. #5
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,865
    Answers
    652
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    In looking looking at template, I would say you should make the following changes:

    Code:
    var tpl = new Ext.XTemplate(
     '<tpl if="name == true">', // {name} used to display vs name to eval
              '<p>Public Documents</p>',
    '</tpl>',
    '<tpl else>',
              '<p>Your Documents</p>',
    '</tpl>'
    );
    Scott.

  6. #6
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    303
    Answers
    8
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Default


    Quote Originally Posted by scottmartin View Post
    In looking looking at template, I would say you should make the following changes:

    Code:
    var tpl = new Ext.XTemplate(
     '<tpl if="name == true">', // {name} used to display vs name to eval
              '<p>Public Documents</p>',
    '</tpl>',
    '<tpl else>',
              '<p>Your Documents</p>',
    '</tpl>'
    );
    Scott.
    Unfortunately it gives no group header..
    Selection_002.png
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

Thread Participants: 1

Tags for this Thread