Hi,
I am trying to implement drag and drop feature in ultrawebgrid. I got the below code from another post. See below:
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); } }
But when I am executing the above code I am getting the below javascript error:
'$IG' is undefined
Please tell me why this error is coming and what is the solution to solve this error?
I am using .net f\w 3.5 and infragistics version 9.1.
Please try to respond asap as I need to complete this soon.
Thanks in advance.
Gaurav,