Advanced User Interface Controls and Components
Gets or sets the currently selected column in Grid directive.
Param | Type | Details |
---|---|---|
name | String | The value of name attribute of the Grid directive |
column (optional) | Object | The column to be selected |
If there is no specified column, this property returns the currently selected column. Otherwise does not return a value.
This method is part of IntegralUIGridService.
A call to this method will trigger beforeSelect and afterSelect events. By handling beforeSelect event you can prevent selection of specified column using your own custom conditions.
An column can also become selected using the selected-column attribute of Grid directive. In this case only afterSelect event will be fired.
Supported in: v1.0.
Learn how to handle events that are fired whenever a column or row is selected in Grid directive for AngularJS. Explains how to prevent selection of a row depending on custom conditions.
A demonstration of different selection types available in Grid directive.