I am trying to solve this problem, either:
a) Disable all drag and drop across all parts of the file explorer
or
b) Enable drag and drop inside the grid view, list view, tree view etc
1) As part of my testing and playing around with the file explorer, I tried setting these
FileExplorer1.FileList.ListView.Enabled = false;
FileExplorer1.FileList.Grid.Enabled = false;
FileExplorer1.ListView.Enabled = false;
FileExplorer1.Grid.Enabled = false;
FileExplorer1.FileList.ListView.ClientSettings.AllowItemsDragDrop = false;
FileExplorer1.FileList.Grid.ClientSettings.AllowRowsDragDrop = false;
All of which made no observable change to the control.
These however, did work as expected:
FileExplorer1.TreeView.EnableDragAndDrop = false;
FileExplorer1.TreeView.Enabled = false;
Why did the other lines have no effect?
2) To disable dragging and dropping for the file explorer, I'm told I can use this:
explorer.get_fileList().get_grid().add_rowDragStarted(RowDragStarted);
function RowDragStarted(grid, args) {
args.set_cancel(true);
}
Is there an easier way to disable or enable drag/dropping without going through every view for an entire File Explorer?
3) When inside the grid or thumbnail view, dragging a file over another folder does not trigger the move file event, but dragging over to the tree view does. How can I trigger this for the grid/thumbnail event?
Thanks,
Sean
a) Disable all drag and drop across all parts of the file explorer
or
b) Enable drag and drop inside the grid view, list view, tree view etc
1) As part of my testing and playing around with the file explorer, I tried setting these
FileExplorer1.FileList.ListView.Enabled = false;
FileExplorer1.FileList.Grid.Enabled = false;
FileExplorer1.ListView.Enabled = false;
FileExplorer1.Grid.Enabled = false;
FileExplorer1.FileList.ListView.ClientSettings.AllowItemsDragDrop = false;
FileExplorer1.FileList.Grid.ClientSettings.AllowRowsDragDrop = false;
All of which made no observable change to the control.
These however, did work as expected:
FileExplorer1.TreeView.EnableDragAndDrop = false;
FileExplorer1.TreeView.Enabled = false;
Why did the other lines have no effect?
2) To disable dragging and dropping for the file explorer, I'm told I can use this:
explorer.get_fileList().get_grid().add_rowDragStarted(RowDragStarted);
function RowDragStarted(grid, args) {
args.set_cancel(true);
}
Is there an easier way to disable or enable drag/dropping without going through every view for an entire File Explorer?
3) When inside the grid or thumbnail view, dragging a file over another folder does not trigger the move file event, but dragging over to the tree view does. How can I trigger this for the grid/thumbnail event?
Thanks,
Sean