Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: [FIXED-609] RadioGroup Readonly

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11
    Ext JS Premium Member dtex-lab's Avatar
    Join Date
    Sep 2009
    Location
    Italy
    Posts
    411

    Default

    Hi
    Any comments about my possibile fix for this issue ?
    Ty
    we make IT work for you

  2. #12
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,250

    Default

    I don't think it's a good idea. Read only checkboxes/radios aren't really a great idea.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #13
    Ext JS Premium Member dtex-lab's Avatar
    Join Date
    Sep 2009
    Location
    Italy
    Posts
    411

    Default

    Can you explain why you think is not a great idea?
    You must think we are creating ERP application and often there are reaonly fields.

    I bealieve that a framework like extJS should implements the solution. If the developer decide to use it... ok..
    In my mind a RIA framework should also bypass browser limit and implements new features...

    ty and bye
    we make IT work for you

  4. #14
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,250

    Default

    Well, if I were using a form and I clicked on a checkbox that didn't look like it was disabled and it didn't do anything, I would be mighty confused.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  5. #15
    Ext JS Premium Member dtex-lab's Avatar
    Join Date
    Sep 2009
    Location
    Italy
    Posts
    411

    Default

    In my cases all reaonly fields have an addition class css in order to show the status... so the same can be for a textfield in your case... in this case you can also set the focus on the field....

    Code:
     {
             xtype: 'textfield',
             readOnly : true
    }
    So from your point of view, the readOnly config parameter should be remove from all components...
    we make IT work for you

  6. #16
    Sencha User
    Join Date
    May 2011
    Posts
    17

    Default

    Quote Originally Posted by dtex-lab View Post
    A solution can be into Ext.form.RadioGroup:

    Code:
        bufferChecked : function(){
        if(this.readOnly)
           {
         this.reset();
         return false;
        }
     
            var out = null;
            this.eachItem(function(item){
                if(item.checked){
                    out = item;
                    return false;
                }
            });
            this.fireEvent('change', this, out);
        },
    Evant (ExtJS Team), can you check if it is a valid solution also for you and implements it in a next ExtJS Release?

    It is working for me.
    Ty
    Hey where did you put this config? In the checkboxgroup/radiogroup configuration? Because there is no bufferChecked config in the docs. I'm using ExtJS 3.4.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •