This sample demonstrates how you can handle selection changes in WebTabSet.
You can create custom JavaScript to perform some action in your web page.
To support this feature, WebTabSet uses the following client-side method for selected item changes:
function cwtsOnSelectionChange(controlId, selectedValue)
The parameters are:
- controlId - the control identifier of the WebTabSet instance.
- selectedValue - the current value for the item being selected.
This is a callback method that needs to be implemented by you if you are interested in these events.
WebTabSet will automatically detect the presence of the method, and call it whenever a selection change occurs.
This method does not expect a return value.
This sample implements the callback method and responds to the change by displaying the text value of the currently selected item.
In this sample the WebTabSet is allowing you to select an employee, organized by project and group membership.
Clicking the "Submit" button will display the full path for your selection below:
Click the "Reset" link to clear your selection.