Results 1 to 3 of 3

Thread: Disable / Deactivate clicking of check box

  1. #1
    Sencha User
    Join Date
    Jun 2015
    Posts
    18

    Default Answered: Disable / Deactivate clicking of check box

    Hello,

    I am trying to Disable / Deactivate clicking of a check box - disabled:true - disables it but the boxLabel css also changes which I do not want.

    Code:
    items:[             {
                    xtype: 'checkbox',
                    boxLabel: '0 Selected',
                    name: 'selected',
                    inputValue: 'selected',
                    id: 'select_count'
                }
            ]
    Options that I have tried, which do not seem to be working -

    Code:
    listeners: {
    	 beforecheckchange: function(){
    	     return false; // disable check
    	}
    }
     
     listeners: {'click' : function(t, e) {
    	e.stopEvent();
    	} 
    }
    
    
    processEvent: function () { return false; }
    Can someone help with this?

  2. Try setting disabledCls: '' so that the default disabled class isn't applied to the whole component.

  3. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579
    Answers
    165

    Default

    Try setting disabledCls: '' so that the default disabled class isn't applied to the whole component.
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  4. #3
    Sencha User
    Join Date
    Jun 2015
    Posts
    18

    Default

    Thanks Tristan

Similar Threads

  1. is there a keyboard way to exit editor without clicking on the check Icon
    By blomasky in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 29 Oct 2014, 1:21 PM
  2. How to disable chart legend clicking filter behavior?
    By adriand_hbe in forum Ext: Discussion
    Replies: 3
    Last Post: 19 May 2013, 1:13 AM
  3. Replies: 3
    Last Post: 14 May 2013, 3:21 PM
  4. Enable radio buttons on clicking check box in grid
    By Komal Vaswani in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 11 Jan 2011, 9:53 PM
  5. Automatically disable/deactivate Tab and all childs
    By htammen in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 27 Jul 2010, 11:49 PM

Tags for this Thread

Posting Permissions

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