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:

<obout:Tree ID="ObClassicTree" EnableDragAndDrop="true" AutoPostbackOnNodeSelect="True" AllowNodeEdit="true" 
    CssClass="vista" runat="server" Width="200px">

   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);

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

"Perfect! Honestly, you guys make me look brilliant. Your components offer a dynamic, and professionally designed experience for my users. The TreeView has been invaluable to me, huge datasets and enormous hierarchies are a snap. However, when you first introduced the CALLBACK, you rocked my world! Having moved from desktop to web applications, I missed the functionality I used to have. You gave it back - thank you. I can't tell you the number of times I've been asked "How'd you do that?" (even from our tech support and contractors)."

John Cappelletti

Random testimonial   All testimonials