Callback if you want to inspect something before selection, return false if you want to cancel the selection. return true otherwise. If you need to wait for an async call to proceed with selection you can use rowItem.changeSelection(event) method after returning false initially. Note: when shift+ Selecting multiple items in the grid this will only get called once and the rowItem will be an array of items that are queued to be selected.
definitions of columns as an array [], if not defined columns are auto-generated. See github wiki for more details.
Column width of columns in grid.
Data being displayed in the grid. Each item in the array is mapped to a row being displayed.
Row selection check boxes appear as the first column.
Enable or disable resizing of columns
Enables the server-side paging feature
Enable column pinning
Enable drag and drop row reordering. Only works in HTML5 compliant browsers.
To be able to have selectable rows in grid.
Enables or disables sorting in grid.
filterOptions - filterText: The text bound to the built-in search box. useExternalFilter: Bypass internal filtering if you want to roll your own filtering mechanism but want to use builtin search box.
Defining the height of the footer in pixels.
Show or hide the footer alltogether the footer is enabled by default
Initial fields to group data by. Array of field names, not displayName.
The height of the header row in pixels.
Define a header row template for further customization. See github wiki for more details.
Enables the use of jquery UI reaggable/droppable plugin. requires jqueryUI to work if enabled. Useful if you want drag + drop but your users insist on crappy browsers.
Enable the use jqueryUIThemes
Prevent unselections when in single selection mode.
Maintains the column widths while resizing. Defaults to true when using *'s or undefined widths. Can be ovverriden by setting to false.
Set this to false if you only want one item selected at a time
pagingOptions -
Array of plugin functions to register in ng-grid
Row height of rows in grid.
Define a row template to customize output. See github wiki for more details.
Disable row selections by clicking on the row and only when the checkbox is clicked.
all of the items selected in the grid. In single select mode there will only be one item in the array.
Enables menu to choose which columns to display and group by. If both showColumnMenu and showFilter are false the menu button will not display.
Enables display of the filterbox in the column menu. If both showColumnMenu and showFilter are false the menu button will not display.
Show the dropzone for drag and drop grouping
Define a sortInfo object to specify a default sorting state. You can also observe this variable to utilize server-side sorting (see useExternalSorting). Syntax is sortinfo: { fields: ['fieldName1',' fieldName2'], direction: 'ASC'/'asc' || 'desc'/'DESC'}
Set the tab index of the Vieport.
Prevents the internal sorting from executing. The sortInfo object will be updated with the sorting information so you can handle sorting (see sortInfo)
Callback for when you want to validate something after selection.