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

Controls in Template for Treeview loose focus on mouse up

6 Answers 198 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 07 Dec 2012, 05:18 PM
Maybe this is fixed in the v2012.3.1121 internal build?  I don't have access to that download.  All I see is the v2012.3.1114 build.

I upgraded from v2012.2.710 to v2012.3.1114. After that my treeview templates started responding to the mouseup event when I wanted to edit a value in a control within the template.  When I click in a textbox on mouseup the control looses focus and the tree node selector gains focus instead. If I click into the textbox then while holding down on the mouse button move the cursor out of the tree container the cursor keeps its focus on the control I originally clicked.  This makes the controls in a tree node unable to edit.  Every time a user clicks in a control to start editing the control losses focus and the tree arrow becomes focused. 

6 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 11 Dec 2012, 11:03 AM
Hello Justin,

 
I changed ticket type to "support" to be able to send you the latest internal build, which includes the fix.

Indeed the treeview does not honour focusable elements inside of widget's template. I confirm this as a bug, which we already addressed. As I mentioned, the latest internal build is attached to this message. Give it a try and let me know if the problem still persists.

As a gratitude for your involvement I have updated your Telerik points.

Regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Justin
Top achievements
Rank 1
answered on 11 Dec 2012, 04:20 PM
The 2012.3.1211 fixed this issue.  Thank you for the response.
0
Tim
Top achievements
Rank 1
answered on 22 Jan 2013, 06:10 PM
Hello,

I have version 2012.3.1315.  The upgrade to the latest version fixed the item noted in the thread.   The textbox inside my treeview indeed retained focus when clicked into it.  I then enabled DragAndDrop on the tree.  After enabling DragAndDrop the textbox inside my treeview would no longer retain focus.  Please advise.  
0
Georgi Krustev
Telerik team
answered on 24 Jan 2013, 09:26 AM
Hello,

The desired functionality is not supported. You should not enable DragAndDrop if you want to have editable item content.
 

Regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tim
Top achievements
Rank 1
answered on 25 Jan 2013, 02:51 PM
Recieved from the Kendo Team

A possible workaround is to stop the mousedown event propagation on the inputs so that it is not handled by the kendoDraggable implementation e.g.
$(function () {
    $("#treeview").on("mousedown""input"function (e) {
        e.stopPropagation();
    })
});
Kind regards,
Daniel 
the Telerik team
0
Manuel Hernandez
Top achievements
Rank 1
answered on 06 Oct 2014, 06:01 AM
This did not work for me. The field continues on to drag the item. Is there a way to immediately drop the item in place to then continue to edit the textbox?
Tags
TreeView
Asked by
Justin
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Justin
Top achievements
Rank 1
Tim
Top achievements
Rank 1
Manuel Hernandez
Top achievements
Rank 1
Share this question
or