PDA

View Full Version : Restricting store to fire 'destroy' api on drag and drop of grid..



KnowledgeSeeker
23 Dec 2013, 6:31 AM
I am using two grids on a single page with drag and drop feature. I have used api in store to populate both the grids. When I am dragging a record from one grid and dropping on another grid, the store is expecting 'destroy' URL and throwing an error 'URL is null. I can not provide 'destroy' URL because I have to write custom method on drag and drop. How can I prevent my store to use 'destroy' api when using drag and drop?

slemmon
13 Jan 2014, 4:31 PM
If you set copy: true on the grid's view it'll allow for the copying of records instead of destroying them from one grid and placing them in another. That way you can handle the destroying of the source record yourself on the drop event.

2kt