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.

Threaded View

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Location
    India
    Posts
    2
    Vote Rating
    0
    tshivanand is on a distinguished road

      0  

    Default Unanswered: Regarding tpl button eventhndler

    Unanswered: Regarding tpl button eventhndler


    Hi,
    i am shivanad tripathi new in extjs i have one template which have to button edit and delete and i am using html code for creating button but i want that button on controller so how to get that button on controller based on button id .
    i am sending my screen shot and code also.
    tpl : new Ext.XTemplate(
    '<tpl for=".">',
    '<div class="thumb-wrap">',
    '<div class="thumb">',
    (!Ext.isIE6
    ? '<img src="http://192.168.1.229/mailtrack-svc/service/image-service/getImageData/template/{name}" height="90" width="90" />'
    : '<div style="filter:progidXImageTransform.Microsoft.AlphaImageLoader(src=\'http://localhost/mailtrack-svc/service/image-service/getImageData/template/{name}\')"></div>'),
    '</div>', '<span><input type=button value=Edit onclick="Editbutton" id="Editbutton">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>', '<span><input type=button value=Delete>&nbsp&nbsp</span>', '</div>', '</tpl>'),
    handler: function(values) {
    var id = Ext.id();
    alert("idclcik"+id);
    Ext.Function.defer(this.addListener, 1, this, [id])
    return id;
    },
    listener: function() {
    Ext.getCmp('Editbutton').on('click',function(){
    alert("editclcik");
    });
    }
    Thanks&Regards,
    Shivanand
    });
    var categoriesList = Ext.create('lib.Commons.Components.Containers.MailTrackFieldSet',{
    border:false,


    items : [
    Categories
    ],
    });
    Attached Images

Thread Participants: 1