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

"I'm pretty happy on replacing ComponentArt's splitter with yours, I'm getting vastly superior performance out of it. On resize of the CA splitter it can take 2-3 seconds to complete a resize of a complex page whereas yours is maybe .5 of a second max."

David Homer

Random testimonial   All testimonials