Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    27
    Vote Rating
    0
    Hanterdro is on a distinguished road

      0  

    Default [4.1.2a] filefield button text

    [4.1.2a] filefield button text


    The filefield button text is not shown if the filefield is initially invisible and later set via event to visible true.

    In 4.1.1 it was working.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,051
    Vote Rating
    658
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Please post a short test case.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    27
    Vote Rating
    0
    Hanterdro is on a distinguished road

      0  

    Default


    view
    PHP Code:
                items: [{

                    
    xtype'container',            
                    
    layout'fit',
                    
    hiddentrue,
                    
    itemId'myQuickTestContainer_URL',                
                    
                    
    items: {
                    
                        
    xtype'container',
                        
                        
    layout: {
                            
    type'hbox',
                            
    align'stretch'
                        
    },
                        
                        
    items: [{
                        
                            
    flex1,
                            
    xtype'textfield',
                            
    margin'0 10 0 0'
                        
                        
    },{
                        
                            
    xtype'button',
                            
    text'Check URL',
                            
    minWidth90
                                            
                        
    }]
                    
                    }
                },{
                
                    
    xtype'container',            
                    
    layout'fit',
                    
    hiddentrue,
                    
    itemId'myQuickTestContainer_Threat',
                    
    html'Enter Threat Name',
                    
                    
    items: {
                    
                        
    xtype'container',
                        
                        
    layout: {
                            
    type'hbox',
                            
    align'stretch'
                        
    },
                        
                        
    items: [{
                        
                            
    flex1,
                            
    xtype'textfield',
                            
    margin'0 10 0 0'
                        
                        
    },{
                        
                            
    xtype'button',
                            
    text'Check Threat',
                            
    minWidth90
                                            
                        
    }]
                    
                    }
                },{
                
                    
    xtype'container',            
                    
    layout'fit',
                    
    hiddentrue,
                    
    itemId'myQuickTestContainer_File',
                    
    html'Pick File',
                    
    items: {
                    
                        
    xtype'container',
                        
                        
    layout: {
                            
    type'hbox',
                            
    align'stretch'
                        
    },
                        
                        
    items: [{
                        
                            
    flex1,
                            
    xtype'filefield',
                            
    margin'0 10 0 0'
                        
                        
    },{
                        
                            
    xtype'button',
                            
    text'Check File',
                            
    minWidth90
                                            
                        
    }]
                    
                    }
                }] 
    controler

    PHP Code:
            this.control({
        
                
                
    '#myQuickTestSelector' : {
                
                    
    afterrender : function(obj) {

                        var 
    data obj.getStore().data.items[0];
                        
                        
    obj.select(data);
                        
                        
    obj.fireEvent("select"obj, [data]);
                    },
                    
                    
    select: function(objdata) {
                    
                        var 
    value data[0].getData().field1;
                        
                        var 
    url_obj Ext.ComponentQuery.query("#myQuickTestContainer_URL")[0];            
                        var 
    threat_obj Ext.ComponentQuery.query("#myQuickTestContainer_Threat")[0];            
                        var 
    file_obj Ext.ComponentQuery.query("#myQuickTestContainer_File")[0];
                        
                        
    url_obj.setVisible(false);
                        
    threat_obj.setVisible(false);
                        
    file_obj.setVisible(false);
                        
                        if(
    value === "url") {
                        
                            
    url_obj.setVisible(true);
                        }
                        
                        if(
    value === "threat") {
                        
                            
    threat_obj.setVisible(true);
                        }
                        
                        if(
    value === "file") {
                        
                            
    file_obj.setVisible(true);
                        }
                    
                    }
                }
            }); 

Thread Participants: 1