Researching drag-and-drop with Infragistics 9.1. Installed version is 9.1.20091.1015.
I have a UltraWebGrid bound to some data.
In script I have... Which I got from the online documentation.
function pageLoad() { //alert('page load'); var ddb = new $IG.DragDropBehavior(); var grid = igtbl_getGridById("UltraWebGrid1"); var rows = grid.Rows; var count = rows.length; // Set the source for (var i = 0; i < count; i++) { // Get the HTML rows of WebGrid var row = rows.getRow(i).Element; ddb.addSourceElement(row); }
// Set the target (a simple static UltraWebTree) var tree = igtree_getTreeById("UltraWebTree1"); var treeNodes = tree.getNodes(); for (var i = 0; i < treeNodes.length; i++) { var node = treeNodes[i]; //If the current nodes text is equivalent to the folder name and is not the selected node if (node.getText().toUpperCase() == 'INBOX') { ddb.addTargetElement(node.Element, true); } }
In I.E. this makes all rows in the grid, draggable. And, when the tree node is "INBOX" it makes it a drop target. I really don't need anything more than this. I only need to simulate visually, the drag-and-drop, I don't need to actually move the element.
In IE, the code above works. In Firefox, it messes with the grid. The multi-select (or single-select) no longer works in the grid???
What am I doing wrong?
Hello nuhfeken,
It has been a while since you have made your post but I suppose the other community members can benefit from this answer as well.
So my research on your question shows that what you probably could do is to first install the latest Service Release for version 9.1 and test this behavior again.
You can also view our new samples for the Drag&Drop Framework here and test them with Firefox browser - http://samples.infragistics.com/aspnet/Samples/WebDragDrop/Organization/Basic/Default.aspx?cn=drag-drop-framework&sid=9feca9db-17b0-4fe1-8e1c-6b88de2db9e5
I hope that this information is helpful.