Version

IsAction Property

Indicates that this drop-down item represents an action that will be taken when the item is selected.
Syntax
'Declaration
 
Public ReadOnly Property IsAction As Boolean
public bool IsAction {get;}
Remarks

Indicates whether this drop-down item represents an action that will be taken when the item is selected. The underlying Value will be an instance of ICommand. When the user selects the entry in the drop-down, the command's Execute method will be called to perform the action.

For example, the built-in '(Custom)' entry provided by the data presenter in the filter drop-down is an action. The associated value implements ICommand interface whose Execute implementation displays the custom filter selection control (CustomFilterSelectionControl.

You can add your own custom action to the filter drop-down. To do so implement ICommand on a class. Then add an entry to the filter drop-down list where the value of that entry is the instance of that class. When the user clicks the entry in the filter drop-down, the ICommand.Execute method will be called, which is where you perform the desired action. The data presenter will take no further actions. It will be upto you to manipulate the record filter of the field to reflect the desired filter criteria.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also