Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2320
UltraWebGrid Firefox question
posted

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?

 

Parents
No Data
Reply Children
No Data