I read in the documentation that "Every collapse of a node causes a postback if the ExpandMode is set to ServerSide." Is there a way of canceling the postback? I tried this javascript function but it doesn't work.
(I set the ExpandMode on the c# code behind that isn't shown here)
function ClientNodeCollapsed(sender, eventArgs) {
var node = eventArgs.get_node();
if (node)
{
node.collapse();
}
return false;
}
.aspx side:
<telerik:RadTreeView id="TreeVw" runat="server" OnClientNodeClicked="ClientNodeClicked" OnClientNodeCollapsed="return ClientNodeCollapsed(sender, eventArgs)"
This results in a javascript error. Can anyone help?
(I set the ExpandMode on the c# code behind that isn't shown here)
function ClientNodeCollapsed(sender, eventArgs) {
var node = eventArgs.get_node();
if (node)
{
node.collapse();
}
return false;
}
.aspx side:
<telerik:RadTreeView id="TreeVw" runat="server" OnClientNodeClicked="ClientNodeClicked" OnClientNodeCollapsed="return ClientNodeCollapsed(sender, eventArgs)"
This results in a javascript error. Can anyone help?