can not get DragStatus.DropComplete always DragCancel

3 posts, 1 answers
  1. Vit100
    Vit100 avatar
    66 posts
    Member since:
    Oct 2012

    Posted 26 May 2011 Link to this post

    Hi guys,
    Any idea what could be wrong?
    Source and target on the same page in the same grid.

    OnDropInfo EvenHandler is called if mouse is over with dragged element. If  mouse btn released on the target Status=DragCancel.
    At the same time if mouse is leaving area Status=DropImposible - what is good.
    But nothing can make status have DragComplete status...

    My solution I can not show - as it is very big and depends on local webservices...so it will not work in your env.
  2. Answer
    Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 26 May 2011 Link to this post

    Hello Vit100,

     This sound like either source or destination has not approved this operation. You can do this in the corresponding DragQuery/DropQuery events through e.QueryResult. More information can be found on this help article

    Regards,
    Tsvyatko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Vit100
    Vit100 avatar
    66 posts
    Member since:
    Oct 2012

    Posted 26 May 2011 Link to this post

    Yep. I messed up with OnDragQuery event handler and e.QueryResult = true got inside of

     

     

    if (e.Options.Status == DragStatus.DragQuery) {}

     


    and was not called.

    after I moved e.QueryResult = true out of "if" statement everything started working.

    Thanks.
Back to Top