1. #31
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    1
    webxells is on a distinguished road

      0  

    Default


    I did:


    PHP Code:
    var xml_DokumentenInhalt_Store_Flat = new Ext.data.XmlStore({
        
    autoLoadtrue,
        
    storeId 'xml_DokumentenInhalt_Store_Flat',
        
    url'data/example-full.xml',

        
    record 'node',
        
    fields: [
            {
    name'document_name'mapping: function (node) {
                return 
    Ext.DomQuery.select('document_name'node.parentNode);
            }},
            {
    name'id'mapping'@node_id'},
            
    'title',
            
    'subtitle',
            
    'node_content'
        
    ],
        
    listeners: {
            
    load: function() {
                
    alert('test');
            }
        }
        
    })

    ...


    /**
     * DataView Template 
     */
    var tpl_Dokument_Inhalt = new Ext.XTemplate(
        
    '<div class="DokumentListeInhalt">',
        
    '<tpl for=".">',

                
    '<div class="DokumentInhaltNode">',
                    
    '<h1>{title}</h1>',
                    
    '<h2>{subtitle}</h2>',
                    
    '<p>{node_content}</p>',
                    
    '<div class="btn" nodeid="{id}"></div>'//NodeID an Button anhängen 
                
    '</div>',

        
    '</tpl>',
        
    '</div>'
    );

    tpl_Dokument_Inhalt.compile(); 
    But nothing is loaded. The old code was:

    PHP Code:
    var xml_DokumentenInhalt_Store = new Ext.data.XmlStore({
        
    autoLoadtrue,
        
    storeId 'xml_DokumentenInhalt_Store',
        
    url'data/example-full.xml',
        
    record '/',
        
    fields : ['document_name',{
            
    name'nodes',
            
    convert: function(rawitem){
                var 
    nodes Ext.DomQuery.select('node'item);

                
    data = [];
                
    Ext.each(nodes, function(node){
                    
    data.push({
                        
    idnode.getAttribute('node_id'),
                        
    titleExt.DomQuery.selectValue('title'node),
                        
    subtitleExt.DomQuery.selectValue('subtitle'node),
                        
    node_contentExt.DomQuery.selectValue('node_content'node),
                        
    //text: node.textContent || node.text,
                    
    });
                });
                
                return 
    data;

            }
        }],
        
    listeners: {
            
    load: function () { alert('test'); }
        }
        
    }); 
    Any idea? The store data is empty, the second has data.

  2. #32
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    1
    webxells is on a distinguished road

      0  

    Default


    Sorry, but nothing is loaded with this code above. I could not find an error.

  3. #33
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    87
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    It really shouldn't be empty! How are you checking this?

    ps. I made a small mistake on the document_name. It should be:
    Code:
    record : 'node',
    fields: [
        {name: 'document_name', mapping: function (node) {
            while (node && node.tagName.toLowerCase() != 'document') {
                node = node.parentNode;
            }
            return Ext.DomQuery.selectValue('document_name', node.parentNode);
        }},
        {name: 'id', mapping: '@node_id'},
        'title',
        'subtitle',
        'node_content'
    ],

  4. #34
    Sencha User
    Join Date
    Apr 2010
    Posts
    2
    Vote Rating
    0
    marcolara is on a distinguished road

      0  

    Default


    This is an amazing addition to the user library. I have a question regarding the implementation of ComponentDataView and radiogroup. I have the following code and the selectors on the radio buttons are not working because it sets the same radio button name for each record/combogroup found in the data set:
    PHP Code:
    {
                    
    xtype'compdataview',
                    
    storestore,
                    
    tplthis.testimonialRecordTmpl,
                    
    autoHeighttrue,
                    
    multiSelectfalse,
                    
    overClass'x-view-over',
                    
    itemSelector'div.story',
                    
    emptyText'<h1>No Testimonials</h1><p>There are currently no testimonials to review</p>',
                    
    items: [{
                        
    xtype'radiogroup',
                        
    renderTarget'div.post_actions',
                        
    columns1,
                        
    items: [{
                            
    boxLabel'Post',
                            
    name'post',
                            
    inputValue1
                        
    }, {
                            
    boxLabel'Reject',
                            
    name'post',
                            
    inputValue0
                        
    }]
                    }]
                } 
    Is there a way to render components and dynamically assigning different component attributes (like id, name etc...) on each of them on the loop in order to avoid this kinds of problems?

  5. #35
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    1
    webxells is on a distinguished road

      0  

    Default


    Hello,

    I have a problem with complistview. Firebug say's:

    component is undefined
    [IMG]chrome://firebug/content/blank.gif[/IMG] c = component.render ?

    in 46

    sourcecode from first page:
    PHP Code:
                    var component columns[j].component;
                    
    component.render ?
                        
    component.cloneConfig() :
                        
    Ext.create(componentthis.defaultType); 
    How to use the extended ListView?

  6. #36
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    87
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Did you look at the ComponentListView example? You need to define a component for each column.

  7. #37
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    1
    webxells is on a distinguished road

      0  

    Default


    Ups, sry

    Let's try again .

    Thanks.

  8. #38
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    1
    webxells is on a distinguished road

      0  

    Default Blank

    Blank


    Is there a way to let component blank?

  9. #39
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    87
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Not in this version, you would need to modify renderItems for that to only render a component when one is defined.

  10. #40
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    1
    webxells is on a distinguished road

      0  

    Default


    OK,

    I did this:

    PHP Code:
    renderItems : function(startIndexendIndex){
            var 
    ns this.all.elements;
            var 
    args = [startIndex0];
            for(var 
    startIndex<= endIndexi++){
                var 
    args[args.length] = [];
                for(var 
    columns this.columns0len columns.lengthclenj++){
                    var 
    component columns[j].component;
                    
                    
    //If no component is defined
                    
    if (component == undefined) {
                      return;
                    }
                    
                    
    component.render ?
                        
    component.cloneConfig() :
                        
    Ext.create(componentthis.defaultType);
                    
    r[j] = c;
                    var 
    node ns[i].getElementsByTagName('dt')[j].firstChild;
                    if(
    c.renderTarget){
                        
                        
    //If no renderTarget was found - prevent errors
                        
    if (Ext.DomQuery.selectNode(c.renderTargetnode)) {
                          
    c.render(Ext.DomQuery.selectNode(c.renderTargetnode));
                        }
                        
                    }else if(
    c.applyTarget){
                        
    c.applyToMarkup(Ext.DomQuery.selectNode(c.applyTargetnode));
                    }else{
                        
    c.render(node);
                    }
                    if(
    c.applyValue === true){
                        
    c.applyValue columns[j].dataIndex;
                    }
                    if(
    Ext.isFunction(c.setValue) && c.applyValue){
                        
    c.setValue(this.store.getAt(i).get(c.applyValue));
                        
    c.on('blur', function(f){
                            
    this.store.getAt(this.index).data[this.dataIndex] = f.getValue();
                        }, {
    storethis.storeindexidataIndexc.applyValue});
                    }
                }
            }
            
    this.components.splice.apply(this.componentsargs);
        } 
    So look at:

    PHP Code:
    //If no component is defined
                    
    if (component == undefined) {
                      return;
                    } 
    and:

    PHP Code:
    if (Ext.DomQuery.selectNode(c.renderTargetnode)) {
                          
    c.render(Ext.DomQuery.selectNode(c.renderTarget,  node));
                        } 
    So component will not be necessary.

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..."