Clicking checkbox on node quickly doesn't always work properly

5 posts, 0 answers
  1. Kyle
    Kyle avatar
    17 posts
    Member since:
    Aug 2011

    Posted 27 May 2013 Link to this post

    Using version 2013.1.417.35 and Internet Explorer 10.

    If you attempt to check/uncheck the checkbox of a node in a RadTreeView quickly, the node does not always successfully check or uncheck.  (No postbacks occur.)  Is there a reason for this, or is it a small bug?

    Thanks,
    Kyle
  2. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 30 May 2013 Link to this post

    Hi Kyle,

    This behavior is caused by a quirk in IE and can be reproduced with a simple <input type='checkbox' /> element. The reason for this is that IE has a different flow of events when you doubleclick something. The issue is explained in the following article:
    http://webbugtrack.blogspot.com.br/2008/01/bug-263-beware-of-doubleclick-in-ie.html

    Since the second click event isn't fired, the checkbox is checked only once. We will include a fix for this quirk in the RadTreeView, but in the meantime you can use the following workaround:
    (function() {
        $telerik.$("input[type='checkbox']")
            .on("dblclick", function(event) {
                if ($telerik.isIE) {
                    event.target.click();
                }
            });
    }());

     

    Regards,
    Bozhidar
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ratnesh
    Ratnesh avatar
    3 posts
    Member since:
    May 2013

    Posted 17 Jul 2014 Link to this post

    Hi Kyle ,

    can you provide the solution for the below-

    1.how can i add $telerik in my MVC application. its shows "$Telerik" is undefined.
    2. In Kendo Treeview , When I checked all checkboxes for saving data ,its saved in database, but when I am retrieving data from
    database ,all checkboxes showing unchecked.this problem exist with Internet Explorer 10 even chrome and firefox working fine.

    Thanks

    Ratnesh
  5. Ratnesh
    Ratnesh avatar
    3 posts
    Member since:
    May 2013

    Posted 17 Jul 2014 in reply to Bozhidar Link to this post

    Hi Bozhidar ,

    can you provide the solution for the below-

    1.how can i add $telerik in my MVC application. its shows "$Telerik" is undefined.

    2. In Kendo Treeview , When I checked all checkboxes for saving data ,its saved in database, but when I am retrieving data from

    database ,all checkboxes showing unchecked.this problem exist with Internet Explorer 10 even chrome and firefox working fine.



    Thanks



    Ratnesh
  6. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 18 Jul 2014 Link to this post

    Hello Ratnesh,

    The provided work-around is for the UI for ASP.NET AJAX. We could not reproduce the said problem in the online demos, but here is the code ported to Kendo UI:

    $("input[type='checkbox']")
            .on("dblclick"function(e) {
                if (kendo.support.browser.msie) {
                    e.target.click();
                }
            });
    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017