ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: npdev13 on August 01, 2019, 08:31:35 pm

Title: Drop event in dropmodel stop drop object
Post by: npdev13 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,


Title: Re: Drop event in dropmodel stop drop object
Post by: paramvir 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