简体   繁体   中英

jqGrid drag and drop into a folder

I have a jqGrid which contains folders and documents. I want to be able to drag and drop the documents into the folders within the same grid. Does jqGrid support that, either directly or via a few different plugins, or do I have to write custom javascript for it?

Thanks.

jqGrid has support for dragging and dropping rows between two grids.

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jquery_ui_methods#drag_and_drop_rows_between_grids

You may be able to connect the grid to itself and handle the events (assuming the events fire when a grid is connected to itself)

connectWith - Determines the target grid(s) to which the row should be dropped. The option is a string. In case of more than one grid the ids should be delemited with comma - ie ”#grid1, #grid2”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM