1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    10
    Vote Rating
    0
    Gayathiri is on a distinguished road

      0  

    Default Unanswered: Tooltips

    Unanswered: Tooltips


    Am having a combobox which has its data populated from a SQL database, using a store. I want to display the tooltips for each of the item in the combobox and these tooltips are also stored in the database. So, how should i get them.

    Code:
    function loadGENEXTst(full) {
     if(GENEXTst == null) {
      GENEXTst = Ext.create('Ext.data.Store', {
       model : 'SimpleModel',
       proxy : {
        type : 'ajax',
        url : 'data/Extensions.aspx',
        reader : {
         type : 'json',
         root : 'Rows',
         totalProperty : 'TotalRows'
        },
        actionMethods : {
         create : 'POST',
         read : 'POST'
        },
        extraParams : {
         mode : 'GENERICLIST',
         start : 0,
         limit : SYSTEM.listLimit
        }
       },
       autoLoad : false
      });
     } else {
      delete GENEXTst.lastParams
     }
     if(full) {
      GENEXTst.proxy.extraParams.mode = 'FULLLIST';
     } else {
      GENEXTst.proxy.extraParams.mode = 'GENERICLIST';
     }
     GENEXTst.proxy.extraParams.ProjDB = SYSTEM.iSecure;
     GENEXTst.load();
    }
    The aspx file in turn has a function which calls the stored procedure to populate the combobox. So, how do i populate the tooltips for each of the item in the combobox?My model is as follows:
    Code:
    Ext.define('SimpleModel', { 
    extend : 'Ext.data.Model', 
    fields : ['itemID', 'Title', 'Short', 'Type', 'isActive', 'TotalRows'] 
    });
    So, is the following code correct?
    Code:
    getInnerTpl:function(){ 
            return '<div data-qtip="{Short}">{Title}</div>'; 
        }
    The field short contains the tooltips and the field title contians the combobox list.

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Location
    Hyderabad
    Posts
    1
    Vote Rating
    0
    santuy2k is on a distinguished road

      0  

    Default Tooltip

    Tooltip


    hi
    just tell me one thing u tooltip for data cmg from database r static data.. for static data only one line code is enough .

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