I am trying (somewhat unsuccessfully) to replicate Context Menu functionality from the ASP.NET version.
Delete
In the older version, it was possible to prompt the user in Javascript before deleting a node and cancel the request:
if (itemText == "Delete")
{
return confirm("Are you sure?");
}
In the Prometheus version, I can ask the question, but the node is deleted irrespective of the answer.
Rename
Although I can edit the Node using F2, I would also like to have a 'Rename' option on a Context Menu. In the ASP.NET version, this was easily accomplished:
if (itemText == "Rename")
{
node.StartEdit();
}
With Prometheus controls, similar code puts the node briefly into edit mode, but then returns to normal almost immediately
Can you let me know how I can get round these problems?
Cheers
paul