Disable client javascript on click

Posted by: linkservice on 10 September 2017, 11:32 am EST

  • Posted 10 September 2017, 11:32 am EST

    Is there a way to disable client javascript on click on every cell of the grid?

    I'm asking that because if i put a templatefield with a checkbox in a big grid every time i try to click on the checkbox it is VERY slow...


  • Replied 10 September 2017, 11:32 am EST

    You could stop the event propagation from the checkbox click event handler.

    First add the following function to the page.


      function stopPropagatingEvent(event) {
                // if stopPropagation exists run it on the original event
                if (event.stopPropagation)
                // otherwise set the cancelBubble property of the original event to true (IE)
                event.cancelBubble = true;

    Then call this method from the click event handler.


                        <input onclick="stopPropagatingEvent(event)" type="checkbox" /> <label>Test</label>

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels