1. #1
    Sencha User hectorgomis's Avatar
    Join Date
    Feb 2013
    Location
    Spain
    Posts
    42
    Answers
    1
    Vote Rating
    0
    hectorgomis is on a distinguished road

      0  

    Default Answered: Change form field to readonly dinamically

    Answered: Change form field to readonly dinamically


    I new to show a view, and before to paint, I need to change every field of the form to readOnly = true. It looks like is simple, but I don't know how to do it.

    Here my controller
    Code:
    this.getMyForm().items.each(function(f){
        f.readOnly=true;  //not working!!!!
    });
    Thanks!

  2. try
    Code:
    Ext.each(
      this.getMyForm().query('textfield'), 
      function(field){
        field.setReadOnly(true)
     }
    )

  3. #2
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    691
    Answers
    21
    Vote Rating
    12
    mrsunshine will become famous soon enough

      1  

    Default


    try
    Code:
    Ext.each(
      this.getMyForm().query('textfield'), 
      function(field){
        field.setReadOnly(true)
     }
    )

  4. #3
    Sencha User hectorgomis's Avatar
    Join Date
    Feb 2013
    Location
    Spain
    Posts
    42
    Answers
    1
    Vote Rating
    0
    hectorgomis is on a distinguished road

      0  

    Default


    Perfect!!! It's working! Thanks!!!

Thread Participants: 1

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