1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
    bstras21 is an unknown quantity at this point

      0  

    Default getRange Issues

    getRange Issues


    Hi I am trying to load a set range of items from a store into a dataview but it seems getRange() breaks something in the store. Does anyone know a solution to this?

    Code:
     var recordsforpage = myStore.getRange();
                                    // create a new component which will use the paged data
                                     var carouselpage = Ext.create('Ext.DataView', {
                                                loadingText: '',        
                                                itemSelector: 'mainButtonsWrapper',
                                                store: recordsforpage,
                                                itemTpl: '<div class="mainButtonsWrapper"><div class="thumb"><div class="thumb-name">{Description}</div>'
                            
                                            });
    I tried a simple example. If I add myStore to store: everything works fine, however if I add recordsforpage( myStore.getRange() ) it breaks. Doesn't getRange() return the specified records in myStore, so shouldn't myStore be equivalent to myStore.getRange()?

  2. #2
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
    bstras21 is an unknown quantity at this point

      0  

    Default Figured it out!

    Figured it out!


    Well, I created a new store then added recordsforpage to it. Then I loaded the new store into my dataview and everything worked.

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