ASP.NET 3.5 and above only

ASP.NET TreeView - Client-side Events

  • Libraries
    • Documents
    • Music
      • My Music
      • Public Music
    • Pictures
      • My Pictures
      • Public Pictures
    • Videos
      • My Videos
      • Public Videos
Server Side Event Log:
[ASPX]

<obout:Tree ID="ObClassicTree" EnableDragAndDrop="true" AutoPostbackOnNodeSelect="True" AllowNodeEdit="true" 
    OnSelectedTreeNodeChanged="OboutTree2_SelectedTreeNodeChanged" 
    OnTreeNodeDrop="OboutTree2_TreeNodeDrop"
    OnTreeNodeEdited="OboutTree2_TreeNodeEdited" 
    OnTreeNodeExpanded="OboutTree2_TreeNodeExpanded"
    CssClass="vista" runat="server" Width="200px">
</obout:Tree>                 
            
[C#]

   protected void OboutTree2_TreeNodeDrop(object sender, Obout.Ajax.UI.TreeView.NodeDropEventArgs e)
    {
        this.Event_log.Text = 
         string.Format("'NodeDropEvent : '{0}' is dropped in '{1}'", e.SourceNode.Text, e.TargetNode.Text);
    }
    protected void OboutTree2_SelectedTreeNodeChanged(object sender, Obout.Ajax.UI.TreeView.NodeEventArgs e)
    {
        this.Event_log.Text = string.Format("'NodeSelectedEvent is fired on '{0}'.", e.Node.Text);
    }
    protected void OboutTree2_TreeNodeEdited(object sender, Obout.Ajax.UI.TreeView.NodeEditingEventArgs e)
    {
        this.Event_log.Text = 
         string.Format("'NodeEditedEvent : '{0}' is renamed as '{1}'.", e.Node.Text,e.NewValue);
    }
    protected void OboutTree2_TreeNodeExpanded(object sender, Obout.Ajax.UI.TreeView.NodeEventArgs e)
    {
        this.Event_log.Text = string.Format("'NodeExpandedEvent is fired on '{0}'.", e.Node.Text);
    }
            
[VB]

Protected Sub OboutTree2_TreeNodeDrop(ByVal sender As Object, ByVal e As Obout.Ajax.UI.TreeView.NodeDropEventArgs)
        Me.Event_log.Text = 
         String.Format("'NodeDropEvent : '{0}' is dropped in '{1}'", e.SourceNode.Text, e.TargetNode.Text)
End Sub
Protected Sub OboutTree2_SelectedTreeNodeChanged(ByVal sender As Object, ByVal e As Obout.Ajax.UI.TreeView.NodeEventArgs)
        Me.Event_log.Text = String.Format("'NodeSelectedEvent is fired on '{0}'.", e.Node.Text)
End Sub
Protected Sub OboutTree2_TreeNodeEdited(ByVal sender As Object, ByVal e As Obout.Ajax.UI.TreeView.NodeEditingEventArgs)
        Me.Event_log.Text = 
         String.Format("'NodeEditedEvent : '{0}' is renamed as '{1}'.", e.Node.Text,e.NewValue)
End Sub
Protected Sub OboutTree2_TreeNodeExpanded(ByVal sender As Object, ByVal e As Obout.Ajax.UI.TreeView.NodeEventArgs)
        Me.Event_log.Text = String.Format("'NodeExpandedEvent is fired on '{0}'.", e.Node.Text)
End Sub
            

"It is amazing how you guys have the tools that suits our needs to the "T" and I'm really glad to see that these tools are compatible with 3.5 as we would be moving there shortly."

Ramarao Prahalad
Texas Association of School Boards

Random testimonial   All testimonials