Hi,
I am using custom file content provider. Now I'm being able to do all other things on the context menu except the copy/paste.
Copy is working but when I'm pasting the file it is throwing a java script exception 'gridItem' not defined. Now Your script resource generating the follow code
as in the paste section there is no way to get the gridItem if I'm pasting on a folder. Is it a bug or am i making some mistake.
Please let me know.
thanks
Arpan
I am using custom file content provider. Now I'm being able to do all other things on the context menu except the copy/paste.
Copy is working but when I'm pasting the file it is throwing a java script exception 'gridItem' not defined. Now Your script resource generating the follow code
_onGridMenuItemClicked:function(f,k){var m=k.get_item().get_value(); |
var n,c; |
var i=this._gridContextMenuSelectedItem; |
if(i){n=i.get_dataItem(); |
c=this._getGridDataItemPath(n); |
}switch(m){case"Rename":var o=n.Name; |
var h=this.get_localization()["Rename"]; |
function e(p){if(p){this._renameGridItem(c,p); |
}}var d=this; |
var g=this.get_windowManager(); |
window.setTimeout(function(){g.radprompt(h,Function.createDelegate(d,e),330,100,null,h,o); |
},10); |
break; |
case"Delete":this.deleteSelectedItems(); |
break; |
case"Open":var j=this._findItemByPath(c); |
this.open(j); |
break; |
case"NewFolder":this.createNewDirectory(this.get_currentDirectory()); |
break; |
case"Upload":this._showUploadWindow(); |
break; |
case"Copy":this._copy("grid"); |
break; |
case"Paste":var l=this._findItemByPath(c); |
if(l==null||!l.isDirectory()){gridItem=this._getCurrentFolderItem(); |
}this._paste(gridItem); |
break; |
}this._gridContextMenuSelectedItem=null; |
} |
Please let me know.
thanks
Arpan