1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    2
    Vote Rating
    0
    92Michel is on a distinguished road

      0  

    Default Unanswered: Load dataview

    Unanswered: Load dataview


    Hi,
    Is there anyway to load a data view by selected record?

    Code:
        initComponent: function() {        
            var dockedItems, 
                items, 
                list, 
                listeners, 
                self = this;
            
            list = new Ext.List({
                scroll:       false,
                title:        'My title',
                store:        this.store.getAt(/* record index */),
                singleSelect: true,
                itemSelector: 'div.wrapper',
                id:           'myList',
                loading:      true,
                itemTpl:      self.myTemplate(),
                listeners: {
                    itemtap: function(list, index) {
                         //TODO handle request
                    }
                }
            });
                 
            items = [list];
            
            Ext.apply(this, {
                dockedItems: dockedItems,
                items: items
            });
                 
            app.views.View.superclass.initComponent.call(this);
        }
    I've looked everywhere, but couldn't find any answers.

    Thank you in advance
    Last edited by 92Michel; 13 Dec 2011 at 6:53 AM. Reason: secured data

  2. #2
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,669
    Answers
    130
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    what exactly do you want to do? load another store on selection?
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    14
    Vote Rating
    0
    Sweta Patil is on a distinguished road

      0  

    Default


    Do you want to display the dataview on the panel after selecting from the select field?

  4. #4
    Sencha User
    Join Date
    Dec 2011
    Posts
    2
    Vote Rating
    0
    92Michel is on a distinguished road

      0  

    Default Load dataview

    Load dataview


    Thank you for your quick replies,

    I've got a list with records. When I select a specific record, I create a panel overlay with a dataview in it. I want to load my selected record in the dataview of the panel overlay.

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Posts
    14
    Vote Rating
    0
    Sweta Patil is on a distinguished road

      0  

    Default


    Quote Originally Posted by 92Michel View Post
    Thank you for your quick replies,

    I've got a list with records. When I select a specific record, I create a panel overlay with a dataview in it. I want to load my selected record in the dataview of the panel overlay.
    Here in your code on itemtap you can show a panel which you can keep floating so it acts as a overlay.In that panel you can write your dataview logic.

    var accountPanel = new Ext.Panel({
    floating: true,
    modal: true,
    centered: true,
    width: 220,
    height: 180,
    styleHtmlContent: true,
    scroll: 'vertical',
    items: [dataViewPanel]
    });

    var dataViewPanel = new Ext.Panel({
    items: [productsList]
    });

    var productsList = new Ext.DataView({
    scroll:vertical,
    store: new Ext.data.Store({
    model: 'Account_Model',
    proxy: {
    type: 'ajax',
    url : '//ur json file',
    reader: {
    type: 'json',
    root: 'parent'
    }
    },
    autoLoad : true
    }),
    tpl: new Ext.XTemplate(
    //ur template
    ),
    itemSelector: "div.item"
    });

    Ext.regModel('Account_Model', {
    //ur model
    });


    I hope this helps you.

Thread Participants: 2

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