What am I doing wrong with drag and drop

2 posts, 0 answers
  1. Stan
    Stan avatar
    13 posts
    Member since:
    Sep 2012

    Posted 05 Feb 2013 Link to this post

    I have been able to get it working, but only part of the time - as in some drags will register, but others will slide back to the original spot and not work. This is as stripped down as I can make it not work:

        <div id="drop" style="border: solid 1px green; ">
            bla<br />bla<br />bla<br />bla<br />bla<br />
            <li id="t5" style="border:solid 1px red;">T5</li>
    <script type="text/javascript">
        $(function () {
                hint: function (e) {
                    return e.clone();
                drop: function (e) { console.log(e); }

    With that, the drops will not register (nothing gets logged), but if I simply change 'div#drop' to 'body' (so it catches everything), the drop will log.  What am I not understanding?  I have nothing else on this test page other than a jquery 1.8.2 reference and kendo.  Thank you.

  2. Petyo
    Petyo avatar
    2437 posts

    Posted 07 Feb 2013 Link to this post

    Hello Stan,

    The code you have posted seems ok - I tested it in the following jsbin (chrome, firefox, safari), and it seems to consistently log the object in question. I am not sure what goes wrong in your case. Is it possible for you to extend the example, along with more concrete instructions on how to reproduce it?

    Thanks in advance,
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top