[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 2: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
  3. #3
    Hi @josegarcia,

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

Similar Threads

  1. How to disable legend items clicks?
    By Pradip in forum 2.x Help
    Replies: 3
    Last Post: Mar 12, 2014, 4:22 AM
  2. [CLOSED] Items in comboBox should be loaded when user clicks
    By Tarun_Chand in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 26, 2013, 11:48 AM
  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, 1:40 PM
  4. Replies: 1
    Last Post: May 27, 2009, 4:55 AM
  5. Replies: 2
    Last Post: May 27, 2009, 4:51 AM

Posting Permissions