I tried the code that you have given here and It seems working but the only problem is, the tableDnD loses control over the selected row when you have alert box in the drag start event, that causes the drop event failure. If we click outside the table, it
manages to fire the drop event. So, having alert box in drag start event is not a good idea. Remove it from drag start event and try.
I hope you are using alert box in event handler for testing purpose only, if yes, then use some other technique to trace event flow.
erankitkhare, sadly seems that there`s a know issue regarding tableDnd and IE.
There`s a workaround here: http://stackoverflow.com/questions/11765366/tablednd-ondrop-event-not-firing
This did not work for me because it removes the uuid from the table, but can help you.
==============================================
André Baltieri
São Paulo - Brazil
http://www.insidedotnet.com.br/
Twitter: @andrebaltieri
==============================================
erankitkhare
Member
3 Points
8 Posts
onDrop not working in tableDnD
Jul 23, 2012 07:04 AM|LINK
I am using JQuery "tbleDnD" plugin but some how my onDragStart is working but , onDrop in not being called.
$("#table").tableDnD({ onDrop: function(table, row) {alert('1');}, onDragStart: function(table, row) { alert('2'); } });Song-Tian - ...
All-Star
43697 Points
4304 Posts
Microsoft
Re: onDrop not working in tableDnD
Jul 25, 2012 05:42 AM|LINK
Hi,
Please debug with IE Developer Tools. Any more question, please feel free to reply.
Feedback to us
Develop and promote your apps in Windows Store
rnivash
Member
312 Points
62 Posts
Re: onDrop not working in tableDnD
Jul 25, 2012 07:12 AM|LINK
Hi,
I tried the code that you have given here and It seems working but the only problem is, the tableDnD loses control over the selected row when you have alert box in the drag start event, that causes the drop event failure. If we click outside the table, it manages to fire the drop event. So, having alert box in drag start event is not a good idea. Remove it from drag start event and try.
I hope you are using alert box in event handler for testing purpose only, if yes, then use some other technique to trace event flow.
Note: Tested using source code given in tableDnD web "http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/"
erankitkhare
Member
3 Points
8 Posts
Re: onDrop not working in tableDnD
Jul 26, 2012 04:49 AM|LINK
Thank you..Will try that and get back to u :)
erankitkhare
Member
3 Points
8 Posts
Re: onDrop not working in tableDnD
Jul 26, 2012 04:50 AM|LINK
Yes , I was using Alert only for Debugging purpose only... Will try somethings and if any luck or bad Luck will report
Thank you all for Replying.
AndreBaltier...
Member
60 Points
15 Posts
Re: onDrop not working in tableDnD
Jan 10, 2013 08:09 AM|LINK
erankitkhare, sadly seems that there`s a know issue regarding tableDnd and IE.
There`s a workaround here: http://stackoverflow.com/questions/11765366/tablednd-ondrop-event-not-firing
This did not work for me because it removes the uuid from the table, but can help you.
André Baltieri
São Paulo - Brazil
http://www.insidedotnet.com.br/
Twitter: @andrebaltieri
==============================================