Editar

Compartilhar via


ViewSelector methods (Client API reference)

Provides methods to get or set information about the view selector of the subgrid control. If the subgrid control is not configured to display the view selector, calling the ViewSelector methods will throw an error.

ViewSelector is returned by the gridContext.getViewSelector method.

var viewSelector = gridContext.getViewSelector();

Methods

Name Description Available for
getCurrentView Gets a reference to the current view. Read-only grid
isVisible Returns a boolean value to indicate whether the view selector is visible. Read-only grid
setCurrentView Sets the current view. Read-only grid

gridContext
Grids and subgrids in model-driven apps