cboin
November 17, 2020, 9:33pm
1
Hello,
I cannot figure out if it is possible to have items able to be dragged around in a list or table in Vision.
I would like the user to be able to change the order of a list by dragging the items to their desired order.
Please refer to ‘Single Listbox’ example at this link: https://ej2.syncfusion.com/react/documentation/list-box/drag-and-drop/
I think you might need to use the Vision Power Table to have drag and drop.
A power table is your best bet; there's a recent post by @samngeru that looks like it's a lot of what you're looking for:
This allows a single row or multiple rows to be moved between the same table. Seems to work with multiple and single interval selection mode. Sorry for the list comprehensions. The try and except block are needed because of indexing issues when moving rows to the bottom of a dataset.
data = self.data
allRows = [[rowData.getValueAt(rowNdx, colNdx) for colNdx in range(rowData.columnCount)] for rowNdx in range(rowData.rowCount)]
try:
self.data = system.dataset.deleteRows(self.data,rows)
self…
cboin
November 17, 2020, 9:41pm
4
Interesting OK. Thank you @PGriffith and @Kevin.Herron . You are my rocks.