Hi,
I'm using a RadTreeView (in Prometheus v. 2007.3.1314.20) for both site navigation and administration. When I click on a node the browser redirects to the page it represents, and when I drag a node elsewhere, it moves the page it represents to that new logical location. This works perfectly at the moment for single nodes.
I need the ability to move multiple nodes at once. I can do this already if I select the nodes via checkboxes and then drag them to their new location, but I don't like having the checkboxes enabled. I prefer the method of holding the CTRL key while clicking the nodes, and then dragging them.
The problem is that when I click on a node - even if I'm holding CTRL down - the page fires the javascript that I specify in OnClientNodeClicked. This javascript redirects the browser to another page. I want some way of preventing the redirect from happening if I'm holding down CTRL.
Here is the javascript called via OnClientNodeClicked:
It'd be really nice if the TreeView could just be set to ignore OnClientNodeClicked if CTRL is being held down, but another solution could just be for me to check if CTRL was being held down in the loadNode function itself. However, I can't find any keydown information in the eventArgs. Do you have any suggestions on how I can proceed?
Many thanks for a great product!
I'm using a RadTreeView (in Prometheus v. 2007.3.1314.20) for both site navigation and administration. When I click on a node the browser redirects to the page it represents, and when I drag a node elsewhere, it moves the page it represents to that new logical location. This works perfectly at the moment for single nodes.
I need the ability to move multiple nodes at once. I can do this already if I select the nodes via checkboxes and then drag them to their new location, but I don't like having the checkboxes enabled. I prefer the method of holding the CTRL key while clicking the nodes, and then dragging them.
The problem is that when I click on a node - even if I'm holding CTRL down - the page fires the javascript that I specify in OnClientNodeClicked. This javascript redirects the browser to another page. I want some way of preventing the redirect from happening if I'm holding down CTRL.
Here is the javascript called via OnClientNodeClicked:
| function loadNode(sender, eventArgs) |
| { |
| document.location.href = "index.aspx?id="+ node.get_value(); |
| } |
It'd be really nice if the TreeView could just be set to ignore OnClientNodeClicked if CTRL is being held down, but another solution could just be for me to check if CTRL was being held down in the loadNode function itself. However, I can't find any keydown information in the eventArgs. Do you have any suggestions on how I can proceed?
Many thanks for a great product!