1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    21
    Vote Rating
    0
    waken is on a distinguished road

      0  

    Default Unanswered: Make form readOnly/editable - except fields with property readOnly:true

    Unanswered: Make form readOnly/editable - except fields with property readOnly:true


    How make form readOnly/editable - except fields with property readOnly:true
    ie. user "Edit" click makes some fieds on form editable, "Cancel" makes all fields readOnly
    additional property to Ext.Field and function to Form.Basic?

  2. #2
    Sencha User
    Join Date
    Jan 2010
    Posts
    21
    Vote Rating
    0
    waken is on a distinguished road

      0  

    Default


    Nobody?

    Solution, any comments?

    PHP Code:
    Ext.override(Ext.form.field.Base,{
        
    readOnlyMyfalse
    }); 

    HelperSetReadOnly = function(fbReadOnly){
        
        if (
    instanceof Ext.form.FieldSet) {            
            
    f.items.each(function (ff) {
                
    HelperSetReadOnly(ff);    
            });
        }
        
        if ((
    f.ReadOnlyMy == null) || (f.ReadOnlyMy == false))
            if (
    f.isFormField) {
                if (
    bReadOnly === true) {
                    
    f.setReadOnly(true);
                } else {
                    
    f.setReadOnly(false);
                }              
           }
    }

    Ext.override(Ext.form.Panel,{
        
    setReadOnly: function(bReadOnly) {
            
    this.items.each(function(f){
                if (
    instanceof Ext.form.FieldSet) {                
                    
    f.items.each(function (ff) {
                        
    HelperSetReadOnly(ffbReadOnly);
                    });
                }else{
                    
    HelperSetReadOnly(f,bReadOnly);
                }
            });
        }
    }); 

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar