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) {
    })

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar