Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem with getting control id on drag and drop.

Problem with getting control id on drag and drop.

Scheduled Pinned Locked Moved ASP.NET
help
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Haider M Rizvi
    wrote on last edited by
    #1

    Hi, I am working on an application where I have to Drag n Drop selected item from DropDownList, I can successfully drag n drop items from selected list but I have a issue with mouseup event. The problem is that when I leave the dragged object mouseup event of that object fires, now what I want to do is to fire the event of the control where I am dropping item. One more thing, controls where I am dropping items are not fixed, they vary. Now I want to get the Id of the control where the element is dropped. Thanks in advance.

    D 1 Reply Last reply
    0
    • H Haider M Rizvi

      Hi, I am working on an application where I have to Drag n Drop selected item from DropDownList, I can successfully drag n drop items from selected list but I have a issue with mouseup event. The problem is that when I leave the dragged object mouseup event of that object fires, now what I want to do is to fire the event of the control where I am dropping item. One more thing, controls where I am dropping items are not fixed, they vary. Now I want to get the Id of the control where the element is dropped. Thanks in advance.

      D Offline
      D Offline
      daneroo
      wrote on last edited by
      #2

      To get the id of the item being dragged you could try storing it's id on the mouse down event, and then using it on the mouse up. To get the id of the control the item is being placed into, try using a hover event to set an id and then use that. -Dan

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups