2 Replies Latest reply on Nov 30, 2007 12:43 AM by lucky_raga

    List drag & drop issue

    lucky_raga
      hi,

      I have two lists - available items list and selected items list.

      I want to drag and drop only if some condition satisfies for which i have code like

      onDragEnter(event) {
      if (fail) {
      DragManager.showFeedback(DM.NONE);
      return;
      }
      }

      When dragged and dropped if the condition fails the selected item is moved back to the drag position
      but it leaves a copy of this item in the selected list as well.
      I tried the above code in onDragDrop(event) as well but has the same result.

      How can i avoid a copy of the selected item on fail condition.

      Please advice.
      Lucky