Author Topic: Drop event in dropmodel stop drop object  (Read 1824 times)

npdev13

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
Drop event in dropmodel stop drop object
« on: August 01, 2019, 08:31:35 pm »
Hello,

I am using Tree grid with Drag & Drop functionality as attached fiddle.

http://jsfiddle.net/sg0v43zp/2/

I am using auto save functionality from one of the demo mentioned, however it is not with this fiddle.
What my problem is I want to manage the display order same as show in the tree. once come back to this screen again. To achieve that I need to save display order or rowIndex or something in the table so can do Order by that value. But problem is when I Drag & Drop one up or down then I don't know in which event I should write the logic.

I tried "drop" event of "dropModel" but when I writing it it stop drop object.

 drop: function (evt, ui) {
                       // want to write here some logic to set display order so in saving it save in db
                    }

Can you please help me how can I manage this Display order issue.

Majority of my functionality working just stucked in couple of requirement which trying to achieve in this pqgrid which is important, I will be appreciate for some solution.

Thanks,



paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Drop event in dropmodel stop drop object
« Reply #1 on: August 02, 2019, 01:16:38 pm »
moveNode event is fired at the end of every Drag n Drop operation.

https://paramquery.com/pro/api#event-moveNode