Hi
I am trying to disable a button whenever a node is clicked.from the client side.
The Treeview has PostBack disable in it.
Also I notice that the Alerts inside the javascript functions are not firing up.
The code is a ascx file which is called from a aspx page. The Treeview sits in a RadAjaxPanel.
I make use of the following code with no success:
I am trying to disable a button whenever a node is clicked.from the client side.
The Treeview has PostBack disable in it.
Also I notice that the Alerts inside the javascript functions are not firing up.
The code is a ascx file which is called from a aspx page. The Treeview sits in a RadAjaxPanel.
I make use of the following code with no success:
<
script
type
=
"text/javascript"
>
function AssignEventHandler() {
alert("inside Assign");
var tree = $find("<%= rdTreeVwHIOptions.ClientID %>");
tree.add_nodeClicked(ClientNodeClicked);
}
function ClientNodeClicked(sender, args) {
alert("Node clicked!");
var btn = $find("<%= btnSave.ClientID %>");
btn.disabled = true;
}
</
script
>
Pls help me find a solution for this.
Thanks,
Amirtha