Controls in Template for Treeview loose focus on mouse up

7 posts, 0 answers
  1. Justin
    Justin avatar
    4 posts
    Member since:
    Oct 2012

    Posted 07 Dec 2012 Link to this post

    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. 
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 11 Dec 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Justin
    Justin avatar
    4 posts
    Member since:
    Oct 2012

    Posted 11 Dec 2012 Link to this post

    The 2012.3.1211 fixed this issue.  Thank you for the response.
  5. Bob van de Sande
    Bob van de Sande avatar
    2 posts
    Member since:
    Dec 2003

    Posted 22 Jan 2013 Link to this post

    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.  
  6. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 24 Jan 2013 Link to this post

    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!
  7. Bob van de Sande
    Bob van de Sande avatar
    2 posts
    Member since:
    Dec 2003

    Posted 25 Jan 2013 Link to this post

    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
  8. Manuel Hernandez
    Manuel Hernandez avatar
    3 posts
    Member since:
    Sep 2013

    Posted 06 Oct 2014 in reply to Bob van de Sande Link to this post

    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?
Back to Top
Kendo UI is VS 2017 Ready