WebDrillDown Studio
First employee:
  
Second employee:
  Reset
Path Getting/Setting:
This sample demonstrates how you can programmatically get and set the full path and selected button in WebDrillDown. This allows you to modify these values using your own custom JavaScript logic.

To support this feature and the ability to set keyboard focus, WebDrillDown exposes the following client-side methods:

1. This method returns the current full path selected.

function cwddGetFullPath(controlId)
  • controlId - the control identifier of the WebDrillDown instance.
2. This method updates the current full path selected.

function cwddSetFullPath(controlId, fullPath)
  • controlId - the control identifier of the WebDrillDown instance.
  • fullPath - the current full path selected in the WebDrillDown control.
3. This method returns the index of the selected button.

function cwddGetSelectedIndex(controlId)
  • controlId - the control identifier of the WebDrillDown instance.
4. This method updates the index of the selected button.

function cwddSetSelectedIndex(controlId, selectedIndex)
  • controlId - the control identifier of the WebDrillDown instance.
  • selectedIndex - the index of the selected button in the WebDrillDown control.
5. This method sets the keyboard focus to the control.

function cwddSetFocus(controlId)
  • controlId - the control identifier of the WebDrillDown instance.
In this sample, clicking the "Up" or "Down" arrows transfers the full path and selected index of a WebDrillDown and keyboard focus to the other instance. These changes are made inside the web browser using client-side code that invokes all these methods.

Clicking the "Submit" button will display the full paths for your selections below:
Click the "Reset" link to clear your selection.
Control being used:
View the code:
The code is available in the samples directory under:
/ClientSideFeatures
    /PathGettingSetting