1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    2
    Answers
    1
    Vote Rating
    0
    kerthi is on a distinguished road

      0  

    Default Answered: TreeGrid column template

    Answered: TreeGrid column template


    Hi!

    I'm using the ExtJs4 TreeGrid component. The example suggests using XTemplates to render columns:

    Code:
    tpl: Ext.create('Ext.XTemplate', '{duration:this.formatDuration}', {
                    formatDuration: function(v) {
    })
    Problem is, i need to pass more than one value to the function. In my case not only duration but also another member from the values object ("id"). How do i do that?

    In ExtJs3 ux.TreeGrid it was possible to use something like this:
    Code:
    tpl : function(a) {}
    Inside this function one was able to access all members of the values object simply by using this.membername. Inside ExtJs4 XTemplate this points to the XTemplate itself.

    thx,
    kr kerthi

  2. This seems to do the trick:
    Code:
    tpl: Ext.create('Ext.XTemplate', '{[this.formatDuration(values.duration,values.id)]}', {
                    formatDuration: function(v,i) {
    })

  3. #2
    Sencha User
    Join Date
    Aug 2011
    Posts
    2
    Answers
    1
    Vote Rating
    0
    kerthi is on a distinguished road

      0  

    Default


    This seems to do the trick:
    Code:
    tpl: Ext.create('Ext.XTemplate', '{[this.formatDuration(values.duration,values.id)]}', {
                    formatDuration: function(v,i) {
    })

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi