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
            

"First of all... loved the controls... its wonderful features and ease of use. Most of all, I would like to commend your support group. Even if we're still in evaluation mode, the support team has been great and very response. Keep up the great work!"

James Gagni Jr.
Aon Singapore

Random testimonial   All testimonials