1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    17
    Answers
    1
    Vote Rating
    0
    Madiyana is on a distinguished road

      0  

    Default Unanswered: Combobox + XTemplate trouble

    Unanswered: Combobox + XTemplate trouble


    Hi,
    Following example shows normal combobox until I use XTemplate. After applying XTemplatecombobox items become unclickable (no highlight on hover and no choosing by click).


    Code:
    Ext.onReady(function () {        
    var states = Ext.create('Ext.data.Store', {            
    fields: ['abbr', 'name'],            
    data: [               
            { "abbr": "AL", "name": "Alabama" },         
            { "abbr": "AK", "name": "Alaska" },             
            { "abbr": "AZ", "name": "Arizona" }         
       ],           
     listeners :          {
            'load' : function (store, records, options) {
                  this.insert(0,'--');        
         }}
            });       
     Ext.create('Ext.form.ComboBox', {     
           fieldLabel: 'Choose State',           
           store: states,        
           queryMode: 'local',           
           displayField: 'name',            
           valueField: 'abbr',           
            renderTo: 'divId',          
      tpl: new Ext.XTemplate(           
         '<tpl for="."><div class="x-combo-list-item">{name}</div></tpl>')        }

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,585
    Answers
    540
    Vote Rating
    319
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Please stop posting the same question over and over again. You've asked this at least 4 times now.

    Please post any follow up to the following thread:

    http://www.sencha.com/forum/showthread.php?248668

Thread Participants: 1

Tags for this Thread

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