APNSoft.com - Web Controls, components for ASP.NET
 About Us 
 Articles 
 Products
 Downloads 
 Purchase
 Support

TreeView
Controls Suite 4.5


Overview
Features
Reference Book
Live Demos
Populating with Data
Appearance
Behavior
Programming
Client-side events
Server-side selection
Application scenarios




Expand All   Collapse All

Home
About Us
Products
Solutions
Support
Site Map
Event log:



APNSoft TreeView includes a set of properties for client-side events:
  • ClientSideOnItemClick - specifies the code to be launched when item is clicked.

    To apply a separate client-side code to specific Item, set the item's ClientSideOnItemClick attribute (applied to the Home item in our scenario).
    Item's code overrides the component's code.

  • ClientSideOnCheck - specifies the code to be launched when an item is checked.
  • ClientSideOnUnCheck - specifies the code to be launched when an item is unchecked.
  • ClientSideOnExpand - specifies the code to be launched when an item is expanded.
  • ClientSideOnCollapse - specifies the code to be launched when an item is collapsed.

Property value can include variables $ComponentID$, $ItemID$ and $Title$.
Each variable is replaced to the corresponding value.

Please click/check/uncheck/expand/collapse any item to launch a client-side code.


The tv.ExpandAll(TreeViewID); client-side method provides a convenient way to open every node in the tree. The tv.CollapseAll(TreeViewID); closes every node.



Code Samples:


© 2003-2024 APNSoft. All rights reserved.    Terms of use.