Author Topic: Drop and Drop rows within the table only  (Read 566 times)

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 87
    • View Profile
Drop and Drop rows within the table only
« on: March 17, 2022, 09:36:53 am »
We are trying to implement drag n drop functionality in the param query grid. We have 3 grids on the same page. We want DnD on all the grids but want to DnD only within the tables. Currently, we can move the rows from one grid to another

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Drop and Drop rows within the table only
« Reply #1 on: March 17, 2022, 01:01:07 pm »
Please check dragModel.clsDnD and dropModel.accept options of the grids.

Example: https://paramquery.com/pro/demos/dnd_grids

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 87
    • View Profile
Re: Drop and Drop rows within the table only
« Reply #2 on: March 17, 2022, 04:29:16 pm »
Hello Paramvir,

Thanks for your reply.

As mentioned, I want to restrict DnD to other grids. I want to DnD functionality within the grid only

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Drop and Drop rows within the table only
« Reply #3 on: March 17, 2022, 05:47:14 pm »
Please assign unique values of dragModel.clsDnD and dropModel.accept options to each grid to prevent inter-grid DnD.

Please also check the API documentation about the significance of the above 2 options

https://paramquery.com/pro/api#option-dragModel

https://paramquery.com/pro/api#option-dropModel