I am having the javascript for drag and drop the list items inside the list.But Whwn i am clicking on any list item i have the edit page navigation. It will redirect to that particular item editing screen. It is working fine in mobiles. But when doing the same in tablet, instead of moving to the editing screen, it is duplicating the list item. Anyone please suggest some ideas.
Thanks in Advance
Bala
Hi Maria,
Thank you for your response and suggestions. I achieved this by using the Ontouchstart event.
Thanks
Are you forcing the user to select the the record prior to "drag" it?
It seams the tablet is regarding the click as a little "drag" taking in account only the "key down" and never regarding the "click" as a whole which includes "Key down" and "key up".
Hope this give you some ideas.
Graça
Thanks for your response. Drag and drop functionality is working fine for me in tablet as well. My only issue is when the user clicking on the Edit button which is inside the list item, it is duplicating that particular item instead of navigating to the edit page.
Hi!
It duplicates the item when you drag it just a little bit but not out of the line?
If so , perhaps solving that problem may help to solve the duplicating problem, but i don't know if it solve the clicking.
Regards
Hi again!
You can try another thing. I have never done but may work.
In the edit page navigation , instead of using the "onclick" event use the "onkeydown" event. That's the same one used to the drag , so perhaps the system can recognize you want to do a different thing on that specific place.