Advanced User Interface Controls and Components
Gets or sets the currently selected row in TreeGrid directive.
Param | Type | Details |
---|---|---|
name | String | The value of name attribute of the TreeGrid directive |
row (optional) | Object | The row to be selected |
If there is no specified row, this property returns the currently selected row. Otherwise does not return a value.
This method is part of IntegralUITreeGridService.
A call to this method will trigger beforeSelect and afterSelect events. By handling beforeSelect event you can prevent selection of specified row using your own custom conditions.
An row can also become selected using the selected-row attribute of TreeGrid 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 TreeGrid directive for AngularJS. Explains how to prevent selection of a row depending on custom conditions.
A demonstration of different selection types available in TreeGrid directive.