OnSelect - cWebTreeView
Fires when the selected tree item changes
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| sId | String | The item's Id |
| sValue | String | The item's value |
| iLevel | Integer | The item's tree level |
Syntax
Procedure OnSelect String sId String sValue Integer iLevel
Description
Write an OnSelect event handler in your treeview object to perform some action whenever a new tree item is selected, e.g. the user clicks on a different tree item. The OnSelect event is passed the ID, value and tree level of the selected item.
The event does not fire when the current selected treeview item is the same as the item passed to Select or when clicked on the treeview item. It is part of optimization as it means a round trip to the server. If you need Select to fire OnSelect, you may webset psSelectedId to an empty string ("").
By default, the OnSelect event is disabled. To enable OnSelect events on the server set pbServerOnSelect to True.