1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    81
    Vote Rating
    0
    babar.sajjad is on a distinguished road

      0  

    Question List Items disappears in MVC pattern

    List Items disappears in MVC pattern


    Hi

    Sencha Touch 1.0.1

    I had a list with names and items in it like this

    Breakfast
    item1
    item2
    Lunch
    item5
    .........

    when the store loaded it shows me the correct list and when i moves back to page by clicking back button i see this

    Breakfast
    Lunch
    .....
    the items i am getting disappears

    This happens on devices (iPad, iPhone) unable to check this on Andriod.

  2. #2
    Sencha User
    Join Date
    Dec 2010
    Posts
    81
    Vote Rating
    0
    babar.sajjad is on a distinguished road

      0  

    Default Code

    Code


    This is my List

    Code:
    Application.views.MealList = Ext.extend(Ext.List, {
        scroll: false,
        itemTpl: [
              '<tpl for=".">',
    			    '<tpl if="calories != &quot;&quot; && calories != 0">',
    			        '<div class="fltR"><div class="next">Calories: {calories}</div></div>',
    			    '</tpl>',
    			    '<div class="item">',
    					'<div class="title">{title}</div>',
    					'<tpl if="meal_item_count==0">',
    						'<div class="name">No Items on Plate</div>',
    					'</tpl>',
    					'<tpl for="mealitems">',
    						'<div class="name">{name}</div>',
    					'</tpl>',
    				'</div>',
    				'<div class="clr"></div>',
            '</tpl>'
        ],
        store: 'MealStore',
        listeners:{
            itemtap: function (view, index, item, e){
    			var rec = view.store.getAt(index);
                var itemsInMeal = rec.data.meal_item_count;
                var mealuuid = rec.data.uuid;
                var mealid = rec.data.id;
                var mealname = rec.data.title;
                storageObj.setItem('meal_id',mealid);
                storageObj.setItem('meal_uuid',mealuuid);
                storageObj.setItem('meal_name',mealname);
                if(itemsInMeal > 0){
                	storageObj.setItem('from_url','nutrition/meal_details');
                    var url = 'nutrition/meal_details';
    				Ext.redirect(url);
                }else{
                	storageObj.setItem('from_url','nutrition/plan');
                    var url = 'nutrition/build';
    				Ext.redirect(url);
                }
    		}
        }
    });
    Ext.reg('mealList', Application.views.MealList);

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    81
    Vote Rating
    0
    babar.sajjad is on a distinguished road

      0  

    Default Store Structure get changed

    Store Structure get changed


    Seems that my store structure get changed

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