[CLOSED] Disable check when user clicks label

  1. #1

    [CLOSED] Disable check when user clicks label

    Is there any way to disable the check / uncheck behaviour when user clicks on checkbox boxlabel?
    Last edited by Daniil; Jun 24, 2014 at 3:16 PM. Reason: [CLOSED]
  2. #2
    You would have to go in with client-side code and remove the "for" attribute of the Label. Maybe in the AfterRender Listener.

    This is not something we would recommend doing because you're messing with known UI conventions that users expect.

    Hope this helps.
    Geoffrey McGill
    Founder & CEO
  3. #3
    Hi @josegarcia,

    I can suggest this solution.
    <ext:Checkbox runat="server" BoxLabel="BoxLabel">
            <AfterRender Handler="this.wrap.child('label').dom.removeAttribute('for')" />

Similar Threads

  1. How to disable legend items clicks?
    By Pradip in forum 2.x Help
    Replies: 3
    Last Post: Mar 12, 2014, 5:22 AM
  2. [CLOSED] Items in comboBox should be loaded when user clicks
    By Tarun_Chand in forum 2.x Premium Help
    Replies: 1
    Last Post: Mar 26, 2013, 12:48 PM
  3. Edit store record when user clicks on the row
    By Mr.Techno in forum 1.x Help
    Replies: 6
    Last Post: Aug 29, 2011, 2:40 PM
  4. Replies: 1
    Last Post: May 27, 2009, 5:55 AM
  5. Replies: 2
    Last Post: May 27, 2009, 5:51 AM

Posting Permissions