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

Properties of screen Positioning don't work with event "onDrop" IE10 on Windows 8 Consumer Preview. kendo version 2012.2.710

2 Answers 40 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 28 Sep 2012, 09:21 PM
Hello.
When I try to invoke the "onDrop" event on "kendoDropTarget" on ie 10 using Windows 8 Consumer Preview, I can't find all the properties relative to the positioning on the screen:
e.pageX
e.pageY
e.screenX,
e.screenY
e.clientX,
e.clientY

The same code works on Firefox 15.0.1

Thanks in advance,
Marco

2 Answers, 1 is accepted

Sort by
0
Andy
Top achievements
Rank 1
answered on 18 Mar 2013, 01:13 PM
I have this issue as well, in RTM version of IE10 on Windows 8 (haven't tried Windows 7 yet)

When using IE10 and setting up a drop event on kendoDropTarget, the event parameter passed in is missing clientX,clientY and the other position information as noted in the original thread.
0
Andy
Top achievements
Rank 1
answered on 19 Mar 2013, 07:17 PM
The fix for this (supplied from support) was to use the "originalEvent" property of the event:



function droptargetOnDrop(e) {

    e.originalEvent.clientX


    e.originalEvent.clientY

    e.originalEvent.screenX


    e.originalEvent.screenY

    e.originalEvent.pageX

    e.originalEvent.pageY

}

Tags
Drag and Drop
Asked by
Marco
Top achievements
Rank 1
Answers by
Andy
Top achievements
Rank 1
Share this question
or