This is a migrated thread and some comments may be shown as answers.

Clicking checkbox on node quickly doesn't always work properly

4 Answers 165 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 2
Veteran
Kyle asked on 27 May 2013, 10:29 PM
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

4 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 30 May 2013, 08:20 AM
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.
0
Ratnesh
Top achievements
Rank 1
answered on 17 Jul 2014, 05:42 AM
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
0
Ratnesh
Top achievements
Rank 1
answered on 17 Jul 2014, 05:43 AM
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
0
Alex Gyoshev
Telerik team
answered on 18 Jul 2014, 03:18 PM
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!
 
Tags
TreeView
Asked by
Kyle
Top achievements
Rank 2
Veteran
Answers by
Bozhidar
Telerik team
Ratnesh
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or