I'm working with the Telerik RadTreeView;
One objective for the functionality of the RadTreeView is to allow a User to either click the plus (+) sign (next to Node Name), or click the actual Node Name, and expand the Node;
The above code works briefly, and expands a selected RadTreeView Node for a split second; However, because the RadTreeView is being built dynamically in the C# code-behind, a post back occurs, and the expanded node quickly returns to an un-expanded state;
Thanks in advance for any insight; Best regards - Rob
One objective for the functionality of the RadTreeView is to allow a User to either click the plus (+) sign (next to Node Name), or click the actual Node Name, and expand the Node;
<telerik:RadTreeView ID="RadTreeView1" runat="server" OnNodeExpand="RadTreeView1_NodeExpand" ForeColor="Black" Font-Names="Microsoft Sans Serif" onnodeclick="RadTreeView1_NodeClick" Height="600px" Width="300px" Font-Size="Medium" OnClientNodeClicked="ClientNodeClicked"> </telerik:RadTreeView><script type="text/javascript" language="javascript"> function ClientNodeClicked(sender, eventArgs) { var node = eventArgs.get_node(); //alert("You clicked " + node.get_text()); if (node) { node.expand(); } } </script>The above code works briefly, and expands a selected RadTreeView Node for a split second; However, because the RadTreeView is being built dynamically in the C# code-behind, a post back occurs, and the expanded node quickly returns to an un-expanded state;
Thanks in advance for any insight; Best regards - Rob
