An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
|
<script id="ListBoxItemTransfer" type="text/javascript">
function lbdropped(sender, args) {
sender.trackChanges();
var destinationListBox = transferManager.performTransfer(sender, args);
sender.commitChanges();
//Call back function
var senderListboxId = sender.get_id();
if (senderListboxId == 'rlbFuncImprovement' || senderListboxId == 'rlbTechImprovement' || senderListboxId == 'rlbConsolidation') {
var objectIds = '';
var items = args.get_sourceItems();
var i = 0;
for (i = 0; i < items.length; i++) {
if (objectIds == '') {
objectIds = items[i].get_value();
}
else {
objectIds = objectIds +
',' + items[i].get_value();
}
}
var arrgument = senderListboxId + ',' + objectIds + ", 0";
CallServer(arrgument,
'');
}
}
//Multi-list box transfer generic code
(
function ($) {
transferManager =
function () { }
transferManager.performTransfer =
function (sender, args) {
var destinationItemIndex = this._getDestinationIndex(args);
var destinationListBox = this._getDestinationListBox(args);
if (destinationListBox == null || destinationListBox.get_id() == document.getElementById('rlbProposed').id)
return;
var reorderIndex = args.get_dropPosition() == 0 ?
destinationItemIndex : destinationItemIndex + 1;
var items = args.get_sourceItems();
this._transfer(items, destinationListBox, reorderIndex);
return destinationListBox;
}
transferManager._transfer =
function (items, destination, reorderIndex) {
$.each(items,
function (index, item) {
destination.trackChanges();
destination.get_items().insert(reorderIndex, item);
destination.commitChanges();
});
}
transferManager._getDestinationIndex =
function (args) {
var destinationItem = args.get_destinationItem();
if (destinationItem)
return destinationItem.get_index();
return 0;
}
transferManager._getDestinationListBox =
function (args) {
var destinationItem = args.get_destinationItem();
if (destinationItem) {
var id = destinationItem.get_listBox().get_id();
return $find(id);
}
var parent = $(args.get_htmlElement()).parent();
if (parent.is(".RadListBox")) {
var id = parent[0].id;
return $find(id);
}
else if (parent.is(".rlbGroup")) {
var id = parent[0].parentNode.id;
return $find(id);
}
return null;
}
})($telerik.$);
</script>
function
ContextMenuClicked(sender, args) {
window.open(args._node._properties._data.value,
'_blank');
}
This function get the value property of the treeview node where the URL is stored, but unfortuanetely this doesn't work because it is stopped by the IE popup blocker.
I suppose I could create a unique context menu for every single node - but there might be hundreds of nodes and I worry this would make things slow.
Please can you think of a way I can solve this problem?
Many thanks for your help
<div style="background-color:silver;height:300px;width:300px;padding:20px;"> <div style="position:absolute;height:200px;width:200pxcolor:white;"> Hello World </div></div>
When a Rad Window appears, the entire page reloads. That should not happen. This is happening for all Rad Windows