Class ListGrid
- All Implemented Interfaces:
- HasAttachHandlers,- HasHandlers,- EventListener,- HasVisibility,- IsWidget,- LogicalStructure,- DataBoundComponent,- HasClearHandlers,- HasClickHandlers,- HasDoubleClickHandlers,- HasDragCompleteHandlers,- HasDragMoveHandlers,- HasDragRepositionMoveHandlers,- HasDragRepositionStartHandlers,- HasDragRepositionStopHandlers,- HasDragResizeMoveHandlers,- HasDragResizeStartHandlers,- HasDragResizeStopHandlers,- HasDragStartHandlers,- HasDragStopHandlers,- HasDropCompleteHandlers,- HasDropHandlers,- HasDropMoveHandlers,- HasDropOutHandlers,- HasDropOverHandlers,- HasFetchDataHandlers,- HasFocusChangedHandlers,- HasFormulaUpdatedHandlers,- HasHoverHandlers,- HasHoverHiddenHandlers,- HasKeyDownHandlers,- HasKeyPressHandlers,- HasMouseDownHandlers,- HasMouseMoveHandlers,- HasMouseOutHandlers,- HasMouseOverHandlers,- HasMouseStillDownHandlers,- HasMouseUpHandlers,- HasMouseWheelHandlers,- HasMovedHandlers,- HasParentMovedHandlers,- HasResizedHandlers,- HasRightMouseDownHandlers,- HasRuleContextChangedHandlers,- HasScrolledHandlers,- HasShowContextMenuHandlers,- HasVisibilityChangedHandlers,- HasBodyKeyPressHandlers,- HasCellClickHandlers,- HasCellContextClickHandlers,- HasCellDoubleClickHandlers,- HasCellErrorIconHoverHandlers,- HasCellErrorIconOutHandlers,- HasCellErrorIconOverHandlers,- HasCellHoverHandlers,- HasCellMouseDownHandlers,- HasCellMouseUpHandlers,- HasCellOutHandlers,- HasCellOverHandlers,- HasCellSavedHandlers,- HasCellSelectionChangedHandlers,- HasCellValueHoverHandlers,- HasCriteriaChangedHandlers,- HasDataArrivedHandlers,- HasDataChangedHandlers,- HasDrawAreaChangedHandlers,- HasEditCompleteHandlers,- HasEditFailedHandlers,- HasEditorEnterHandlers,- HasEditorExitHandlers,- HasFieldStateChangedHandlers,- HasFilterEditorSubmitHandlers,- HasGroupByCompleteHandlers,- HasGroupByHandlers,- HasGroupStateChangedHandlers,- HasGroupTreeChangedHandlers,- HasHeaderClickHandlers,- HasHeaderDoubleClickHandlers,- HasHeaderHoverHandlers,- HasHilitesChangedHandlers,- HasRecordClickHandlers,- HasRecordCollapseHandlers,- HasRecordDoubleClickHandlers,- HasRecordDropHandlers,- HasRecordExpandHandlers,- HasRegroupHandlers,- HasRemoveRecordClickHandlers,- HasRowContextClickHandlers,- HasRowEditorEnterHandlers,- HasRowEditorExitHandlers,- HasRowHoverHandlers,- HasRowMouseDownHandlers,- HasRowMouseUpHandlers,- HasRowOutHandlers,- HasRowOverHandlers,- HasSelectionChangedHandlers,- HasSelectionUpdatedHandlers,- HasSetSortHandlers,- HasSortChangedHandlers,- HasSorterClickHandlers,- HasSorterContextClickHandlers,- HasViewStateChangedHandlers,- HasMembersChangedHandlers
- Direct Known Subclasses:
- CalendarView,- CubeGrid,- DateGrid,- ListPalette,- Menu,- PickListMenu,- RecordEditor,- TableView,- TreeGrid
DataBoundComponent that displays a list of objects in a grid, where
 each row represents one object and each cell in the row represents one property.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObjectUIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
- 
Field SummaryFields inherited from class com.smartgwt.client.widgets.BaseWidgetconfig, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassNameFields inherited from class com.google.gwt.user.client.ui.UIObjectDEBUG_ID_PREFIX
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAdd a bodyKeyPress handler.addCellClickHandler(CellClickHandler handler) Add a cellClick handler.Add a cellContextClick handler.Add a cellDoubleClick handler.Add a cellErrorIconHover handler.Add a cellErrorIconOut handler.Add a cellErrorIconOver handler.addCellHoverHandler(CellHoverHandler handler) Add a cellHover handler.Add a cellMouseDown handler.addCellMouseUpHandler(CellMouseUpHandler handler) Add a cellMouseUp handler.addCellOutHandler(CellOutHandler handler) Add a cellOut handler.addCellOverHandler(CellOverHandler handler) Add a cellOver handler.addCellSavedHandler(CellSavedHandler handler) Add a cellSaved handler.Add a cellSelectionChanged handler.Add a cellValueHover handler.Add a criteriaChanged handler.voidPerform a DataSource "add" operation to add new records to this component's DataSource.voidaddData(Record newRecord, DSCallback callback) voidaddData(Record newRecord, DSCallback callback, DSRequest requestProperties) Perform a DataSource "add" operation to add new records to this component's DataSource.addDataArrivedHandler(DataArrivedHandler handler) Add a dataArrived handler.addDataChangedHandler(DataChangedHandler handler) Add a dataChanged handler.Add acom.smartgwt.client.widgets.DragCompleteHandler.Add a drawAreaChanged handler.Add acom.smartgwt.client.widgets.DropCompleteHandler.Add a editComplete handler.addEditFailedHandler(EditFailedHandler handler) Add a editFailed handler.addEditorEnterHandler(EditorEnterHandler handler) Add a editorEnter handler.addEditorExitHandler(EditorExitHandler handler) Add a editorExit handler.voidaddEmbeddedComponent(Canvas component, ListGridRecord record) Attaches the component to the provided record.voidaddEmbeddedComponent(Canvas component, ListGridRecord record, Integer rowNum) voidaddEmbeddedComponent(Canvas component, ListGridRecord record, Integer rowNum, Integer colNum) voidaddEmbeddedComponent(Canvas component, ListGridRecord record, Integer rowNum, Integer colNum, EmbeddedPosition position) Attaches the component to the provided record.addFetchDataHandler(FetchDataHandler handler) Add a fetchData handler.Add a fieldStateChanged handler.Add a filterEditorSubmit handler.voidConvenience method to display a {@link com.smartgwt.client..FormulaBuilder} to create a new Formula Field.Add a formulaUpdated handler.Add a groupByComplete handler.addGroupByHandler(GroupByHandler handler) Add a groupBy handler.Add a groupStateChanged handler.Add a groupTreeChanged handler.addHeaderClickHandler(HeaderClickHandler handler) Add a headerClick handler.Add a headerDoubleClick handler.addHeaderHoverHandler(HeaderHoverHandler handler) Add a headerHover handler.Add a hilitesChanged handler.addRecordClickHandler(RecordClickHandler handler) Add a recordClick handler.Add a recordCollapse handler.Add a recordDoubleClick handler.addRecordDropHandler(RecordDropHandler handler) Add a recordDrop handler.Add a recordExpand handler.addRegroupHandler(RegroupHandler handler) Add a regroup handler.Add a removeRecordClick handler.Add a rowContextClick handler.Add a rowEditorEnter handler.Add a rowEditorExit handler.addRowHoverHandler(RowHoverHandler handler) Add a rowHover handler.Add a rowMouseDown handler.addRowMouseUpHandler(RowMouseUpHandler handler) Add a rowMouseUp handler.addRowOutHandler(RowOutHandler handler) Add a rowOut handler.addRowOverHandler(RowOverHandler handler) Add a rowOver handler.Add a selectionChanged handler.Add a selectionUpdated handler.addSetSortHandler(SetSortHandler handler) Add a setSort handler.voidaddSort(SortSpecifier sortSpecifier) Adds anotherSortSpecifierto this grid's sort configuration and resorts.addSortChangedHandler(SortChangedHandler handler) Add a sortChanged handler.addSorterClickHandler(SorterClickHandler handler) Add a sorterClick handler.Add a sorterContextClick handler.voidConvenience method to display a {@link com.smartgwt.client..SummaryBuilder} to create a new Summary Field.Add a viewStateChanged handler.Whether at least one item is selected
voidapplyCellData(RecordList cellData) Applies a set of Records containing coordinate-based data as returned bygetSelectedCellData()and applies the data at the current selection.voidapplyRecordData(RecordList recordData) Applies a list of Records as changes to the current selection.voidapplySortToData(SortSpecifier... sortSpecifiers) Sort the grid's data to reflect the parameter sortSpecifiers.voidShow a dialog to configure the sorting of multiple fields on this component.intautoFitField(String fieldName) Programmatically cause a field to auto-fit horizontally to it's contents or title.voidPerform a one-time horizontal auto-fit of the fields passed.voidautoFitFields(ListGridField... fields) Perform a one-time horizontal auto-fit of the fields passed.voidCancel the current edit without saving.booleancanEditCell(int rowNum, int colNum) Can this cell be edited?booleancanExpandRecord(ListGridRecord record, int rowNum) Indicates whether a given record or rowNum can be expanded.booleancanSelectCell(int rowNum, int colNum) IfcanSelectCellsis set totruethen, whenever an end-user or programmatic cell-selection is attempted, this method is called for each cell in the selection.booleancanSelectRecord(ListGridRecord record) IfselectionTypeis not set to"none", this method will be called for each record the user attempts to select.cellHasChanges(int rowNum, int colNum) If this listGrid can be edited, this method will return true if the cell passed in has been edited, but the edits have not yet been saved to the ListGrid's data object.cellHasErrors(int rowNum, int colIndex) Given a rowNum and a colNum or fieldName, determine whether we currently have stored 
 validation errors for the record/field in question.
cellHasErrors(int rowNum, String fieldID) Given a rowNum and a colNum or fieldName, determine whether we currently have stored validation errors for the record/field in question.cellValueHoverHTML(ListGridRecord record, int rowNum, int colNum, String defaultHTML) Returns the HTML that is displayed by the default cellValueHover handler.cellValueIsClipped(int rowNum, int colNum) Is the value in a given cell clipped?static voidchangeAutoChildDefaults(String autoChildName, Canvas defaults) Changes the defaults for Canvas AutoChildren namedautoChildName.static voidchangeAutoChildDefaults(String autoChildName, FormItem defaults) Changes the defaults for FormItem AutoChildren namedautoChildName.Chart the data in this listGrid as a multi-series chart.chartData(String labelField, String[] dataFields, ListGridRecord... dataRows) chartData(String labelField, String[] dataFields, ListGridRecord[] dataRows, FacetChart chartProperties) chartData(String labelField, String[] dataFields, ListGridRecord[] dataRows, FacetChart chartProperties, boolean labelFieldFirst) Chart the data in this listGrid as a multi-series chart.voidThis method, the equivalent of the builtinClear Filter menu-item, clears all user-visible criteria applied to this grid, including values and filter-operators in thefilter-rowand criteria in theadvanced filter window, and issues a re-filter.voidClear the current criteria used to filter data.voidclearCriteria(DSCallback callback) voidclearCriteria(DSCallback callback, DSRequest requestProperties) Clear the current criteria used to filter data.voidclearEditValue(int rowNum, String fieldName) 
 Clear a field value being tracked as an unsaved user edit.voidclearFieldError(int rowNum, int fieldName) Clears any validation errors for some cell.voidclearFieldError(int rowNum, String fieldName) voidclearFieldSearchOperator(String fieldName, Boolean suppressFilter) Clears the current search operator from a field in the grid'sfilter row.voidClears criteria applied to this grid via theadvanced filter windowand issues a re-filter.voidclearRowErrors(int rowNum) Clear any stored validation errors for some rowvoidClear this grid's auto-savedview stateas described inautoPersistViewState.voidThis method clears any existing sort on this grid by callingsetSort()with a null parameter.booleancloseGroup(Record record) Closes the node represented by the "record" parameter, if it is a folder and is not already closed.voidcloseRecord(ListGridRecord record) Deprecated.voidcollapseRecord(ListGridRecord record) Collapses a givenrecordwhich has been previously expanded usingexpandRecord().voidcollapseRecords(ListGridRecord... records) Collapses the passed list of expandedrecords.voidOpen a MultiGroupDialog to configure the fields used for grouping.protected JavaScriptObjectcreate()protected CanvascreateRecordComponent(ListGridRecord record, Integer colNum) WhenshowRecordComponentsis true, this method is called to create per-row or per-cell embedded components to display in the grid.voidNotification method fired when thegrid data has changed.voiddataChangedComplete(String operationType) Notification method fired when thegrid data has changed.void
 Deselect all records

voiddeselectRange(int startRow, int endRow) Deselect a contiguous range of records by index.voiddeselectRecord(int record) Deselect aRecordpassed in explicitly, or by index.voiddeselectRecord(Record record) Deselect aRecordpassed in explicitly, or by index.voiddeselectRecords(int[] records) Deselect a list ofRecords passed in explicitly, or by index.voiddeselectRecords(Record[] records) Deselect a list ofRecords passed in explicitly, or by index.voiddisableHilite(String hiliteID) Disable a hilite

voidDisable all hilites.

voidCancel outstanding edits, discarding edit values, and hiding editors for the record[s] passed in if appropriate.voiddiscardAllEdits(int[] rows) voiddiscardAllEdits(int[] rows, boolean dontHideEditor) Cancel outstanding edits, discarding edit values, and hiding editors for the record[s] passed in if appropriate.voiddiscardEdits(int rowNum, int colNum) Cancel outstanding edits for the specified rows, discarding edit values, and hiding editors if appropriate.voiddiscardEdits(int rowNum, int colNum, Boolean dontHideEditor) Cancel outstanding edits for the specified rows, discarding edit values, and hiding editors if appropriate.protected BooleandisplayHeaderContextMenu(Canvas target, int[] position) IfshowHeaderContextMenuistruethis method is fired when the user right-clicks on the header for this grid.
 Default implementation will display a menu with entries derived fromListGrid.getHeaderContextMenuItemsfor the appropriate column.voiddisplaySort(SortSpecifier... sortSpecifiers) Modify the grid UI to reflect the parameter sortSpecifiers.booleandrop()Handle a drop event.voidStart inline editing at a record identified by criteria.voideditExistingRecord(Criteria criteria) Start inline editing at a record identified by criteria.voidShows a FieldPicker interface allowing end-users to rearrange the order and visibiility of the fields in the associated DataBoundComponent.voidShows a HiliteEditor interface allowing end-users to edit the data-hilites currently in use by this DataBoundComponent.voidenableHilite(String hiliteID) Enable / disable ahilites

voidenableHilite(String hiliteID, boolean enable) Enable / disable ahilites

voidEnable all hilites.

voidenableHiliting(boolean enable) Enable all hilites.

voidComplete the current edit by storing the value and hiding the inline editor.voidexpandRecord(ListGridRecord record) Expands a givenrecordby creating a subcomponent and inserting it in to the record's grid-row.voidexpandRecords(ListGridRecord... records) Expands the passed list ofrecordsby creating a subcomponent for each record and inserting them it in to the record's grid-row.voidExports this component's data with client-side formatters applied, so is suitable for direct display to users, using the specifiedexport format.voidexportClientData(DSRequest requestProperties) voidexportClientData(DSRequest requestProperties, RPCCallback callback) Exports this component's data with client-side formatters applied, so is suitable for direct display to users, using the specifiedexport format.voidvoidexportData(DSRequest requestProperties) voidexportData(DSRequest requestProperties, RPCCallback callback) Uses a "fetch" operation on the currentDataSourceto retrieve data that matches the current filter and sort criteria for this component, then exports the resulting data to a file or window in the requested format.voidRetrieves data from the DataSource that matches the specified criteria.voidRetrieves data from the DataSource that matches the specified criteria.voidfetchData(Criteria criteria, DSCallback callback) Retrieves data from the DataSource that matches the specified criteria.voidfetchData(Criteria criteria, DSCallback callback, DSRequest requestProperties) Retrieves data from the DataSource that matches the specified criteria.voidfetchRelatedData(Record record, DataSource dataSource) voidfetchRelatedData(Record record, DataSource dataSource, DSCallback callback, DSRequest requestProperties) voidfetchRelatedData(ListGridRecord record, Canvas schema) Based on the relationship between the DataSource this component is bound to and the DataSource specified as the "schema" argument, call fetchData() to retrieve records in this grid that are related to the passed-in record.voidfetchRelatedData(ListGridRecord record, Canvas schema, DSCallback callback) voidfetchRelatedData(ListGridRecord record, Canvas schema, DSCallback callback, DSRequest requestProperties) Based on the relationship between the DataSource this component is bound to and the DataSource specified as the "schema" argument, call fetchData() to retrieve records in this grid that are related to the passed-in record.voidFor databound grids, method will fall through toResultSet.fetchRowCount(), allowing developers to request an accurate row count from the dataSource whenprogressive loading is active.voidfetchRowCount(RowCountCallback callback) voidfetchRowCount(RowCountCallback callback, DSRequest dsRequest) For databound grids, method will fall through toResultSet.fetchRowCount(), allowing developers to request an accurate row count from the dataSource whenprogressive loading is active.booleanfieldIsEditable(int field) Can the field be edited? This method looks atcanEditfor the grid as well as theListGridField.canEditvalue, to determine whether editing is allowed.booleanfieldIsEditable(ListGridField field) Can the field be edited? This method looks atcanEditfor the grid as well as theListGridField.canEditvalue, to determine whether editing is allowed.booleanfieldIsEditable(String field) Can the field be edited? This method looks atcanEditfor the grid as well as theListGridField.canEditvalue, to determine whether editing is allowed.booleanfieldIsVisible(String field) Check whether a field is currently visiblevoidIf the filter editor (showFilterEditor) is visible for this grid, this method will perform a filter based on the current values in the editor.voidRetrieves data that matches the provided criteria and displays the matching data in this component.voidfilterData(Criteria criteria) Retrieves data that matches the provided criteria and displays the matching data in this component.voidfilterData(Criteria criteria, DSCallback callback) Retrieves data that matches the provided criteria and displays the matching data in this component.voidfilterData(Criteria criteria, DSCallback callback, DSRequest requestProperties) Retrieves data that matches the provided criteria and displays the matching data in this component.voidfilterViaAI(String prompt) If filter-via-AI is enabled (seefilterViaAIMode), asks AI to filter the grid according to the given natual language description of a filter.voidfilterViaAI(String prompt, FilterViaAISettings settings) If filter-via-AI is enabled (seefilterViaAIMode), asks AI to filter the grid according to the given natual language description of a filter.find(AdvancedCriteria adCriteria) Filters all objects according to the AdvancedCriteria passed and returns the first matching object or null if not foundRecord[]findAll(AdvancedCriteria adCriteria) Filters all objects according to the AdvancedCriteria passedintfindIndex(AdvancedCriteria adCriteria) Finds the index of the first Record that matches with the AdvacendCriteria passed.int[]findNextEditCell(int rowNum, int colNum, boolean searchForward, boolean stepThroughFields, boolean checkStartingCell) Method to find the next editable cell given a starting row/col, and a direction, either iterating through fields within each row, or checking the same field in each row.intfindNextIndex(int startIndex, AdvancedCriteria adCriteria) LikeRecordList.findIndex(java.util.Map), but considering the startIndex parameter.intfindNextIndex(int startIndex, AdvancedCriteria adCriteria, int endIndex) LikeRecordList.findIndex(java.util.Map), but considering the startIndex and endIndex parameters.voidfocusInCell(Integer row, Integer col) Puts keyboard focus into the specified cell, showing a highlighted (roll-over style) appearance, and ensuring that arrow-key navigation will start from the specified cell.voidIf the filter editor (showFilterEditor) is visible for this grid, this method will explicitly put focus into the specified field in the filter editor.voidfocusInFilterEditor(String fieldName) If the filter editor (showFilterEditor) is visible for this grid, this method will explicitly put focus into the specified field in the filter editor.voidfocusInRow(Integer row) Puts keyboard focus into the specified row, showing a highlighted (roll-over style) appearance, and ensuring that arrow-key navigation will start from the specified row.voidfreezeField(ListGridField field) Freeze the indicated field, so that it remains in place and visible when horizontal scrolling occurs.voidfreezeField(Integer field) Freeze the indicated field, so that it remains in place and visible when horizontal scrolling occurs.voidfreezeField(String field) Freeze the indicated field, so that it remains in place and visible when horizontal scrolling occurs.voidfreezeField(String[] field) Freeze the indicated field, so that it remains in place and visible when horizontal scrolling occurs.voidfreezeFields(int[] colNums) voidfreezeFields(String[] fieldNames) Indicates whether to add "drop values" to items dropped on this component, if both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key.Text for a menu item allowing users to add a formula fieldoperationIdthis component should use when performing add operations.Text for a menu item allowing users to add a formula fieldintWhenuseAdvancedFieldPickeris set, total number of available fields that must be present in the grid before the advanced field picker interface is used instead of the normal columns submenu.If we're showing aheaderContextMenufor this grid, and afilter-editoris visible andallowFilterWindowis enabled, this attribute will be shown as the menu item title to configure advanced filtering.Instance ofAIWindowthat allows a user to enter a description of how they would like the AI to filter this grid.The inline hint-text displayed in the user-entry area in theaiFilterWindow.The descriptive text displayed above the user-entry area in theaiFilterWindow.The title for theAI-driven filter window.Instance ofAIWindowthat allows a user to enter a description of how they would like the AI to filter this grid.Optional prefix for the AI-generated hover text displayed when hovering over fields specifying anaiHoverRequest.Minimum number of milliseconds to wait before retrying to generate hover contents via AI.The message to show when a user asks the AI to sort more than themaximum allowed records.Dialog that shows progress after requesting AI-sorting of a field.int[]Returns an array of every rowNum for which we have pending (unsubmitted) edits.Get the complete array of fields for this ListGrid, including fields that are not currently visible or were specified implicitly viadataSource.For use withshowFilterEditor:true, allows simple search expressions to be entered into filter fields, as thoughDynamicForm.allowExpressionswere true.Causes a menu item titled"Filter using"to appear in theheaderContextMenuthat allows the end user to pick an advancedsearch operatorto use for this field.Adds the ability for a user to define additional criteria above and beyond those expressed in thefilter editorvia aFilterBuilderwhich appears in a modal Window over the grid and can be accessed by various menus within the grid or triggered by external controls.Should cells in this grid be allowed to span multiple rows? If set totrue, thegetRowSpan()method will be called for every cell when rendering out the listGrid to determine how many rows the cell should span.Optional css style to apply to the body ifalternateRecordStylesis true for this grid.intThe number of consecutive columns to draw in the same style before alternating, whenalternateColumnStylesis true.booleanWhether alternating columns (or blocks of columns, depending onGridRenderer.alternateColumnFrequency) should be drawn in alternating styles, in order to create a vertical "ledger" effect for easier reading.Suffix to append toalternate columns.intThe number of consecutive rows to draw in the same style before alternating, whenalternateRowStylesis true.Whether alternating rows (or blocks of rows, depending onGridRenderer.alternateRowFrequency) should be drawn in alternating styles, in order to create a "ledger" effect for easier reading.Suffix to append toalternate rows.When this attribute is set, editors will be appear to be present in every row of the grid, allowing the user to immediately start editing any cell, rather than showing up in a single record at a time.
 This attribute is only valid wheneditByCellis false.WhenallowFilterOperatorsis enabled, whether to show theoperatorIconfor all filterable fields, or only for fields where the user has explicitly chosen a search operator different from the default operator for the field.When animating folder opening / closing, this property can be set to apply an animated acceleration effect.IfanimateFoldersis true for this grid, this number can be set to designate the maximum number of rows to animate at a time when opening / closing a folder.If true, when folders are opened / closed children will be animated into view.intWhen animating folder opening / closing, this property designates the speed of the animation in pixels shown (or hidden) per second.intWhen animating folder opening / closing, ifTreeGrid.animateFolderSpeedis not set, this property designates the duration of the animation in ms.WhencanRemoveRecordsis enabled, should records be animated out of view when they are removed by the user?intWhenanimating record removal, this property designates the speed of the animation in pixels per second.intWhen animating record removal(see animateRemoveRecord), ifanimateRemoveSpeedis not set, this property designates the duration of the animation in ms.If therollOverCanvasis enabled, setting this property totrueensures that when therollOverCanvasis displayed it is animated into view viaCanvas.animateShow().If therollUnderCanvasis enabled, setting this property totrueensures that when therollUnderCanvasis displayed it is animated into view viaCanvas.animateShow().If theselectionCanvasis enabled, setting this property totrueensures that when theselectionCanvasis displayed it is animated into view viaCanvas.animateShow().If theselectionUnderCanvasis enabled, setting this property totrueensures that when theselectionUnderCanvasis displayed it is animated into view viaCanvas.animateShow().IfListGridField.userFormulais set for some field, and this grid is showinggroup summariesor agrid summary, this property determines what field value should be present in those summary rows.This property allows developers to explicitly setResultSet.applyRowCountToLengthfor this grid's data object.booleanARIA role for this ListGrid ifscreen reader modeis enabled.Dynamically retrieves the aria properties to write out for this listGrid inscreen reader mode.Retrieves dynamically calculated defaultARIA state mappingproperties for this listGrid.Action to perform when the listGrid has keyboard focus (but not editing focus) and a user presses the arrow keys to navigate around the grid.What to do when a user hits arrow key while editing a field?
 If not explicitly specifiedgetArrowKeyEditAction()will return an appropriate action depending on the field type.The value to display for cells when an error occurred during asynchronous computation.The prompt to display while interactivity is blocked duringasynchronous grouping.The value to display for cells whose value was not computed by the previous asynchronous operation to compute it, or will not be computed by an asynchronous operation due to currently being disabled.Whether to do inline autoComplete in text fields during inline editing
 Overridden byListGridField.autoCompleteif specified.For editable listGrids, outstanding unsaved edits when the user performs a new filter or sort will be discarded by default.IfDataBoundComponent.setAutoFetchData(Boolean)is true, this attribute determines whether the initial fetch operation should be performed viaDataBoundComponent.fetchData()orDataBoundComponent.filterData()If true, when this component is first drawn, automatically callDataBoundComponent.fetchData()orDataBoundComponent.filterData()depending onDataBoundComponent.getAutoFetchAsFilter().If true, for fields whereListGridField.optionDataSourceis specified, a valueMap will be automatically created by making aDataSource.fetchData()call against the specified dataSource and extracting a valueMap from the returned records based on the displayField and valueField.booleanDepending on whetherDataSource.progressiveLoadingis active, the exact count of available rows may not be available as part of the standard data fetch response - settingautoFetchRowCount:truewill cause a fetch for an accurate row count to be issued as soon as data arrives (from aprogressive dataSource response) without an accurate row count.IfautoFetchDataistrue, this attribute allows the developer to specify a textMatchStyle for the initialDataBoundComponent.fetchData()call.If we're showing aheaderContextMenufor this grid, andcanAutoFitFieldsis true, this attribute will be shown as the menu item title for an item to perform a one-time autoFit of all visible fields via theautoFitField()method.String[]IfautoFitFieldWidthsis enabled and the calculated field sizes are wide enough that horizontal scrolling would be introduced, this attribute may be set to an array of fieldNames, causing those fields to be clipped rather than forcing horizontal scrollbars to appear.Should this ListGrid automatically expand to accommodate the size of records and fields?Should listGrids automatically size date fields to fit their values or titles? If set to"value", fields of type date will be rendered at the size specified bydefaultDateFieldWidth, (ordefaultEditableDateFieldWidthfor editable fields).The field to expand ifautoFitFieldWidthsandautoFitFieldsFillViewportare enabled and auto-fitting will not fill all available horizontal space.IfautoFitDatais set to"vertical"or"both", setting this property will cause the ListGrid body to size large enough to accommodate the actual data and also leave this many extra rows' worth of blank space below the last record.IfautoFitFieldWidthsis enabled, and extra space is available after autofitting all fields, should the grid automatically expand one field to fill the extra space.If we're showing aheaderContextMenufor this grid, and user-driven auto fit of fields is enabled viaListGridField.canAutoFitWidthorcanAutoFitFields, this attribute will be shown as the menu item title for an item to perform a one-time autoFit of the field to its title or content via a call toautoFitField().Should ListGrid fields autofit their widths to titles or content? This property may be overridden on a per-field basis viaListGridField.autoFitWidth.If this property is set to true, header buttons for eitherfieldsorheader spanswill automatically expand to accommodate their titles vertically.Smart GWT listGrids have special logic to automatically size fields that are displayed as an icon - that is fields withtype:"icon", fields displaying onlyvalue icons, and boolean fields (which are rendered as a checkmark type icon by default.intIfautoFitDatais set to"horizontal"or"both"this property provides the maximum number of columns for which the ListGrid will expand.IfautoFitDatais set to"vertical"or"both"this property provides an upper limit on how far the ListGrid will expand vertically to accommodate its content.intIfautoFitDatais set to"vertical"or"both"this property provides the maximum number of records for which the ListGrid will expand.IfautoFitDatais set to"horizontal"or"both"this property provides an upper limit on how far the ListGrid will expand horizontally to accommodate its content.IfautoFitDatais set to"horizontal"or"both"this property provides an upper limit on how far the ListGrid will expand horizontally to accommodate its content.Should listGrids automatically size time fields to fit their values or titles? If set to"value", fields of type time will be rendered at the size specified bydefaultTimeFieldWidth.When a user requests column autofitting via theheader context menuor via amouse gesture, what autofit approach is used.Setting this property to a non-null value will enable automatic saving ofview stateto offline storage.If this ListGrid is editable, should edits be saved out when the user finishes editing a row (or a cell ifsaveByCellis true).If this listGrid has specifiedheaderSpans, setting this attribute to true will cause spans to expand to accommodate long titles if necessary.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.If the result of a formula evaluation is invalid (specifically, if isNaN(result)==true), badFormulaResultValue is displayed instead.base cell stylefor this listGrid.protected StringgetBaseStyle(ListGridRecord record, int rowNum, int colNum) Return the base styleName for this cell.If specified, this attribute will be applied to this grid'sdata objectfor dataBound grids.getBody()Returns the primary body, which, when there are frozen fields, is thecom.smartgwt.client.grid.GridRendererused to render the non-frozen portion of the dataset; otherwise, the primary body (the only body) is the GridRenderer used to render the entire dataset.Background color applied to the ListGrid body (that is, the area of the grid where data values are rendered).
 Note that this will typically not be visible to the user unless there are few enough rows that there is visible space in the body below the last row.Overflow setting for the "body", that is, the area of the grid where data values are rendered.Get the current scrollLeft for the body of this ListGridGet the current scrollTop for the body of this ListGridCSS style used for the body of this grid.An optional CSS style to apply to the checkbox image.Image to display for a false value in a boolean field.intintImage to display for a partially true value in a boolean field (typically selection).Image to display for a true value in a boolean field.Dynamic String specifying the format for therow range summary valuewhenRowRangeDisplayStyleis set to"brief".Indicates whether records can be dropped into this listGrid.Adds an item to the header context menu allowing users to launch a dialog to define a new field to be sorted by an AI score of the entire record and possibility related records.Adds an item to the header context menu allowing users to launch a dialog to define a new
 field based on values present in other fields, using the {@link com.smartgwt.client..FormulaBuilder}.
Adds an item to the header context menu allowing users to launch a dialog to define a new
 text field that can contain both user-defined text and the formatted values present in other 
 fields, using the {@link com.smartgwt.client..SummaryBuilder}.
Can the user perform one-time autofit for specific columns in this grid?If this is an editable listGrid, andthis.confirmCancelEditingis true this property is used as the message to display in the confirmation dismissal prompt.Can a group be collapsed/expanded? When true a collapse/expand icon is shown (groupIcon) and the user can collapse or expand the group by clicking either the row as a whole or the opener icon (seecollapseGroupOnRowClick); When false the group icon is not shown and clicking on the row does not change group state.Whether to show theConfigure via AImenu-item, which allows users to task the AI with performing multiple advanced configuration steps, such as grouping, hiliting and filtering, by entering plain-text commands.Indicates whether records can be dragged from this listGrid and dropped elsewhere.If this property is true, users can drag the mouse to select several rows or cells.If this property is true, users can drag the mouse to select text within grid rows, ready to be cliped to clipboard.
 This is mutually exclusive withrearranging rows or cells by dragging, and withdrag selection of rows.If set to false, dropping over an empty part of the grid body is disallowed and the no-drop indicator is displayed.Can the user edit cells in this listGrid? Can be set for the listGrid, and overridden for individual fields.
 If 'canEdit' is false at the listGrid level, fields can never be edited - in this case the canEdit property on individual fields will be ignored.
 If 'canEdit' is set to true at the listGrid level, setting the 'canEdit' property to false at the field level will prevent the field from being edited inline unless a custom override ofcanEditCell()allows it.
 If 'canEdit' is not set at the listGrid level, setting 'canEdit' to true at the field level enables the field to be edited inline.booleanAdds an item to the header context menu allowing users to launch a dialog to define grid hilites using theHiliteEditor.booleanIf set to true, theadvanced field pickerprovides an interface allowing users to modify fields' titles.WhencanExpandRecordsis true, this property indicates whether multiple records can be expanded simultaneously.Property name on a record that will be checked to determine whether a record can be expanded.When set to true, shows an additional field at the beginning of the field-list (respecting RTL) to allow users to expand and collapse individual records.booleanIf the listGrid is empty, should the user be able to put focus into the grid body by tabbing to it?Whether an interface should be shown to allow user is allowed to dynamically "freeze" or "unfreeze" columns with respect to horizontally scrolling.If false, grouping via context menu will be disabled.When set totrueand AI component views are enabled, shows an item in this component's header context menu that allows the user to ask the AI to hilite the records according to a natural language description of which records to hilite.If true, cellHover and rowHover events will fire and then a hover will be shown (if not canceled) when the user leaves the mouse over a row / cell unless the corresponding field hasshowHoverset to false.booleanWhen true, indicates that this ListGrid supports grouping on multiple fields.When true, indicates that this ListGrid supports sorting on multiple fields.Indicates whether the field picker item and submenu should be present in the header context menu.If true, thefield picker menuwill include entries for all dataSource fields, including those not included in the specifiedfields array.If set, provide UI for the user to remove records from the grid as an additional field showing theremoveIcon, which, when clicked, will callremoveRecordClick()which removes the row from the data set (or ifdeferRemovalis true changes themarkRecordRemoved()status for the record).Indicates whether fields in this listGrid can be reordered by dragging and dropping header fields.Indicates whether records can be reordered by dragging within thisListGrid.booleanDepending on whetherDataSource.progressiveLoadingis active, the exact count of available rows may not be known, andcanRequestRowCountcontrols whether the end user may explicitly request it by clicking theRowRangeDisplaylabel.Indicates whether fields in this listGrid can be resized by dragging header fields.booleanWhen enabled (the default), causes a "Saved views >" submenu to appear in the header context menu, last, allowing the user to create new saved searches, select previously saved searches, and edit or copy existing searches.Controls whether a checkbox for selecting all records appears in the header withselectionAppearanceset to "checkbox"Enables cell-level selection behavior as well ascell-level rollover.booleanControls whether a checkbox for selectinggroupsappears in the group node ifSelectionAppearanceis set to"checkbox"booleanWhether to allow selection of the summary row, for example by clicking on the record.booleanShould a menu item allowing the user to show or hide thefilter editorbe displayed in theheaderContextmenu?Enables or disables interactive sorting behavior for this listGrid.Should the header be included in the tab-order for the page? If not explicitly specified, the header will be included in the tab order for the page ifSC.setScreenReaderMode()is called.Should thecorner sort buttonbe included in the tab-order for the page?getCellAriaState(Integer rowNum, Integer colNum, ListGridRecord record, String role) Returns a map ofWAI ARIA state attribute valuesto be written into cells within this grid.The menu displayed when a cell is right clicked on.MenuItem[]getCellContextMenuItems(Integer record, Integer rowNum, Integer colNum) IfshowCellContextMenusistruethis method returns the menu items to be displayed in the default cell context menu.protected StringgetCellCSSText(ListGridRecord record, int rowNum, int colNum) Return CSS text for styling this cell, which will be applied in addition to the CSS class for the cell, as overrides.String[]getCellErrors(int rowNum, String fieldName) Returns the current set of errors for this cell.intDefault height for each row in pixels.protected CanvasgetCellHoverComponent(Record record, Integer rowNum, Integer colNum) WhenshowHoverComponentsis set, this method is called to get the component to show as a hover for the current cell.intThe amount of empty space, in pixels, surrounding each value in its cell.Integer[]getCellPageRect(int rowNum, int colNum) Returns the page offsets and size of the cell at the passed row and column.Returns the default WAI ARIA role for cells within this listGrid.intgetCellRowSpan(int rowNum, int colNum) When usingrow spanning, returns the number of cells spanned by the cell at the given coordinates.WhencanSelectCellsis active, returns theCellSelectionobject that tracks and manages the current selection.intgetCellStartRow(int rowNum, int colNum) When usingrow spanning, returns the row number where a row-spanning cell starts.protected StringgetCellStyle(ListGridRecord record, int rowNum, int colNum) Return the CSS class for a cell.Name of the Smart GWT Class to be used when creating charts.Default type of chart to plot.IfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for an unselected row.IfselectionAppearanceis set to"checkbox"this property may be set to govern the height of the checkbox image displayed to indicate whether a row is selected.IfselectionAppearanceis set to"checkbox"this property may be set to govern the width of the checkbox image displayed to indicate whether a row is selected.IfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for a partially selected row.IfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for a selected row.ForexpansionModesthat show another grid or tree, what the child's expansionMode should be.If we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to clear any existing sort on all fields.booleanWhen set to false, this attribute prevents user-criteria in thefilterEditorfrom being cleared when the user hides it.If we're showing aheaderContextMenufor this grid, and afilter-editoris visible, this attribute will be shown as the menu item title to clear any existing filter.Title for the menu-item displayed in this component's header context-menu whenAI-assisted filteringis allowed and an AI filter in already in effect.If we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to clear an existing sort on this field.Whether the ListGrid should manage the clipping of titles of header buttons, showing ellipses if the title is clipped, and potentially showing the full title onhover.booleanIfcanCollapseGroupis true, will a click anywhere on the group row toggle the group's expanded state? If false, the user must click thegroupIcondirectly to toggle the group.getColumnLeft(Integer colNum) Return the left offset (in local coordinate space) of a particular column.getColumnPageLeft(Integer colNum) Return the left coordinate for a given column number as a GLOBAL coordinategetColumnWidth(int colNum) Return the width of a particular column.If we're showing aheaderContextMenufor this grid, and multi-grouping is enabled, this attribute is used as the title for a menu item that opens aMultiGroupDialogto configure the grouping for this grid.If we're showing aheaderContextMenufor this grid, and multi-sorting is enabled, this attribute is used as the title for a menu item that opens aMultiSortDialogto configure the sort-specification for this grid.Title for the menu-item displayed in this component's header context-menu whencanConfigureViaAIis tru.If this is an editable listGrid, when the user attempts to cancel an edit, should we display a confirmation prompt before discarding the edited values for the record?For editable listGrids, outstanding unsaved edits when the user performs a new filter or sort will be discarded.Ifthis.confirmDiscardEditsis true, this property can be used to customize the error message string displayed to the user in a dialog with options to cancel the action, or save or discard pending edits in response to sort/filter actions that would otherwise drop unsaved edit values.Retrieves a copy of the current criteria for this component (may be null).The color of thefilterWindow criteria indicator.The color of thefilterWindow criteria indicatorwhen shown on thesorter buttonor the lastheader buttonin the grid header.Returns the expansion component derived fromgetExpansionComponent()currently visible in some record, or null if the specified record is not showing an expansion component.getCurrentExpansionComponent(Integer record) Returns the expansion component derived fromgetExpansionComponent()currently visible in some record, or null if the specified record is not showing an expansion component.Integer[]Returns an array of widths of the visible fields in thisListGrid, in px.A ListGrid is adataArity:multiple component.Return the grid data as aRecordList.Delay in milliseconds before fetching data.How to fetch and manage records retrieve from the server.intWhen usingdata paging, how many records to fetch at a time.The DataSource that this component should bind to for default fields and for performingDataSource requests.How should Date type values be displayed in this ListGrid by default?Display format to use for fields specified as type 'datetime'.Before we start editing values in this DataBoundComponent, should we perform a deep clone of the underlying values.Default width for date type fields.Default width for datetime type fields.Default width for editable date type fields.Default width for editable datetime type fields.An array of listGrid field configuration objects.Defaultfilter operatorto use for text-based fields in this grid'sfilter editor, when producingAdvancedCriteria.Text to show after the name of the default filterOperator in theheaderContextMenuwhenallowFilterOperatorsis enabled.getDefaultFormattedFieldValue(Record record, ListGridField field) Get a field value for some record with default field formatters applied.getDefaultFormattedFieldValue(Record record, ListGridField field, int rowNum) getDefaultFormattedFieldValue(Record record, ListGridField field, int rowNum, int colNum) Get a field value for some record with default field formatters applied.getDefaultFormattedValue(Record record, int rowNum, int colNum) Get the value for some cell with default formatters applied.Default width for time type fields.When enabled, the field shown bycanRemoveRecordscauses records to be marked for future removal viamarkRecordRemoved()instead of immediately being removed.Should partially selected checkbox be deselected or selected on click? This setting affectsheader selection checkbox,group\n checkboxesand folder checkbox selection in a Tree data set.IfcanExpandRecordsis true andlistGrid.expansionModeis"related", this property specifies the dataSource for the related records grid to be shown embedded in expanded records.The field whose contents to show in the expanded portion of a record whencanExpandRecordsistrueandlistGrid.expansionModeisdetailField.Prompt to indicate that grouping is disabled as the data set size exceedsgroupByMaxRecords.booleanIfsetFetchOperation()is invoked while this grid is showing a filtered data-set, should the data set be discarded?booleanIf a user is editing acanEdit:truelistGrid, and they hide a field while the editor is showing, should we discard any edits in the edit row for the field being hidden?IfconfirmDiscardEditsis true this is the title for the save button appearing in the lost edits confirmation dialog.getDisplayValue(String fieldName, boolean value) Given a field with a specifiedvalueMapordisplayField, this method will return the display value for any underlying data value.getDisplayValue(String fieldName, float value) Given a field with a specifiedvalueMapordisplayField, this method will return the display value for any underlying data value.getDisplayValue(String fieldName, int value) Given a field with a specifiedvalueMapordisplayField, this method will return the display value for any underlying data value.getDisplayValue(String fieldName, String value) Given a field with a specifiedvalueMapordisplayField, this method will return the display value for any underlying data value.getDisplayValue(String fieldName, Date value) Given a field with a specifiedvalueMapordisplayField, this method will return the display value for any underlying data value.Record[]During a drag-and-drop interaction, this method returns the set of records being dragged out of the component.Indicates what to do with data dragged into another DataBoundComponent.An automatically generated field that can be dragged to drag the current selection (where otherwise the grid itself might be scrolled).The title to use for thedrag handle field.Default icon to show in thedrag handle field..intDefault width and height ofdrag handle iconsfor this ListGrid.intLikescrollRedrawDelay, but applies when the component is being drag-scrolled (via a scrollbar).When records are being dragged from within a ListGrid, what sort of drag-tracker should be displayed?
 Note that if multiple records are being dragged the displayed tracker will be based on the first selected record.CSS Style to apply to the drag tracker when dragging occurs on this component.floatHow far should we render records ahead of the currently visible area? This is expressed as a ratio from viewport size to rendered area size.intIf drawing all rows would cause less thandrawAllMaxCellscells to be rendered, the full dataset will instead be drawn even ifshowAllRecordsis false and the viewport size anddrawAheadRatiosetting would normally have caused incremental rendering to be used.Integer[]Returns the extents of the rows and columns currently visible in this grid's viewport.intgetDrawnRowHeight(int rowNum) Get the drawn height of a row.Integer[]Get the rows that are currently drawn (exist in the DOM), as an array of [firstRowNum, lastRowNum].When an item is dropped on this component, andaddDropValuesis true and both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key, this object provides the "drop values" that Smart GWT will apply to the dropped object before updating it.Message to show when a user attempts to transfer duplicate records into this component, and
preventDuplicatesis enabled.Determines whether when the user edits a cell in this listGrid the entire row becomes editable, or just the cell that received the edit event.intReturns the index of the column being edited or -1 if there is no current edit column.getEditedCell(int record, int field) Returns the current value of a cell.getEditedCell(int rowNum, String fieldName) getEditedCell(Record record, int colNum) getEditedCell(Record record, String fieldName) getEditedRecord(int rowNum) Returns the combination of unsaved edits (if any) and original values (if any) for a given row being edited.Event that will trigger inline editing, seeListGridEditEventfor options.A base name for the CSS class applied to cells when editing has failed.
 If this listGrid is editable, this style will be applied to any edited cells for which validation failed.
 As with the default 'baseStyle' property, this style will have "Dark", "Over", "Selected", or "Disabled" appended to it according to the state of the cell.
 If null, cells for which editing has failed will be rendered using the normal base style classNames, but with custom CSSText applied as derived fromthis.editFailedCSSTextCustom CSS text to be applied to cells when editing has failed.
 If this listGrid is editable, this css text will be applied to any edited cells for which validation failed, on top of the base style for the cell.
 For further customization of styling for cells that failed editing validation, usethis.editFailedBaseStyleinstead.getEditFormItem(Integer field) Method to retrieve a live edit form item for aneditableListGrid.getEditFormItem(String field) Method to retrieve a live edit form item for aneditableListGrid.Text for a menu item allowing users to edit a formula fieldShould we start editing when the widget has focus and the user presses the "f2" key (if this ListGrid supports editing)?Should we start editing when this widget receives focus (if this ListGrid supports editing)?A base name for the CSS class applied to cells containing pending (unsaved) edits
 As with the default 'baseStyle' property, this style will have "Dark", "Over", "Selected", or "Disabled" appended to it according to the state of the cell.Custom CSS text to be applied to cells with pending edits that have not yet been submitted.
 For further customization of styling for cells with pending edits usethis.editPendingBaseStyleinstead.The name of a CSS class used to overlay regular cell styles with additional styling when a cell has unsaved edits - these styles are in addition to the styling applied byeditPendingCSSTextoreditPendingBaseStyle.Default class used to construct theEditProxyfor this component when the component isfirst placed into edit mode.intReturns the index of the row being edited or -1 if there is no current edit row.IfselectOnEditis true, what should be the edit-selection behavior be?Text for a menu item allowing users to edit the formatter for a fieldgetEditValue(int rowNum, int colNum) Returns the current temporary locally stored edit value for some field within a record being edited.getEditValue(int rowNum, String fieldName) Returns the current temporary locally stored edit value for some field within a record being edited.getEditValueAsBoolean(int rowNum, String fieldName) Returns the current temporary locally stored edit value for some field within a record being edited.getEditValueAsDate(int rowNum, String fieldName) Returns the current temporary locally stored edit value for some field within a record being edited.getEditValueAsFloat(int rowNum, String fieldName) Returns the current temporary locally stored edit value for some field within a record being edited.getEditValueAsInt(int rowNum, String fieldName) Returns the current temporary locally stored edit value for some field within a record being edited.getEditValueAsRecord(int rowNum, String fieldName) Returns the current temporary locally stored edit value for some field within a record being edited.Record[]getEditValueAsRecordArray(int rowNum, String fieldName) Returns the current temporary locally stored edit value for some field within a record being edited.getEditValueAsString(int rowNum, String fieldName) Returns the current temporary locally stored edit value for some field within a record being edited.getEditValues(int rowNum) Returns the current set of unsaved edits for a given row being edited.getEditValues(Record record) Returns the current set of unsaved edits for a given row being edited.This is the pixel-amount by which child components are offset within the grid-body, by default from the left, or from the right whenRTLis in effect.This is the space to apply as margin around child-components embedded in this grid.Hover contents to use when the AI-generated hover text is empty.The value to display for cells whose value is null or the empty string after applyingformattingand valueMap (if any).The string to display in the body of a listGrid with an empty data array, if showEmptyMessage is true.The CSS style name applied to theemptyMessageif displayed.Row range summary display valuewhen the grid is empty.For performance reasons, even whenfixedRecordHeightsis set, vertical clipping is not enforced by default for some kinds of content (such as images) on all browsers.What to do when a user hits enter while editing a cell: "nextCell": start editing the next editable cell in this record (or the first editable cell in the next record if focus is in the last editable cell in the row) "nextRow": start editing the same field in the next row (skipping any rows where that would be a non-editable cell.In a ListGrid that has a DataSource and has filter criteria that include values for fields declared astype "enum"in the DataSource, by default a newly edited row will use those filter criteria as initial values.Height of the error icon, if we're showing icons when validation errors occur.Src of the image to show as an error icon, if we're showing icons when validation errors occur.Height of the error icon, if we're showing icons when validation errors occur.What to do when a user hits escape while editing a cell: "cancel": close the editor and discard the current set of edit values "done": just close the editor (the edit is complete, but the edited values are retained).intReturns the column number of the provided X-coordinate, or the most recent mouse event if an X-coordinate is not provided.intReturns the column number of the provided X-coordinate, or the most recent mouse event if an X-coordinate is not provided.intReturns the row number of the provided Y-coordinate, or the most recent mouse event if a Y-coordinate is not provided.intReturns the row number of the provided Y-coordinate, or the most recent mouse event if a Y-coordinate is not provided.ForexpansionModesthat show another grid or tree, is that component editable?protected CanvasgetExpansionComponent(ListGridRecord record) WhencanExpandRecordsis true, gets the embedded-component to show as a given record's expansionComponent.The method ofcomponent-poolingto employ forexpansionComponents.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.WhenExpansionModeis editor, should the row be collapsed following a save initiated by the expansion-component'ssave button.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.The title for theexpansionEditorSaveButton.WhencanExpandRecordsis true andexpansionModeis editor, the prompt to display in a dialog when an expanded row is collapsed while it's nested editor has changed values.WhencanExpandRecordsis true andexpansionModeis editor, whether a dialog should be displayed when an expanded row is collapsed while it's nested editor has changed values.The field providing the facility to expand and collapse rows.IfcanExpandRecordsis set totrue, this property determines the image to display in the expansion field for collapsed rows.IfcanExpandRecordsis set totrue, this property may be set to govern the height of the expansion image displayed to indicate whether a row is expanded.booleanIf this grid is in RTL mode, should an "_rtl" suffix be added to theexpansionFieldTrueImageandexpansionFieldFalseImageimage URLs? This should only be enabled if RTL media for the true and false expansion field images are available.booleanShould a "_selected" suffix be added to theexpansionFieldTrueImageandexpansionFieldFalseImageimage URLs for selected rows?Custom style to apply to the image in theexpansionFielddisplayed in collapsible rows whencanExpandRecordsis true.IfcanExpandRecordsis set totrue, this property may be set to govern the width of the expansion image displayed to indicate whether a row is expanded.IfcanExpandRecordsis set totrue, this property determines the image to display in the expansion field for expanded rows.WhencanExpandRecordsis true, this is the pixel-amount by which child components are offset within the grid-body, by default from the left, or from the right whenRTLis in effect.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.TheExpansionModefor records in this grid.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.Screen to create (viacreateScreen()) in lieu of callinggetExpansionComponent().intIf we're showing the filterEditor (showFilterEditoris true), this property determines the delay in kicking off the filter request if the current filter values are submitted by clicking the filter button or hitting return.Setting exportAll to true prevents the component from passing its list of fields to the 
 export call.When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), background color to use for even-numbered rows, to create a "banded" or "ledger" effect.getExportBGColor(int rowNum, int colNum, Record record) When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), background color to use for the cell at the given rowNum and colNum.getExportColumnBGColor(int colNum) When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), background color to use for the given colNum.Default background color to use when exporting data to Excel/OpenOffice format usingexportData()orexportClientData().booleanWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether fieldhorizontal header alignmentsanddata value alignmentsshould be replicated in the resulting spreadsheet.String[]The list of field-names to export.booleanWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether widths of fields should be replicated in the resulting spreadsheet.booleanWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), causes theheaderHeightandheaderSpan heightsto be applied to the corresponding cells in the spreadsheet.intWidth to size non-visible fields (which may be specified withexportFieldsorDSRequest.exportFields) duringexportData()orexportClientData(), if they have no defined numericwidth.If Summary rows exist for this component, whether to include them when exporting client data.Dictates whether numeric values should be exported as raw numbers instead of formatted values when usingexportClientData().Dictates whether the data in this grid should be exported raw byexportClientData().getExportRowBGColor(int rowNum, Record record) When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), background color to use for the given rowNum.getExportTextColor(int rowNum, int colNum, Record record) When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), text color to use for the cell at the given rowNum and colNum.doubleScaling factor to translate from ListGrid field widths in pixels to Excel/OpenOffice units for field width, which are 1/256th of the width of the widest digit character in the default font for the spreadsheet.booleanWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether titles in theListGrid headerandheaderSpansshould be allowed to wrap.intIf we're showing the filterEditor (showFilterEditoris true), andfilterByCellorfilterOnKeypressare enabled, this property is the delay in milliseconds between the user changing the filter and the filter request being sent to the server.Fields that will be always requested from the server when the grid fetches data, even if they are not visible - may be either an array of fields or a CSV string.Fields that will be always requested from the server when the grid fetches data, even if they are not visible - may be either an array of fields or a CSV string.Operation ID this component should use when performing fetch operations.IfautoFetchDataistrue, this attribute allows the developer to declaratively specifyDSRequestproperties for the initialfetchData()call.getField(int colNum) Given a column number or field name, return the field definition of a field which is visible in the grid.Given a column number or field name, return the field definition of a field which is visible in the grid.Returna an array of field alignments for this gridgetFieldByName(String fieldName) Given a field name, return the appropriate field definition.Returns the pixel width of the content of a visible field in this grid.intReturn the number of fields.The field criteria prefix to show in filter editor field hover before the descriptive version of the field's criteria, if any.getFieldName(int colNum) Given a column number or field id, return the field name of a field.intgetFieldNum(int fieldID) Given a field or field id, return it's index in the fields arrayintgetFieldNum(String fieldID) Given a field or field id, return it's index in the fields arrayString[]Names of properties onListGridFieldfor which theFieldPickershould show an editing interface, for convenience.When set to false, sample values of the FieldPicker are never shown.Instance ofFieldPickerWindowused ifuseAdvancedFieldPickeris set.An array of field objects, specifying the order, layout, formatting, and sorting behavior of each field in the listGrid object.Return the fields as JavaScriptObjects rather than as SmartGWT Java wrappers of the field class type (e.g.voidgetFieldSearchOperator(String fieldName) Returns the current search-operator applied to criteria for a given field in this grid'sfilter row.Initialfield statefor the grid.getFieldTitle(int fieldId) Return the title of a field, specified by name or index.getFieldTitle(String fieldId) Return the title of a field, specified by name or index.If we're showing aheaderContextMenufor this grid, andthis.canPickFieldsis true, this attribute will be shown as the title for the menu item which contains a submenu with items allowing the user to show and hide fields in the grid.getFieldWidth(int fieldNum) Returns a numeric value for the width of some field within thisListGrid.getFieldWidth(String fieldName) Returns a numeric value for the width of some field within thisListGrid.The prompt to show when the mouse hovers over the Filter button in the FilterEditor.IfshowFilterEditoris true, this attribute may be used to customize the filter button shown to the right of the filterEditor row.booleanIf we're showing thefilterEditor, should this list be filtered every time the user changes edit values for particular cells rather than waiting for an Enter keypress or a click on the filterEditor submit button.IfshowFilterEditoris set to true, thefilterEditoris automatically created as an AutoChild.IfshowFilterEditoris true, this method will return the criteria currently displayed in thefilterEditor.getFilterEditorCriteria(Boolean omitHiddenFields) IfshowFilterEditoris true, this method will return the criteria currently displayed in thefilterEditor.Same asgetFilterEditorCriteria()but returns anAdvancedCriteria.getFilterEditorCriterion(String fieldName) Extracts and returns the criteria for the passed field from thefilterEditor.intHeight for the filterEditor, if shown.Properties to apply to the automatically generatedfilterEditorifshowFilterEditoris true.Causes filtering to be performed against the local data set, even when adataSourceis provided.booleanWhen this attribute is true and this component has been assigned asearchFormor is showing thefilterEditor, data will be filtered automatically as users change values in those components.Text for the menu item shown in theheaderContextMenuwhenallowFilterOperatorsis enabled.If filtering of the grid is enabled and AIis enabled, filtering-via-AI can be enabled by setting theAIServiceModeto use.The instruction text to display above the "Filter via AI" text box.Title for the menu-item displayed in this component's header context-menu whenAI-assisted filteringis allowed.Advanced filtering criteria, eithersimpleoradvanced, that is combined with thefilter editor criteriaduring filtering.Instance ofCanvasused to show visual indicator thatfilterWindowCriteriais configured.The instruction text to display at the top of thefilterWindow.The title for theadvanced filtering window.The style to apply to the first cell in each row, whenstyledRowEndsis true.Should we horizontally clip cell contents, or allow columns to expand horizontally to show all contents?Should we vertically clip cell contents, or allow rows to expand vertically to show all contents?Get the row that currently has keyboard focus.Returns thecurrent total row countfor this grid as a formatted string.Uses therowRangeFormatto return a formatted display value showing the currently visible set of rows in the listGrid viewport.If this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInFormulaBuilderis true, this string will be inserted between the headerSpan title(s) and the field title in the field chooser grid in the FormulaBuilder and SummaryBuilder.getFormulaFieldValue(ListGridField field, Record record) Get the computed value of acanAddFormulaFields.If we're showing aheaderContextMenufor this grid andthis.canFreezeFieldsis true, this string will be shown as the title for the menu item to freeze a currently unfrozen field.If this listGrid contains any frozen fields, this property can be used to apply a custom baseStyle to all cells in those frozen fields.CSS style used for thefrozen-bodyof this grid.Maximum width available for anyfrozen fieldsshown in this grid.Maximum width available for anyfrozen fieldsshown in this grid.If this listGrid contains any frozen fields, this property can be used to apply a custom headerBaseStyle to the frozen set of fields.If this listGrid contains any frozen fields, this property can be used to apply a custom headerTitleStyle to the frozen set of fields.protected CanvasgetFrozenRollOverCanvas(Integer rowNum, Integer colNum) For grids with frozen columns, this method is called to retrieve thefrozenRollOverCanvaswhen the user moves over a new row or cell ifshowRollOverCanvasis true, or when the user moves over the selected record ifshowSelectedRollOverCanvasis true.protected CanvasgetFrozenRollUnderCanvas(Integer rowNum, Integer colNum) For grids with frozen columns, this method is called to retrieve thefrozenRollUnderCanvaswhenshowing a rollUnder canvasor showing arollUnder canvas for the selected record.Dynamic String specifying the format for therow range summary valuewhenRowRangeDisplayStyleis set to"full".If true, when the user navigates to a cell using arrow keys and hits Enter, the cell will respond to a click event.If true, when the user navigates to a cell using arrow keys and hits space, the cell will respond to a click event.If true, when the user navigates to a cell using arrow keys and hits Enter, the cell will respond to a double click event.If true, when the user navigates to a cell using arrow keys and hits Space, the cell will respond to a double click event.The additional criteria prefix to show in filter editor field hover, the filter action button or the sorter button before the descriptive version of thefilterWindowCriteria, if any.Array of components that make up this grid.Synonym ofgetBody().getGridSummary(ListGridField field) WhenshowGridSummaryistruethis method is called for each field which will show a grid summary value (as described inListGridField.showGridSummary) to get the summary value to display below the relevant column.This method returns the data displayed in thesummaryRowwhenshowGridSummaryis true.IfshowGridSummaryis true, this attribute will be set to true on the record object representing the grid summary row.intWhen grouping is requested with this number of records or more, an asynchronous approach is used to avoid the browser showing a "script is running slowly.." message prompting the user to stop execution of JavaScript.String[]Get the current grouping of this listGrid as an array of fieldNames.String[]If this grid isgrouped, andshowGroupSummaryis true, this attribute may be set to an array of groupBy field names for which group summaries should appear.intMaximum number of records to which a groupBy can be applied.Warning shown to the user when a grouping attempt failed as the data set length exceedsgroupByMaxRecords.If we're showing aheaderContextMenufor this grid andthis.canGroupByis true, this string will be shown as the title for the menu item to toggle the group by setting for a field.intgetGroupedRecordIndex(ListGridRecord record) Returns the true row index for a grouped record excluding group and summary records.The URL of the base icon for the group icons in this listGrid.intDefault width and height of group icons for this ListGrid.Custom style to apply to thegroupIcondisplayed in collapsible rows whencanGroupByis true.intDefault number of pixels by which to indent subgroups relative to parent group.intDefault number of pixels by which to indent all groups.getGroupMembers(GroupNode node, boolean recordsOnly) For agroupedgrid, returns all the direct children of the supplied node in thegroupTreeifrecordsOnlyfalse.Base styleforgrouprows.The CSS style thatgrouprows will have.WhensortByGroupFirstis active, the sorting direction applied for implicit sorting by the field(s) used for grouping.Initial group state for the grid.getGroupSummaryData(Record[] records, Record groupNode) If this grid isgrouped, andshowGroupSummaryis true, this method will return the group summary data displayed at the end of the group.getGroupSummaryData(Record[] records, Record groupNode, Boolean recalculate) If this grid isgrouped, andshowGroupSummaryis true, this method will return the group summary data displayed at the end of the group.getGroupSummaryData(Record[] records, GroupNode groupNode) If this grid isgrouped, andshowGroupSummaryis true, this method will return the group summary data displayed at the end of the group.getGroupSummaryData(Record[] records, GroupNode groupNode, Boolean recalculate) If this grid isgrouped, andshowGroupSummaryis true, this method will return the group summary data displayed at the end of the group.IfshowGroupSummaryis true, this attribute will be set to true on each record object representing a group-level summary row.ListGridRecord.customStylefor the group-level summary row displayed whenshowGroupSummaryis true.Custom properties for the automatically generatedgroupTitleColumn.When a list grid isgrouped, each group shows under an auto generated header node.The data tree that results from a call togroupBy().If this gridis grouped, this method will return the current selection.getGroupTreeSelection(boolean excludePartialSelection) getGroupTreeSelection(boolean excludePartialSelection, boolean groupNodesOnly) If this gridis grouped, this method will return the current selection.A Toolbar used to manager the headers shown for each column of the grid.Event on a ListGrid header that triggers auto fitting to data and/or title.BackgroundColor for the header toolbar.Set the CSS style used for the header as a whole.Button.baseStyleto apply to the buttons in the header, and the sorter, for this ListGrid.Defaultroleforheader buttons.DefaultARIA stateforheader buttons.Properties to apply to all header buttons.The context menu displayed for column headers.protected MenuItem[]getHeaderContextMenuItems(Integer fieldNum) IfshowHeaderContextMenuistruethis method returns the menu items to be displayed in the default header context menu.intThe height of this listGrid's header, in pixels.This property may be set to customize the alignment for the hover shown onListGrid.headerHover().Optional default height for the hover shown onListGrid.headerHover().This property may be set to customize the opacity for the hover shown onListGrid.headerHover().This property may be set to customize the css style for the hover shown onListGrid.headerHover().This property may be set to customize the vertical alignment for the hover shown onListGrid.headerHover().Optional default width for the hover shown onListGrid.headerHover().This property may be set to customize thewrapattribute for the hover shown onListGrid.headerHover().IfshowHeaderMenuButtonis true, when the user rolls over the header buttons in this grid the headerMenuButton will be shown over the header button in question.intIfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonIfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonIfshowHeaderMenuButtonis true, this property governs the icon shown on the auto-generatedheaderMenuButtonintIfshowHeaderMenuButtonis true, this property governs the height of the icon shown on the auto-generatedheaderMenuButtonintIfshowHeaderMenuButtonis true, this property governs the width of the icon shown on the auto-generatedheaderMenuButtonOffset of the right edge of aheaderMenuButtonfrom the right edge of it's parent button.intIfshowHeaderMenuButtonis true, this property governs the width of the auto-generatedheaderMenuButtonWhen set to any valid CSS border-radius string, allows for a rounded header in this grid by applying a corner-radius to the left of theheader, and to the right of thecorner sort-buttonif it's visible, or the right of theheaderotherwise.IfshowHeaderShadowis true, theCanvas.shadowColorfor the header shadow.intIfshowHeaderShadowis true, theCanvas.shadowHOffsetfor the header shadowintIfshowHeaderShadowis true, theCanvas.shadowSoftnessfor the header shadowintIfshowHeaderShadowis true, theCanvas.shadowVOffsetfor the header shadowNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.MenuItem[]getHeaderSpanContextMenuItems(HeaderSpan headerSpan) Return the menus items that should be shown in a menu triggered from aheaderSpan.Default height for aheaderSpanwith no height specified.StretchImgButton.titleStyleto apply to the buttons in the header, and the sorter, for this ListGrid.Specifies vertical alignment in the column headers: "top", "center", or "bottom".If true, causes thesummaryRowcomponent to be hidden if it has no data after summaries have been recalculatedWhencanShowFilterEditoris true, this is the title for the filterEditor show/hide menu-item, in theheaderContextmenu, when the filterEditor is visible.If set, end users can create advanced hiliting rules that will use theHilite.replacementValuefeature to cause values in hilited cells to be replaced with a user-entered value.If this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInHiliteEditoris true, this string will be inserted between the headerSpan title and the field title in the hiliteEditor field chooser grid.booleanIf set to true, custom HTML applied as part of hiliting will be applied afterformattingfor each cell.Height for hilite icons for this listGrid.intHow much padding should there be on the left ofhilite iconsby default? Can be overridden at the field levelWhenhiliteIconsare present, where the hilite icon will be placed relative to the field value.intHow much padding should there be on the right ofhilite iconsby default? Can be overridden at the field levelString[]Specifies a list of icons that can be used inhilites.intDefault width and height ofhilite iconsfor this component.Width for hilite icons for this component.Marker that can be set on a record to flag that record as hilited.Title used for the text box shown whenhiliteCanReplaceValueis set.When the grid body gets keyboard focus, should we highlight the current focus row, using the rollover cell style?Hilite[]Return the set of hilite-objects currently applied to this DataBoundComponent.Get the current hilites encoded as a String, for saving.WhencanHiliteViaAIistrue, the AI service mode to use.Title for the menu item displayed in this component's header context menu whenAI-assisted hilitingis allowed.WhenshowHoverComponentsis true, the builtin mode to use when automatically creating a hover component for rows in this grid.Screen to create (viacreateScreen()) in lieu of callinggetHoverComponent()orgetCellHoverComponent().Style to apply to hovers shown over this grid.Default cursor to display when the user rolls over icons within cells of antype:iconfield.When usingautoFitFieldWidths, padding in pixels left on each side of fields that show images.intDefault size of thumbnails shown for fieldTypes image and imageFile.Criteria that are never shown to or edited by the user and are cumulative with any criteria provided viaDataBoundComponent.initialCriteria,DataBoundComponent.setCriteria()etc.booleanWhen assembling a value for asummary field, if a referenced field is hilited, should the hilite HTML be included in the summary field value?Property name on a record that will be checked to determine whether a record should be included when calculating totals for thegrid summary.Criteria to use whenDataBoundComponent.setAutoFetchData(Boolean)is used.An array ofSortSpecifierobjects used to set up the initial sort configuration for this grid.If true, if the user clicks on the scroll buttons at the end of the track or clicks once on the scroll track, there will be an instant redraw of the grid content so that the user doesn't see any blank space.Value to display to the user if showing summary values (throughshowGridSummary,showGroupSummaryorlistGridFieldType:"summary"), and the summary function returns"null"(implying it was unable to calculate a valid summary value).booleanTrue if this listGrid is grouped, false otherwiseIfrecord[this.isSeparatorProperty]is set for some record, the record will be displayed as a simple separator row.The style to apply to the last cell in each row, whenstyledRowEndsis true.Whether to leave a gap for the vertical scrollbar, even when it's not present.Property name on a record that will hold the link text for that record.If the user is editing the last record in this listGrid, and attempts to navigate beyond the last row either by tabbing off the last editable field, or using the down arrow key, this property determines what action to take: "next": start editing a new record at the end of the list.The string to display in the body of a listGrid while data is being loaded.The CSS style name applied to the loadingDataMessage string if displayed.If you have a databound listGrid and you scroll out of the currently loaded dataset, by default you will see blank rows until the server returns the data for those rows.intHeight for theloadingRowCountDisplayIconThe URL of the icon to display as arow count valuewhen the row count is loading.intWidth for theloadingRowCountDisplayIconWhenAutoTest.getElement()is used to parse locator strings generated byAutoTest.getLocator()for a cell in this grid, how should the column be identified?
 Note that getLocator() will actually store all available information about the column in the generated string -- this attribute effects how a stored string will be parsed only.WhenAutoTest.getElement()is used to parse locator strings generated byAutoTest.getLocator()for a cell in this grid, how should the row be identified?
 Note that getLocator() will actually store all available information about the row in the generated string -- this attribute effects how a stored string will be parsed only.Getter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.intWhen the length of the field specified byDataSourceField.lengthexceeds this value, the ListGrid shows an edit field of typelongTextEditorTyperather than the standard text field when the field enters inline edit mode.When the length of the field specified byDataSourceField.lengthexceedsthis.longTextEditorThresholdshow an edit field of this type rather than the standard text field when the field enters inline edit mode.WhencanExpandRecordsandcanExpandMultipleRecordsare both true, this property dictates the number of records which can be expanded simultaneously.This is a dynamic string - text within${...}will be evaluated as JS code when the message is displayed.IfshowGridSummaryis true, and summary records are being derived from a fetch against thesummaryRowDataSource, this property may be set to specify the maximum expected number of results from the fetch opeeration.intMinimum size, in pixels, for ListGrid headers.intSets theminimum heightfor the entire list (smaller than this doesn't tend to work very well).intMinimum height for ListGrid cells, settable by the skin, based on the size of the checkbox media used for boolean fields plus minimal surrounding padding.If a summary format string contains an invalid field reference, replace the reference with the missingSummaryFieldValue.If this property is true, any mouse click outside of the open cell editors will end editing mode, hiding the cell editors and saving any changes to those cell values.Class-level defaults to apply to theMultiGroupDialogwhich gets automatically generated whenconfigureGrouping()is called.Properties to apply to theMultiGroupDialogwhich gets automatically generated whenconfigureGrouping()is called.IfcanSelectCellsis true, this property allows the user to navigate through the cells of a grid using Tab and Shift+Tab keypresses.If true, validation will not occur as a result of cell editing for this grid.If this listGrid is showing the 'newRecordRow' (used for adding new rows to the end of the data), this property determines what message should be displayed in this row.Text to show for saving the current view as a new "saved search"."Normal" baseStyle for this listGrid.intIfbaseStyleis unset, base style will be derived fromnormalBaseStyleif this grid has fixed row heights and the specifiedcellHeightmatches this value.Text to show in menu listing saved searches when there are no saved searches.Default alias to use for groups with no valueThe CSS style name applied to theofflineMessageif displayed.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.static ListGridgetOrCreateRef(JavaScriptObject jsObj) Return the underlying, ungrouped data of this DataBoundComponent as aRecordList.Return the underlying, ungrouped data of this ListGrid as aResultSet.Name of a CSS Style to use as thebaseStylefor a cell that is currently a selection origin for shifted incremental cell selection.The value to display for cells whose value is pending asynchronous computation.Message to show in the hover while AI-generated hover text is being retrieved for fields specifying anaiHoverRequest.Should recycledrecord components, be pooled per column or per record.IfshowRollOverorhiliteRowOnFocusis true the current keyboard focus row for navigation via arrow keys, etc, will be hilighted with"Over"styling.Should cells be written out with css that will preserve whitespace?If set, detect and prevent duplicate records from being transferred to this component, either via
 drag and drop or viaDataBoundComponent.transferSelectedData(com.smartgwt.client.widgets.DataBoundComponent).Whether cell contents should wrap during printing.Style for non-header cells in printed output.If set, thebooleanBaseStyleto use whenprinting.If set, thebooleanFalseImageto use whenprinting.If set, thebooleanPartialImageto use whenprinting.If set, thebooleanTrueImageto use whenprinting.If set, thecheckboxFieldFalseImageto use whenprinting.If set, thecheckboxFieldPartialImageto use whenprinting.If set, thecheckboxFieldTrueImageto use whenprinting.Style for header cells in printed output.intAdvanced property - when generating printHTML for a large ListGrid, rows are printed in batches in order to avoid triggering a native "script is running slowly" browser dialog.Whether cell contents should wrap during printing.Indicates whether or not this component will load its dataprogressivelyfloatAlternative todrawAheadRatio, to be used when the user is rapidly changing the grids viewport (for example drag scrolling through the grid).getRecord(int recordNum) Return the pointer to a particular record by record number.This attribute allows custom base styles to be displayed on a per-record basis.If set to false on a record andcanRemoveRecordsis true, removal of that record is disallowed in the UI.If set to false on a record, selection of that record is disallowed.If this property is set on a record it will designate the WAI ARIA role for cells within this records rowgetRecordComponent(int rowNum) Retrieve therecordComponentcurrently being shown at the given coordinates.getRecordComponent(int rowNum, Integer colNum) Retrieve therecordComponentcurrently being shown at the given coordinates.IfshowRecordComponentsis true, this attribute may be used to specify a standard height for record components.The method ofcomponent-poolingto employ forrecordComponents.ifshowRecordComponentsis true, how should the component appear within the cell.The name of the ListGridRecord property that specifies the DataSource to use whenlistGrid.expansionModeis "related".IfcanAcceptDroppedRecordsis true for this listGrid, this property governs whether the user can drop between, or over records within the grid.Returns theRecordDropPositionfor some record drop operation.Property name on a record that should be checked to determine whether the record may be edited.Property name on a record that will be checked to determine whether a record is enabled.intgetRecordIndex(Record record) Get the index of the provided record.
intgetRecordIndex(ListGridRecord record) Get the index of the provided record.Return the underlying data of this DataBoundComponent as aRecordList.When set to any valid CSS border-radius string, allows for rounded records in this grid by havinggetCellCSSText()apply a corner-radius to the first and last cells in each record.Array ofRecordTypesthat should be rounded whenrecordRadiusis set to a valid CSS border-radius string.If this property is set on a record it will designate a mapping of WAI ARIA attribute names and values for this record's row.If this property is set on a record it will designate the WAI ARIA role for this record's row.Returns the current set of records displayed in this grid as an array of ListGridRecord objects.Screen to create (viacreateScreen()) in lieu of callinggetRecordComponent().Name of the property that can be set on a per-record basis to disabled rollover for an individual record whenshowRollOveris true.If showing any record summary fields (IE: fields oftype:"summary"), this attribute specifies a custom base style to apply to cells in the summary fieldgetRelatedDataSource(ListGridRecord record) Returns theDataSourcecontaining data related to the passed record.Custom CSS text to be applied to records that have beenmarked for removal.Returns a JavaScriptObject containing defaultListGridFieldattributes of remove fields.Configuration properties for the "remove field" displayed whencanRemoveRecordsis enabled.The title to use for theremove field.WhencanRemoveRecordsis enabled, default icon to show in the auto-generated field that allows removing records.intDefault width and height ofremove iconsfor this ListGrid.Custom style to apply to the image in theremoveFielddisplayed in rows whencanRemoveRecordsis true.operationIdthis component should use when performing remove operations.booleanIf true, when an update operation occurs on a selected record in adataboundlistGrid, ensure the updated record is re-selected when the operation completes.ifreselectOnUpdateis true, this property governs what selection changed notifications should be triggered when a selected record is edited then automatically reselected when the edited data is merged into the data set.booleanIftrue, the grid contents are redrawn in real time as fields are resized.Return the underlying data of this DataBoundComponent as aResultSet.If a page is rendered inRTL mode, should cell alignments specifiedListGridField.cellAlignbe reversed (so analign:"right"field will have content aligned on the left and vice versa)?protected CanvasgetRollOverCanvas(Integer rowNum, Integer colNum) This method is called to retrieve therollOverCanvaswhen the user moves over a new row or cell ifshowRollOverCanvasis true, or when the user moves over the selected record ifshowSelectedRollOverCanvasis true.protected CanvasgetRollUnderCanvas(Integer rowNum, Integer colNum) This method is called to retrieve therollUnderCanvaswhen the user moves over a new row or cell ifshowing a rollUnder canvasor showing arollUnder canvas for the selected record.intIfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonover arotatedheader button.IfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonover arotatedheader button.intIfshowHeaderMenuButtonis true, this property governs the width of the auto-generatedheaderMenuButtonover arotatedheader button.Whether to rotate the field titles so they're rendered vertically from bottom to top.Returns a mapping of default WAI ARIA attributes for rows within this listGrid.Retrieves therow countfor the grid, which may differ from the reporteddata lengthifprogressive loadingis enabled.When an exactrow countis not known due to progressive loading, this attribute allows the formatted row count returned bygetFormattedRowCount()and ultimately displayed in therowRangeDisplay labelto be rounded to a multiple of the specified value.Integer[]Retrieves therow count rangefor listGrids whereprogressive loadingis active and the row count has been specified as arange.This method indicates whethergetRowCount()reflects an accurate row-count for this listGrid.If the user is editing a record in this listGrid, and attempts to navigate to a field beyond the end of the row, via tab (or shift-tab off the first editable field), this property determines what action to take: "next": start editing the next (or previous) record in the list "same": put focus back into the first editable field of the same record.getRowErrors(int rowNum) Returns any currently stored validation errors for this row in the following format:
 {fieldName:[array of error messages], ...}intgetRowHeight(ListGridRecord record, int rowNum) Return the height this row should be.IflocateRowsByhas been set to "cellValue", this property may be used to specify which field's cell value to use.String[]IflocateRowsByhas been set to "cellValue", this property may be used to specify which field's cell value to use.intgetRowNum(ListGridRecord record) Synonym ofgetRecordIndex().An automatically generated field that displays the current row number whenshowRowNumbersis true.intThe number to start the row-count from - default value is 1.The CSS Style name for therowNumberField.intgetRowPageTop(int rowNum) Returns the Y-coordinate for a given row number as a page-relative coordinate.RowRangeDisplayautoChild, which may be retrieved by callinggetRowRangeDisplay().How should thegetFormattedRowRange()format the row range and row count for display to the user?This method will return a row range summary display value containing the currently visible row range and row count for the data set.Dynamic String specifying the format for thevisible row range.Returns the default WAI ARIA role for rows within this listGrid.intgetRowSpan(ListGridRecord record, int rowNum, int colNum) Return how many rows this cell should span.IfallowRowSpanningis enabled, this property may be used to specify editing behavior for cells that span multiple rows.Chooses the selection mode whenuseRowSpanStylingis enabled.intgetRowTop(int rowNum) Returns the top coordinate for a given row number, relative to the top of body content.Whether edits should be saved whenever the user moves between cells in the current edit row.Should the currentfilter-criteriabe included along with other details when saving this grid'sview-state?booleanSaves the name of the default search to localStorage, under the key "sc_defaultSearch:" + minimal locator.Override ofSavedSearches.adminRolefor this component.Properties for the separator record between locally saved and admin searches.Override ofSavedSearches.defaultDataSourcefor this component.Optional identifier for saved searches that should be applied to this component.Set to "criteria" if you want only criteria to be stored for ListGrids and TreeGrids instead of the full viewState of the component.Text to show for the saved searches submenu.Returns theview statefor this ListGrid as last saved by theautoPersistViewStatesetting.For grids with a specifieddataSource, this property can be set totrueto cause the grid directly update its local data set instead of performing an operation against it's configured DataSource.For editable grids with a specifieddataSource, wheresaveLocallyis false, this attribute may be used to specify standard DSRequest properties to apply to all save operations performed by this grid (whether triggered by user interaction, or explicit saveEdits or saveAllEdits call).Special cell-separator that may be inserted between cell values when screen-readers are reading the content of a row.Should column titles be read along with cell values when screen-readers are reading the content of a row? Only applies when screen-reader mode is enabled, and for ListGrids withariaRole:"list".booleanIfscreen reader mode is enabled, andcanSelectCellsis true should the user be able to navigate the grid cell-by-cell, highlighting and focusing on individual cells within the selected row via left and right arrow keypresses?Special row-separator that may be inserted at the end of the row value when screen-readers are reading the content of a row.Whenscreen reader modeis enabled, for grids withariaRoleset to"list", should a custom aria-labelledby attribute be written out in addition to any otherrow aria propertiesto ensure thecolumn titles,screenReaderCellSeparatorandscreenReaderRowSeparatorare read out along with cell content when reading rows?intWhile drag scrolling in an incrementally rendered grid, time in milliseconds to wait before redrawing, after the last mouse movement by the user.When scrollToCell is called, this is used as defaults if xPosition weren't explicitly passed into the method.When scrollToCell is called, this is used as defaults if yPosition weren't explicitly passed into the method.While scrolling an incrementally rendered grid, using the mouseWheel, time in milliseconds to wait before redrawing, after the last mouseWheel movement by the user.When declared, the specified form is automatically used as a search form for this grid, that is,form.getValuesAsCriteria()is called and the criteria returned are additive with any criteria present in theFilterEditororFilter Window.When declared, the specified form is automatically used as a search form for this grid, that is,form.getValuesAsCriteria()is called and the criteria returned are additive with any criteria present in theFilterEditororFilter Window.If this property is set to true, clicking on a cell will natively select the cell's content, ready to be copied to the browser clipboard.Returns the selected cells as a series of Records where each field value is stored under it's offset from the top-left of the selection.Returns the first selected record in this grid.Returns all selected records in this grid.getSelectedRecords(boolean excludePartialSelections) Returns all selected records in this grid.Returns a snapshot of the current selection within this listGrid as aListGridSelectedStateobject.
 This object can be passed tosetSelectedState()to reset this grid's selection the current state (assuming the same data is present in the grid).If true, show the field-header for the sorted field (or the first field in amulti-sortgrid) in the selected state.Deprecated.usegetSelectedRecords()insteadgetSelection(boolean excludePartialSelections) Deprecated.usegetSelectedRecords(boolean)insteadHow selection of rows should be presented to the user.If specified, the selection object for this list will use this property to mark records as selected.Defines a listGrid's clickable-selection behavior.When the user starts editing a row, should the row also be selected?booleanWhen set to false, clicking a record'sexpansion fieldwill not add the record to the current selection.CSS class to apply to rows marked asseparatorsin this grid.Whether all columns should be drawn all at once, or only columns visible in the viewport.Whether all records should be drawn all at once, or only records visible in the viewport.If set to false, do not show theasynchGroupingPromptdialog duringasynchronous grouping.Iftruethis grid will create and show per-row backgroundComponents as detailedhere.Whether to show a context menu with standard items for all context clicks on rows in the body.booleanIf true and a header button's title is clipped, then a hover containing the full field title is enabled.If true and a cell's value is clipped, then a hover containing the full cell value is enabled.Should group summaries be visible when the group is collapsed?Whether to show fields of non-atomic types when a DataBoundComponent is given a
 DataSource but nocomponent.fields.
Whether to include fields markeddetail:truefrom this component'sDataSource.Controls whether to show a drop-indicator during a drag and drop operation.booleanShould ellipses be displayed when cell content is clipped? May be overridden at the field level viaListGridField.showEllipsisWhenClippedIndicates whether the text of the emptyMessage property should be displayed if no data is available.booleanIf this grid is editable, and an edit has caused validation failure for some cell, should we show an icon to indicate validation failure?WhenExpansionModeis editor, should a Save button be shown below the the expanded editor?booleanShould this listGrid display a filter row.When set to false, no hover is shown for the filter editor fields.WhencanShowFilterEditoris true, this is the title for the filterEditor show/hide menu-item, in theheaderContextmenu, when the filterEditor is hidden.Should an indicator be shown to indicate thatfilterWindowCriteriais configured? The indicator is a small triangle shown in the top-right of the grid header or filter.Should this ListGrid show a summary row beneath the last record of the grid.If this listGrid supportsgrouping, setting this property will cause the grid to render an extra row at the end of each group when grouped, containing summary information for the fields.If this grid isgrouped, andshowGroupSummaryis true, setting this property causes field summary values for each group to be displayed directly in the group header node, rather than showing up at the bottom of each expanded group.If this grid isgroupedandshowGroupSummaryInHeaderis true, instead of group header nodes showing up with a single cell value spanning the full set of columns, summaries for each field will show up in the appropriate columns of the header node.booleanIf this isgroupedand hasfrozen fields, should the group title show in the frozen or unfrozen body?Should we show the header for this ListGrid?Whether to show a context menu on the header with standard items for showing and hiding fields.If set to true andshowHeaderContextMenuis true, theheaderMenuButtonwill be displayed when the user rolls over the header buttons in this grid.Should partial selection of all records be shown in header with a special icon? The partial icon will show in the header whencanSelectAllis enabled and at least one record is selected but all records are not selected.Should the header show a drop-shadow? Shadow will be applied to the header, or for a grid with frozen columns, the header layout.Whether to show a context menu on the header span with standard items for showing and hiding fields.If this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using the FormulaBuilder or SummaryBuilder.If this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using thehilite editor.If this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using themulti-sort editor.Whether to show fields markedhidden:truewhen a DataBoundComponent is given a
 DataSource but nocomponent.fields.
booleanDetermines whether hiliting for any field in this grid is shown in a group summary.If true, andcanHoveris also true, shows popup hover text next to the mouse when the user hovers over a cell.When set to true and canHover is also true, shows a widget hovering at the mouse point.booleanIfshowHoveris true, should cell hover HTML be displayed on disabled cells?When set to true, shows thedrag handle fieldon initial draw.If this is an editable ListGrid, setting this property to true causes an extra row with thenewRecordRowMessageto be displayed below the last record.Should partially selected parents (in a Tree data set) be shown with special icon? This has an impact in grouped grids wherecanSelectGroupsis true.When enabled,createRecordComponent()will be called when saved rows are being rendered, and any returned component will be displayed embedded within the row or cell.If true, showsrecordComponentsin cells, rather than just in records.Should we show different styling for the cell the mouse is over?When enabled, when the mouse moves over a row or cell (depending onuseCellRollOvers), an arbitrary Canvas can be shown layered on top of the row or cell (therollOverCanvas), layered underneath the row or cell (therollUnderCanvas), or both.This setting causes theroll over canvasto be sized to cover the normal row and the expansion layout.If roll overs are enabled, should therollUnderCanvasbe displayed?When set to true, shows an additional field at the beginning of the field-list (respecting RTL) that displays the current rowNum for each record.booleanWhether to associate saved searches by default with the currentDataSourceof a component when asavedSearchIdis not provided.This setting causes theroll over canvasto be displayed when the user rolls over selected records in the grid (but not when rolling over other records).This setting causes theroll under canvasto be displayed when the user rolls over selected records in the grid (but not when rolling over other records).Should the "Selected" style be applied to selected records?IfselectionTypeis set toSelectionStyle.SINGLE, setting this property totruemeans selection will be displayed to the user with theselectionCanvasand/orselectionUnderCanvasrather than with CSS styling.IfselectionTypeis set toSelectionStyle.SINGLE, and eithershowSelectionCanvasistrueandshowSelectionUnderCanvasis unset, orshowSelectionUnderCanvasis explicitly set totrue, then selection will be displayed to the user with theselectionCanvasand/orselectionUnderCanvasrather than with CSS styling.Indicates whether a sorting arrow should appear for the listGrid, and its location.When multiple fields are sorted, set this to false to hide the sort-numeral displayed by default after the sort-arrows in the header-buttons of sorted fields.WhenheaderSpansare in use, whether to show a hierarchical column picker that includes both headerSpans and normal headers, with normal headers indented under headerSpans similarly to how aTreeGriddisplays a Tree.If this list grid is showing anyfrozenfields, and a horizontal scrollbar is visible at the bottom of the liquid columns, should an equivalent scrollbar gap be left visible below the frozen columns?
 Note that if set totrueany backgroundColor or border applied to the ListGrid will show up below the bottom row of the frozen column(s).Ifrecord[this.singleCellValueProperty]is set for some record, the record will be displayed as a single cell spanning every column in the grid, with contents set to the value ofrecord[this.singleCellValueProperty].Where do 'skin' images (those provided with the class) live?Whether to skip line breaks for all fields by default whenescaping HTML.getSort()Returns the currentSortSpecifiersfor this ListGrid.intWhenleaveHeaderMenuButtonSpaceis true, configures the amount of space beyond theheaderMenuButtonWidthon the right side of a ListGrid header button (left forRTL mode) to reserve for the sort arrow if sorting is active for that field and the arrow will be shown.Image to show when sorted in ascending order.Image to show when sorted in ascending order.booleanFor any fields oftype "binary", should sorting be performed against the fileName of the value for the field? For Smart GWT server backed dataSources, this is applied to the record automatically as described in theBinaryFieldsoverview.If set, whenever grouping is performed by an end user or by a programmatic call togroupBy(), data is implicitly sorted by all of the grouped columns, in the order they were passed to groupBy.Image to show when sorted in descending order.Image to show when sorted in descending order.Sorting direction of this ListGrid.If this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInSortEditoris true, this string will be inserted between the headerSpan title(s) and the field title in the field chooser grid on themulti-sort editorThe title for the corner sort button.Specifies the field by which this grid should be initially sorted.If we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to sort a field in ascending order.intReturns the number of fields involved in this grid's current sort configuration.If we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to sort a field in descending order.getSortNumeralHTML(String fieldName, int sortIndex) When multiple fields are sorted, this method returns the HTML for the sort-numeral that appears after the sort-arrows in the header-buttons of sorted fields.intWhenleaveHeaderMenuButtonSpaceis true, configures the amount of space beyond theheaderMenuButtonWidthon the right side of a ListGrid header button (left forRTL mode) to reserve for the sort numeral ifmulti-sortingis active for that field and the numeral will be shown.When multiple fields are sorted, the Style to apply to the numeral that appears after the sort-arrows in the header-buttons of sorted fields.getSortSpecifier(String fieldName) Returns theSortSpecifierfor the passed fieldName, or null if the field is not sorted.Initial sort state for the grid.The menu displayed when a cell is right clicked on.Button.baseStyleto apply to the field header buttons for this ListGrid when showing header spans.If true,getFieldState()andsetFieldState(java.lang.String)will omit state information for hidden fields by default.If this is an editable listGrid, this property determines how failure to save due to validation errors should be displayed to the user.When set to true, the first and last cells in each row will be styled with an additional CSS class, via thefirstCellStyleandlastCellStyleattributes.Default CSS class for the ListGrid as a whole.getSummaryFieldValue(ListGridField field, Record record) Get the computed value of asummary field.Automatically generated ListGrid for displaying grid summary information (seeshowGridSummary).IfshowGridSummaryis true, and asummaryRowDataSourceis specified this property may be used to specify fetch criteria to apply when retrieving summary data to show in the summary row.IfshowGridSummaryis true, by default summary values are calculated on the client based on the current data-set for the grid (seegetGridSummary()andgetGridSummaryFunction()).IfshowGridSummaryis true, and asummaryRowDataSourceis specified this property may be used to customize the fetch request used when retrieving summary data to show in the summary row.intDefault height for thesummary row autoChild.baseStylefor thesummaryRowThe style to apply to <TR> tags in this grid's table."Tall" baseStyle for this listGrid.protected ListGridMethod to return the fieldName which represents the "title" for records in this
 Component.
 
 If this.titleField is explicitly specified it will always be used.
 Otherwise, default implementation will checktitleFieldfor databound
 components.
 
 For non databound components returns the first defined field name of"title", 
"name", or"id".getTitleFieldValue(Record record) Get the value of the titleField for the passed record
getToggleFreezeText(ListGridField field) If we're showing aheaderContextMenufor this grid andthis.canFreezeFieldsis true, this string will be shown as the title for the menu item to toggle whether a field is frozen or unfrozen.intReturn the total number of rows in the grid.While scrolling an incrementally rendered grid, using the inertial scrolling, time in milliseconds to wait before redrawing, after the last touchScroll by the user.Default image to use for the dragTracker when things are dragged within or out of this list.Default image to use for the dragTracker when things are dragged within or out of this list.If we're showing aheaderContextMenufor this grid andthis.canFreezeFieldsis true, this string will be shown as the title for the menu item to unfreeze a currently frozen field.If we're showing aheaderContextMenufor this grid, andthis.isGroupedis true, this attribute will be shown as the title for the menu item to ungroup the grid.Value to return fromgetFormattedRowCount()when the row count is unknownWhencanRemoveRecordsis enabled, this icon will be shown in the auto generated field fro removing records if the record has been marked as removed viamarkRecordRemoved().operationIdthis component should use when performing update operations.booleanShould thesummary roworgroup summariesbe updated during editing of grid records? This can be set false to improve performance when a large number ofListGridFieldsorDataSourceFieldsare present for the grid.Should thefilter-editorin this grid always produceAdvancedCriteria?If set to true, an advanced field picker based on theFieldPickerwill be shown instead of the column picker submenu if there are more fields in the grid thanadvancedFieldPickerThreshold.If true, the set of fields given by the "default binding" (see 
fields) is used, with any fields specified in
component.fieldsacting as overrides that can suppress or modify the
 display of individual fields, without having to list the entire set of fields that
 should be shown.
Are rollovers cell-level or row-level?Causes this grid to filter its data on the client where possible, eliminating trips to the server when criteria becomes more restrictive, since the filter must apply to data which is already on the client.For ListGrids withcanSelectCells:true, enabling this property will cause the listGrid to intercept standard browser copy/paste shortcut keys and perform the following behavior.TheuseFlatFieldsflag causes all simple type fields anywhere in a nested
 set of DataSources to be exposed as a flat list for form binding.booleanIfshowFilterEditoris true, when creating a SelectItem for editing criteria for a field with a ValueMap, should the SelectItem default tomultiple:true?Returns a snapshot of the current user-provided criteria for this ListGrid.IfsaveLocallyis specified, but this grid is bound to a DataSource which includes remote field validators, by default edits will be saved synchronously and these validators will not be executed.
 Set this property totrueto ensure these remote validators are called when saving edits in saveLocally mode.Enables various styling behaviors that potentially make sense whengetRowSpan()has been overridden to introduce spanning cells, and spanning is largest on the left and smaller as cells go to the right.Whether client-side validation checks should be performed when the user moves between cells in the current edit row.If true, validation will be performed on each edited cell when each editor's "change" handler is fired.getValueIcon(ListGridField field, Object value, ListGridRecord record) Returns the appropriate valueIcon for a cell based on the field and the data value for the cell.getValueIconCursor(ListGridField field, ListGridRecord record, Object value) Returns the cursor to display when the mouse pointer is over avalueIconin a a cell.Height for value icons for this listGrid.intHow much padding should there be on the left of valueIcons by default Can be overridden at the field levelintHow much padding should there be on the right of valueIcons by defaultintDefault width and height of value icons for this ListGrid.Width for value icons for this listGrid.Initial view state may be provided for the listGrid at init time.When incremental rendering is switched on and there are variable record heights, the virtual scrolling mechanism manages the differences in scroll height calculations due to the unknown sizes of un-rendered rows to make the scrollbar and viewport appear correctly.Integer[]Get the rows that are currently visible in the viewport, as an array of [firstRowNum, lastRowNum].If this is an editable listGrid, this property determines whether the user will be able to dismiss the edit form, or navigate to another cell while the save is in process (before the asynchronous server response returns).IfcanRemoveRecordsis true, when the user clicks the remove icon for some record, should we show a warning message (defined aswarnOnRemovalMessage) and allow the user to cancel removal?Warning message to show the user on a click on the 'remove' icon ifcanRemoveRecordsis true andwarnOnRemovalis true.If a field hasListGridField.displayFieldspecified and has noListGridField.optionDataSource, this field will display the value from thedisplayFieldof each record by default (for more on this behavior seeListGridField.optionDataSource).Should content within cells be allowed to wrap?IfHeaderSpan.wrapis not explicitly set, should fields wrap? If autofitting, see the docs on that property for the details of how the minimum width for a field is determined.IfListGridField.wrapis not explicitly set, should fields wrap? If autofitting, see the docs on that property for the details of how the minimum width for a field is determined.voidDisplay the current set of records grouped by their values for the given field or fields.groupSortNormalizer(ListGridRecord record, String fieldName, ListGrid context) WhensortByGroupFirstis active, the sortingnormalizerapplied for implicit sorting by the field(s) used for grouping.Whether the grid as a whole has any unsaved edits, in any row.hasChanges(Boolean ignorePendingValues) Whether the grid as a whole has any unsaved edits, in any row.Does this grid currently have errors associated with editValues for any row in the grid.headerHoverHTML(int fieldNum, String defaultHTML) Returns the HTML that is displayed by the defaultheaderHoverhandler.booleanheaderTitleClipped(int fieldNum) Is the field title for the specified field clipped?voidHides thedrag handle field, if currently shown.voidForce a field to be hidden.
 NOTE: If a field.showIf expression exists, it will be destroyed.voidForce a field to be hidden.
 NOTE: If a field.showIf expression exists, it will be destroyed.voidhideFields(ListGridField... fields) Force an array of fields to be hidden.voidhideFields(ListGridField[] fields, boolean suppressRelayout) voidhideFields(String... fields) Force an array of fields to be hidden.voidhideFields(String[] fields, boolean suppressRelayout) Force an array of fields to be hidden.voidhiliteViaAI(String prompt) If hilite-via-AI is enabled (seecanHiliteViaAI), asks AI to hilite the grid according to the given natural language description of the hilite(s) to apply.voidhiliteViaAI(String prompt, HiliteViaAISettings settings) voidhiliteViaAI(String prompt, HiliteViaAISettings settings, HiliteViaAIResultCallback callback) If hilite-via-AI is enabled (seecanHiliteViaAI), asks AI to hilite the grid according to the given natural language description of the hilite(s) to apply.voidInvalidate the current data cache for this databound component via a call to the dataset'sinvalidateCache()method, for example,ResultSet.invalidateCache().voidInvalidates the currently visible set ofrecordComponentsand gets fresh ones for the visible rows in the grid according to therecordComponentPoolingModeisCheckboxField(ListGridField field) Identifies whether the passed-in field is the specially generatedcheckboxFieldused whenSelectionAppearanceis "checkbox".isExpanded(ListGridRecord record) Whether a givenrecordis expanded or collapsed.isExpansionField(ListGridField field) Identifies whether the passed-in field is the specially generatedexpansionFieldused whencanExpandRecordsis true.booleanReturns true if this component is currentlyexporting client data.booleanReturn true if the ListGrid is grouped on a field.booleanisGroupNode(ListGridRecord record) If this listGrid isgrouped, is the record passed in a group header node.isPartiallySelected(ListGridRecord record) When using tree-oriented selection modes likeTreeGrid.cascadeSelection, returns true if the record is considered partially selected because only some of it's children are selected.isRowNumberField(ListGridField field) Identifies whether the passed-in field is the specially generatedrowNumberFieldused whenshowRowNumbersis true.isSelected(ListGridRecord record) Returns true if the record is selected.isSortField(String fieldName) Returnstrueif the passed fieldName is in the current sort-specification.booleanisSummaryRecord(ListGridRecord record) Returns whether the supplied record is a group or grid summary record.Loads all records that match this grid's current filter-criteria, optionally firing a callback when the data arrives.loadAllRecords(Integer maxRecords) loadAllRecords(Integer maxRecords, DSCallback callback) Loads all records that match this grid's current filter-criteria, optionally firing a callback when the data arrives.voidMarks the widget as "dirty" so that it will be added to a queue for redraw.voidmarkForRedraw(String reason) Marks the widget as "dirty" so that it will be added to a queue for redraw.voidmarkRecordRemoved(int rowNum) Marks a record deleted such that a later call tosaveEdits()orsaveAllEdits()will cause a "remove"DSRequestto be submitted.voidmarkRecordsRemoved(int records) Marks an array of records deleted such that a later call tosaveEdits()orsaveAllEdits()will cause a "remove"DSRequestto be submitted.voidmarkRecordsRemoved(RecordList records) Marks an array of records deleted such that a later call tosaveEdits()orsaveAllEdits()will cause a "remove"DSRequestto be submitted.voidmarkRecordsRemoved(ListGridRecord... records) Marks an array of records deleted such that a later call tosaveEdits()orsaveAllEdits()will cause a "remove"DSRequestto be submitted.voidMarks the currently selected records as removed, as thoughmarkRecordRemoved()had been called.protected voidonInit()protected voidbooleanOpens the node represented by the "record" parameter, if it is a folder and is not already open.voidopenRecordDetailGrid(ListGridRecord record, DataSource detailDataSource) Deprecated.voidopenRecordEditor(ListGridRecord record) Deprecated.static voidPreload primary ListGrid skin images.voidRefresh thegrid summary, by either re-calculating from already-loaded data or doing a new fetch from thesummaryRowDataSource.voidRecalculates values for fields withsummary-functionsoruser formulaedefined and for values displayed in thegrid summaryandgroup summary rows.voidrecalculateSummaries(Record... records) voidrecalculateSummaries(Record[] records, ListGridField... fields) Recalculates values for fields withsummary-functionsoruser formulaedefined and for values displayed in thegrid summaryandgroup summary rows.recordClick(ListGrid viewer, ListGridRecord record, int recordNum, ListGridField field, int fieldNum, Object value, Object rawValue, ListGridRecord editedRecord) Executed when the listGrid receives a 'click' event on an enabled, non-separator record.recordMarkedAsRemoved(int rowNum) Returns true if the specified record is marked as removed via a call tomarkRecordRemoved()voidredrawHeader(boolean rightNow) Redraw just thegrid headervoidrefreshCell(int rowNum, int colNum) Refresh an individual cell without redrawing the grid.voidrefreshCell(int rowNum, int colNum, boolean refreshingRow, boolean allowEditCellRefresh) Refresh an individual cell without redrawing the grid.voidrefreshCellStyle(int rowNum, int colNum) Refresh the styling of an individual cell without redrawing the grid.voidUnlikeinvalidateCachethis will perform an asynchronous (background) refresh of this component's data and then call the provided callback method on completion.voidrefreshData(DSCallback callback) UnlikeinvalidateCachethis will perform an asynchronous (background) refresh of this component's data and then call the provided callback method on completion.voidRe-evaluatesListGridField.showIf()for each field, dynamically showing and hiding the appropriate set of fieldsvoidrefreshRecordComponent(int rowNum) Discards anyrecordComponentcurrently assigned to the specified record (or cell) and gets a fresh one, according to therecordComponentPoolingModevoidrefreshRecordComponent(int rowNum, Integer colNum) Discards anyrecordComponentcurrently assigned to the specified record (or cell) and gets a fresh one, according to therecordComponentPoolingModevoidrefreshRow(int rowNum) Refresh an entire row of cells without redrawing the grid.voidregroup()Programmatically regroup the grid according to the current grouping configuration.voidremoveData(Record data) Remove a record from this ListGrid.voidremoveData(Record data, DSCallback callback) voidremoveData(Record data, DSCallback callback, DSRequest requestProperties) Remove a record from this ListGrid.voidremoveEmbeddedComponent(Canvas component) Removes an embedded component from a grid.voidRemoves an embedded component previously associated with the provided record.voidremoveEmbeddedComponent(ListGridRecord record, Integer component) Removes an embedded component previously associated with the provided record.voidremoveRecordClick(int rowNum) Method fired when the user clicks the "remove" icon ifcanRemoveRecordsis true.voidRemove the currently selected records from this component.voidremoveSelectedData(DSCallback callback) voidremoveSelectedData(DSCallback callback, DSRequest requestProperties) voidremoveSelectedData(DSCallback callback, DSRequest requestProperties, RPCQueueCallback queueCallback) Remove the currently selected records from this component.voidreorderField(int fieldNum, int moveToPosition) Reorder a particular fieldvoidreorderFields(int start, int end, int moveDelta) Reorder a set of adjacent fields, from start to end exclusive at the end, by distance moveDelta.
 NOTE: start and end coordinates are in terms of the currently visible fields, not the full set of fields.voidresizeField(int fieldNum, int newWidth) Resize a particular field to a new width.voidresort()If a list has become unsorted due to data modification or a call tounsort(), this method will resort the list by the previoussort-specifierarray, if there is one, or by the previous sort-field and -direction.voidrowClick(ListGridRecord record, int recordNum, int fieldNum) Event handler for when rows in the body are clicked upon.voidrowClick(ListGridRecord record, int recordNum, int fieldNum, boolean keyboardGenerated) Event handler for when rows in the body are clicked upon.voidrowDoubleClick(ListGridRecord record, int recordNum, int fieldNum) Event handler for when a body record is double-clicked.voidrowDoubleClick(ListGridRecord record, int recordNum, int fieldNum, boolean keyboardGenerated) Event handler for when a body record is double-clicked.rowHasChanges(int rowNum) If this listGrid can be edited, this method will return true if the row passed in has been edited, but the edits have not yet been saved to the ListGrid's data object.rowHasChanges(int rowNum, Boolean ignorePendingValues) If this listGrid can be edited, this method will return true if the row passed in has been edited, but the edits have not yet been saved to the ListGrid's data object.rowHasErrors(int rowNum) Does the specified row have unresolved errors?booleanSave a number of outstanding edits for this ListGrid.booleansaveAllEdits(Function callback) Save a number of outstanding edits for this ListGrid.booleansaveAllEdits(Function callback, int[] rows) Save a number of outstanding edits for this ListGrid.voidValidates and saves edits within the row currently being edited (or another row with unsaved edits, if indicated).voidsaveEdits(EditCompletionEvent editCompletionEvent) voidsaveEdits(EditCompletionEvent editCompletionEvent, String callback) voidsaveEdits(EditCompletionEvent editCompletionEvent, String callback, int rowNum) Validates and saves edits within the row currently being edited (or another row with unsaved edits, if indicated).voidscrollBodyTo(Integer left, Integer top) Scroll the body of the grid to the specified coordinates.voidscrollToCell(int rowNum, int colNum) Will scroll the listGrid body such that the specified cell is visible close to the center of the viewport.voidscrollToCell(int rowNum, int colNum, Alignment xPosition) voidscrollToCell(int rowNum, int colNum, Alignment xPosition, VerticalAlignment yPosition) Will scroll the listGrid body such that the specified cell is visible close to the center of the viewport.voidscrollToColumn(int colNum) Scroll the grid to specified column such that the row appears near the center of the viewport.voidscrollToColumn(int colNum, Alignment xPosition) Scroll the grid to specified column such that the row appears near the center of the viewport.voidscrollToRow(int rowNum) Scroll the grid to specified row such that the row appears near the center of the viewport, loading data if necessary.voidscrollToRow(int rowNum, VerticalAlignment yPosition) Scroll the grid to specified row such that the row appears near the center of the viewport, loading data if necessary.voidSelect all records

voidselectRange(int startRow, int endRow) Select a contiguous range of records by indexvoidselectRange(int startRow, int endRow, boolean newState) Select a contiguous range of records by indexvoidselectRecord(int record) Select/deselect aRecordpassed in explicitly, or by index.voidselectRecord(int record, boolean newState) Select/deselect aRecordpassed in explicitly, or by index.voidselectRecord(Record record) Select/deselect aRecordpassed in explicitly, or by index.voidselectRecord(Record record, boolean newState) Select/deselect aRecordpassed in explicitly, or by index.voidselectRecords(int[] records) Select/deselect a list ofRecords passed in explicitly, or by index.voidselectRecords(int[] records, boolean newState) Select/deselect a list ofRecords passed in explicitly, or by index.voidselectRecords(Record[] records) Select/deselect a list ofRecords passed in explicitly, or by index.voidselectRecords(Record[] records, boolean newState) Select/deselect a list ofRecords passed in explicitly, or by index.voidselectSingleRecord(int rowNum) Select a singleRecordpassed in explicitly, or by index, and deselect everything else.voidselectSingleRecord(Record record) Select a singleRecordpassed in explicitly, or by index, and deselect everything else.setAddDropValues(Boolean addDropValues) Indicates whether to add "drop values" to items dropped on this component, if both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key.setAddFormulaFieldText(String addFormulaFieldText) Text for a menu item allowing users to add a formula fieldsetAddOperation(String addOperation) operationIdthis component should use when performing add operations.setAddSummaryFieldText(String addSummaryFieldText) Text for a menu item allowing users to add a formula fieldsetAdvancedFieldPickerThreshold(int advancedFieldPickerThreshold) WhenuseAdvancedFieldPickeris set, total number of available fields that must be present in the grid before the advanced field picker interface is used instead of the normal columns submenu.setAdvancedFilteringText(String advancedFilteringText) If we're showing aheaderContextMenufor this grid, and afilter-editoris visible andallowFilterWindowis enabled, this attribute will be shown as the menu item title to configure advanced filtering.setAiFilterWindowHint(String aiFilterWindowHint) The inline hint-text displayed in the user-entry area in theaiFilterWindow.setAiFilterWindowInstructions(String aiFilterWindowInstructions) The descriptive text displayed above the user-entry area in theaiFilterWindow.setAiFilterWindowTitle(String aiFilterWindowTitle) The title for theAI-driven filter window.setAiHoverContentsPrefix(String aiHoverContentsPrefix) Optional prefix for the AI-generated hover text displayed when hovering over fields specifying anaiHoverRequest.setAiHoverRetryDelay(Integer aiHoverRetryDelay) Minimum number of milliseconds to wait before retrying to generate hover contents via AI.setAiSortFieldMaxRecordsMessage(String aiSortFieldMaxRecordsMessage) The message to show when a user asks the AI to sort more than themaximum allowed records.setAllowFilterExpressions(Boolean allowFilterExpressions) For use withshowFilterEditor:true, allows simple search expressions to be entered into filter fields, as thoughDynamicForm.allowExpressionswere true.setAllowFilterOperators(Boolean allowFilterOperators) Causes a menu item titled"Filter using"to appear in theheaderContextMenuthat allows the end user to pick an advancedsearch operatorto use for this field.setAllowFilterWindow(Boolean allowFilterWindow) Adds the ability for a user to define additional criteria above and beyond those expressed in thefilter editorvia aFilterBuilderwhich appears in a modal Window over the grid and can be accessed by various menus within the grid or triggered by external controls.setAllowRowSpanning(Boolean allowRowSpanning) Should cells in this grid be allowed to span multiple rows? If set totrue, thegetRowSpan()method will be called for every cell when rendering out the listGrid to determine how many rows the cell should span.setAlternateBodyStyleName(String alternateBodyStyleName) Optional css style to apply to the body ifalternateRecordStylesis true for this grid.setAlternateFieldFrequency(int alternateFieldFrequency) The number of consecutive columns to draw in the same style before alternating, whenalternateColumnStylesis true.setAlternateFieldStyles(boolean alternateFieldStyles) Whether alternating columns (or blocks of columns, depending onGridRenderer.alternateColumnFrequency) should be drawn in alternating styles, in order to create a vertical "ledger" effect for easier reading.setAlternateFieldSuffix(String alternateFieldSuffix) Suffix to append toalternate columns.setAlternateRecordFrequency(int alternateRecordFrequency) The number of consecutive rows to draw in the same style before alternating, whenalternateRowStylesis true.setAlternateRecordStyles(Boolean alternateRecordStyles) Whether alternating rows (or blocks of rows, depending onGridRenderer.alternateRowFrequency) should be drawn in alternating styles, in order to create a "ledger" effect for easier reading.setAlternateRecordSuffix(String alternateRecordSuffix) Suffix to append toalternate rows.setAlwaysShowEditors(Boolean alwaysShowEditors) When this attribute is set, editors will be appear to be present in every row of the grid, allowing the user to immediately start editing any cell, rather than showing up in a single record at a time.
 This attribute is only valid wheneditByCellis false.setAlwaysShowOperatorIcon(Boolean alwaysShowOperatorIcon) WhenallowFilterOperatorsis enabled, whether to show theoperatorIconfor all filterable fields, or only for fields where the user has explicitly chosen a search operator different from the default operator for the field.setAnimateFolderEffect(AnimationAcceleration animateFolderEffect) When animating folder opening / closing, this property can be set to apply an animated acceleration effect.setAnimateFolderMaxRows(Integer animateFolderMaxRows) IfanimateFoldersis true for this grid, this number can be set to designate the maximum number of rows to animate at a time when opening / closing a folder.setAnimateFolders(Boolean animateFolders) If true, when folders are opened / closed children will be animated into view.setAnimateFolderSpeed(int animateFolderSpeed) When animating folder opening / closing, this property designates the speed of the animation in pixels shown (or hidden) per second.setAnimateFolderTime(int animateFolderTime) When animating folder opening / closing, ifTreeGrid.animateFolderSpeedis not set, this property designates the duration of the animation in ms.setAnimateRemoveRecord(Boolean animateRemoveRecord) WhencanRemoveRecordsis enabled, should records be animated out of view when they are removed by the user?setAnimateRemoveSpeed(int animateRemoveSpeed) Whenanimating record removal, this property designates the speed of the animation in pixels per second.setAnimateRemoveTime(int animateRemoveTime) When animating record removal(see animateRemoveRecord), ifanimateRemoveSpeedis not set, this property designates the duration of the animation in ms.setAnimateRollOver(Boolean animateRollOver) If therollOverCanvasis enabled, setting this property totrueensures that when therollOverCanvasis displayed it is animated into view viaCanvas.animateShow().setAnimateRollUnder(Boolean animateRollUnder) If therollUnderCanvasis enabled, setting this property totrueensures that when therollUnderCanvasis displayed it is animated into view viaCanvas.animateShow().setAnimateSelection(Boolean animateSelection) If theselectionCanvasis enabled, setting this property totrueensures that when theselectionCanvasis displayed it is animated into view viaCanvas.animateShow().setAnimateSelectionUnder(Boolean animateSelectionUnder) If theselectionUnderCanvasis enabled, setting this property totrueensures that when theselectionUnderCanvasis displayed it is animated into view viaCanvas.animateShow().setApplyFormulaAfterSummary(Boolean applyFormulaAfterSummary) IfListGridField.userFormulais set for some field, and this grid is showinggroup summariesor agrid summary, this property determines what field value should be present in those summary rows.setApplyRowCountToLength(Boolean applyRowCountToLength) This property allows developers to explicitly setResultSet.applyRowCountToLengthfor this grid's data object.setApplyRowNumberStyle(boolean applyRowNumberStyle) setApproximateRowCountFormat(String approximateRowCountFormat) setAriaRole(String ariaRole) ARIA role for this ListGrid ifscreen reader modeis enabled.setArrowKeyAction(String arrowKeyAction) Action to perform when the listGrid has keyboard focus (but not editing focus) and a user presses the arrow keys to navigate around the grid.setArrowKeyEditAction(ArrowKeyEditAction arrowKeyEditAction) What to do when a user hits arrow key while editing a field?
 If not explicitly specifiedgetArrowKeyEditAction()will return an appropriate action depending on the field type.setAsyncErrorCellValue(String asyncErrorCellValue) The value to display for cells when an error occurred during asynchronous computation.setAsynchGroupingPrompt(String asynchGroupingPrompt) The prompt to display while interactivity is blocked duringasynchronous grouping.setAsyncMissingCellValue(String asyncMissingCellValue) The value to display for cells whose value was not computed by the previous asynchronous operation to compute it, or will not be computed by an asynchronous operation due to currently being disabled.voidsetAutoChildProperties(String autoChildName, ListGridField properties) Sets the properties for creating aListGridFieldAutoChild namedautoChildName.setAutoComplete(AutoComplete autoComplete) Whether to do inline autoComplete in text fields during inline editing
 Overridden byListGridField.autoCompleteif specified.setAutoConfirmSaveEdits(Boolean autoConfirmSaveEdits) For editable listGrids, outstanding unsaved edits when the user performs a new filter or sort will be discarded by default.setAutoFetchAsFilter(Boolean autoFetchAsFilter) IfDataBoundComponent.setAutoFetchData(Boolean)is true, this attribute determines whether the initial fetch operation should be performed viaDataBoundComponent.fetchData()orDataBoundComponent.filterData()setAutoFetchData(Boolean autoFetchData) If true, when this component is first drawn, automatically callDataBoundComponent.fetchData()orDataBoundComponent.filterData()depending onDataBoundComponent.getAutoFetchAsFilter().setAutoFetchDisplayMap(Boolean autoFetchDisplayMap) If true, for fields whereListGridField.optionDataSourceis specified, a valueMap will be automatically created by making aDataSource.fetchData()call against the specified dataSource and extracting a valueMap from the returned records based on the displayField and valueField.setAutoFetchRowCount(boolean autoFetchRowCount) Depending on whetherDataSource.progressiveLoadingis active, the exact count of available rows may not be available as part of the standard data fetch response - settingautoFetchRowCount:truewill cause a fetch for an accurate row count to be issued as soon as data arrives (from aprogressive dataSource response) without an accurate row count.setAutoFetchTextMatchStyle(TextMatchStyle autoFetchTextMatchStyle) IfautoFetchDataistrue, this attribute allows the developer to specify a textMatchStyle for the initialDataBoundComponent.fetchData()call.setAutoFitAllText(String autoFitAllText) If we're showing aheaderContextMenufor this grid, andcanAutoFitFieldsis true, this attribute will be shown as the menu item title for an item to perform a one-time autoFit of all visible fields via theautoFitField()method.setAutoFitClipFields(String... autoFitClipFields) IfautoFitFieldWidthsis enabled and the calculated field sizes are wide enough that horizontal scrolling would be introduced, this attribute may be set to an array of fieldNames, causing those fields to be clipped rather than forcing horizontal scrollbars to appear.setAutoFitData(Autofit autoFitData) Should this ListGrid automatically expand to accommodate the size of records and fields?setAutoFitDateFields(AutoFitWidthApproach autoFitDateFields) Should listGrids automatically size date fields to fit their values or titles? If set to"value", fields of type date will be rendered at the size specified bydefaultDateFieldWidth, (ordefaultEditableDateFieldWidthfor editable fields).setAutoFitExpandField(String autoFitExpandField) The field to expand ifautoFitFieldWidthsandautoFitFieldsFillViewportare enabled and auto-fitting will not fill all available horizontal space.setAutoFitExtraRecords(Integer autoFitExtraRecords) IfautoFitDatais set to"vertical"or"both", setting this property will cause the ListGrid body to size large enough to accommodate the actual data and also leave this many extra rows' worth of blank space below the last record.setAutoFitFieldsFillViewport(Boolean autoFitFieldsFillViewport) IfautoFitFieldWidthsis enabled, and extra space is available after autofitting all fields, should the grid automatically expand one field to fill the extra space.setAutoFitFieldText(String autoFitFieldText) If we're showing aheaderContextMenufor this grid, and user-driven auto fit of fields is enabled viaListGridField.canAutoFitWidthorcanAutoFitFields, this attribute will be shown as the menu item title for an item to perform a one-time autoFit of the field to its title or content via a call toautoFitField().setAutoFitFieldWidths(Boolean autoFitFieldWidths) Should ListGrid fields autofit their widths to titles or content? This property may be overridden on a per-field basis viaListGridField.autoFitWidth.setAutoFitHeaderHeights(Boolean autoFitHeaderHeights) If this property is set to true, header buttons for eitherfieldsorheader spanswill automatically expand to accommodate their titles vertically.setAutoFitIconFields(AutoFitIconFieldType autoFitIconFields) Smart GWT listGrids have special logic to automatically size fields that are displayed as an icon - that is fields withtype:"icon", fields displaying onlyvalue icons, and boolean fields (which are rendered as a checkmark type icon by default.setAutoFitMaxColumns(int autoFitMaxColumns) IfautoFitDatais set to"horizontal"or"both"this property provides the maximum number of columns for which the ListGrid will expand.setAutoFitMaxHeight(Integer autoFitMaxHeight) IfautoFitDatais set to"vertical"or"both"this property provides an upper limit on how far the ListGrid will expand vertically to accommodate its content.setAutoFitMaxRecords(int autoFitMaxRecords) IfautoFitDatais set to"vertical"or"both"this property provides the maximum number of records for which the ListGrid will expand.setAutoFitMaxWidth(Integer autoFitMaxWidth) IfautoFitDatais set to"horizontal"or"both"this property provides an upper limit on how far the ListGrid will expand horizontally to accommodate its content.setAutoFitMaxWidth(String autoFitMaxWidth) IfautoFitDatais set to"horizontal"or"both"this property provides an upper limit on how far the ListGrid will expand horizontally to accommodate its content.setAutoFitTimeFields(AutoFitWidthApproach autoFitTimeFields) Should listGrids automatically size time fields to fit their values or titles? If set to"value", fields of type time will be rendered at the size specified bydefaultTimeFieldWidth.voidsetAutoFitWidth(String fieldName, boolean autoFit) Setter forListGridField.autoFitWidth.setAutoFitWidthApproach(AutoFitWidthApproach autoFitWidthApproach) When a user requests column autofitting via theheader context menuor via amouse gesture, what autofit approach is used.setAutoPersistViewState(ListGridViewStatePart... autoPersistViewState) Setting this property to a non-null value will enable automatic saving ofview stateto offline storage.setAutoSaveEdits(Boolean autoSaveEdits) If this ListGrid is editable, should edits be saved out when the user finishes editing a row (or a cell ifsaveByCellis true).setAutoSizeHeaderSpans(Boolean autoSizeHeaderSpans) If this listGrid has specifiedheaderSpans, setting this attribute to true will cause spans to expand to accommodate long titles if necessary.setBadFormulaResultValue(String badFormulaResultValue) If the result of a formula evaluation is invalid (specifically, if isNaN(result)==true), badFormulaResultValue is displayed instead.setBaseStyle(String baseStyle) base cell stylefor this listGrid.setBlockingRowCountFetch(Boolean blockingRowCountFetch) If specified, this attribute will be applied to this grid'sdata objectfor dataBound grids.setBodyBackgroundColor(String bodyBackgroundColor) Background color applied to the ListGrid body (that is, the area of the grid where data values are rendered).
 Note that this will typically not be visible to the user unless there are few enough rows that there is visible space in the body below the last row.setBodyOverflow(Overflow bodyOverflow) Overflow setting for the "body", that is, the area of the grid where data values are rendered.setBodyStyleName(String bodyStyleName) CSS style used for the body of this grid.setBooleanBaseStyle(String booleanBaseStyle) An optional CSS style to apply to the checkbox image.setBooleanFalseImage(String booleanFalseImage) Image to display for a false value in a boolean field.setBooleanImageHeight(int booleanImageHeight) setBooleanImageWidth(int booleanImageWidth) setBooleanPartialImage(String booleanPartialImage) Image to display for a partially true value in a boolean field (typically selection).setBooleanTrueImage(String booleanTrueImage) Image to display for a true value in a boolean field.setBriefRowRangeDisplayValue(String briefRowRangeDisplayValue) Dynamic String specifying the format for therow range summary valuewhenRowRangeDisplayStyleis set to"brief".setCanAcceptDroppedRecords(Boolean canAcceptDroppedRecords) Indicates whether records can be dropped into this listGrid.setCanAddAISortFields(Boolean canAddAISortFields) Adds an item to the header context menu allowing users to launch a dialog to define a new field to be sorted by an AI score of the entire record and possibility related records.setCanAddFormulaFields(Boolean canAddFormulaFields) Adds an item to the header context menu allowing users to launch a dialog to define a new
 field based on values present in other fields, using the {@link com.smartgwt.client..FormulaBuilder}.
setCanAddSummaryFields(Boolean canAddSummaryFields) Adds an item to the header context menu allowing users to launch a dialog to define a new
 text field that can contain both user-defined text and the formatted values present in other 
 fields, using the {@link com.smartgwt.client..SummaryBuilder}.
setCanAutoFitFields(Boolean canAutoFitFields) Can the user perform one-time autofit for specific columns in this grid?setCancelEditingConfirmationMessage(String cancelEditingConfirmationMessage) If this is an editable listGrid, andthis.confirmCancelEditingis true this property is used as the message to display in the confirmation dismissal prompt.setCanCollapseGroup(Boolean canCollapseGroup) Can a group be collapsed/expanded? When true a collapse/expand icon is shown (groupIcon) and the user can collapse or expand the group by clicking either the row as a whole or the opener icon (seecollapseGroupOnRowClick); When false the group icon is not shown and clicking on the row does not change group state.setCanConfigureViaAI(Boolean canConfigureViaAI) Whether to show theConfigure via AImenu-item, which allows users to task the AI with performing multiple advanced configuration steps, such as grouping, hiliting and filtering, by entering plain-text commands.setCanDragRecordsOut(Boolean canDragRecordsOut) Indicates whether records can be dragged from this listGrid and dropped elsewhere.setCanDragSelect(Boolean canDragSelect) If this property is true, users can drag the mouse to select several rows or cells.setCanDragSelectText(Boolean canDragSelectText) If this property is true, users can drag the mouse to select text within grid rows, ready to be cliped to clipboard.
 This is mutually exclusive withrearranging rows or cells by dragging, and withdrag selection of rows.setCanDropInEmptyArea(Boolean canDropInEmptyArea) If set to false, dropping over an empty part of the grid body is disallowed and the no-drop indicator is displayed.setCanEdit(Boolean canEdit) Can the user edit cells in this listGrid? Can be set for the listGrid, and overridden for individual fields.
 If 'canEdit' is false at the listGrid level, fields can never be edited - in this case the canEdit property on individual fields will be ignored.
 If 'canEdit' is set to true at the listGrid level, setting the 'canEdit' property to false at the field level will prevent the field from being edited inline unless a custom override ofcanEditCell()allows it.
 If 'canEdit' is not set at the listGrid level, setting 'canEdit' to true at the field level enables the field to be edited inline.setCanEditHilites(boolean canEditHilites) Adds an item to the header context menu allowing users to launch a dialog to define grid hilites using theHiliteEditor.setCanEditTitles(boolean canEditTitles) If set to true, theadvanced field pickerprovides an interface allowing users to modify fields' titles.setCanExpandMultipleRecords(Boolean canExpandMultipleRecords) WhencanExpandRecordsis true, this property indicates whether multiple records can be expanded simultaneously.setCanExpandRecordProperty(String canExpandRecordProperty) Property name on a record that will be checked to determine whether a record can be expanded.setCanExpandRecords(Boolean canExpandRecords) When set to true, shows an additional field at the beginning of the field-list (respecting RTL) to allow users to expand and collapse individual records.setCanFocusInEmptyGrid(boolean canFocusInEmptyGrid) If the listGrid is empty, should the user be able to put focus into the grid body by tabbing to it?setCanFreezeFields(Boolean canFreezeFields) Whether an interface should be shown to allow user is allowed to dynamically "freeze" or "unfreeze" columns with respect to horizontally scrolling.setCanGroupBy(Boolean canGroupBy) If false, grouping via context menu will be disabled.setCanHiliteViaAI(Boolean canHiliteViaAI) When set totrueand AI component views are enabled, shows an item in this component's header context menu that allows the user to ask the AI to hilite the records according to a natural language description of which records to hilite.setCanHover(Boolean canHover) If true, cellHover and rowHover events will fire and then a hover will be shown (if not canceled) when the user leaves the mouse over a row / cell unless the corresponding field hasshowHoverset to false.setCanMultiGroup(boolean canMultiGroup) When true, indicates that this ListGrid supports grouping on multiple fields.setCanMultiSort(Boolean canMultiSort) When true, indicates that this ListGrid supports sorting on multiple fields.setCanPickFields(Boolean canPickFields) Indicates whether the field picker item and submenu should be present in the header context menu.setCanPickOmittedFields(Boolean canPickOmittedFields) If true, thefield picker menuwill include entries for all dataSource fields, including those not included in the specifiedfields array.setCanRemoveRecords(Boolean canRemoveRecords) If set, provide UI for the user to remove records from the grid as an additional field showing theremoveIcon, which, when clicked, will callremoveRecordClick()which removes the row from the data set (or ifdeferRemovalis true changes themarkRecordRemoved()status for the record).setCanReorderFields(Boolean canReorderFields) Indicates whether fields in this listGrid can be reordered by dragging and dropping header fields.setCanReorderRecords(Boolean canReorderRecords) Indicates whether records can be reordered by dragging within thisListGrid.setCanRequestRowCount(boolean canRequestRowCount) Depending on whetherDataSource.progressiveLoadingis active, the exact count of available rows may not be known, andcanRequestRowCountcontrols whether the end user may explicitly request it by clicking theRowRangeDisplaylabel.setCanResizeFields(Boolean canResizeFields) Indicates whether fields in this listGrid can be resized by dragging header fields.setCanSaveSearches(boolean canSaveSearches) When enabled (the default), causes a "Saved views >" submenu to appear in the header context menu, last, allowing the user to create new saved searches, select previously saved searches, and edit or copy existing searches.setCanSelectAll(Boolean canSelectAll) Controls whether a checkbox for selecting all records appears in the header withselectionAppearanceset to "checkbox"setCanSelectCells(Boolean canSelectCells) Enables cell-level selection behavior as well ascell-level rollover.setCanSelectGroups(boolean canSelectGroups) Controls whether a checkbox for selectinggroupsappears in the group node ifSelectionAppearanceis set to"checkbox"voidThis customizer is called to determine whether a given record can be selected in this grid.setCanSelectSummaryRows(boolean canSelectSummaryRows) Whether to allow selection of the summary row, for example by clicking on the record.setCanShowFilterEditor(boolean canShowFilterEditor) Should a menu item allowing the user to show or hide thefilter editorbe displayed in theheaderContextmenu?setCanSort(Boolean canSort) Enables or disables interactive sorting behavior for this listGrid.setCanTabToHeader(Boolean canTabToHeader) Should the header be included in the tab-order for the page? If not explicitly specified, the header will be included in the tab order for the page ifSC.setScreenReaderMode()is called.setCanTabToSorter(Boolean canTabToSorter) Should thecorner sort buttonbe included in the tab-order for the page?voidIfshowCellContextMenusistrue, this method is fired when the user right-clicks a cell in this grid.
 Default implementation will display a menu with entries derived fromListGrid.getCellContextMenuItemsfor the appropriate cell.voidsetCellCSSTextCustomizer(CellCSSTextCustomizer customizer) Sets a customizer that returns additional CSS-text for styling a given cell.voidsetCellFormatter(CellFormatter formatter) Sets a formatter that returns the HTML to display in each cell of the grid, given the raw cell value.setCellHeight(int cellHeight) Default height for each row in pixels.setCellPadding(int cellPadding) The amount of empty space, in pixels, surrounding each value in its cell.setCellRole(String cellRole) Returns the default WAI ARIA role for cells within this listGrid.voidProvide a custom implementation ofcellValueHoverHTML(ListGridRecord, int, int, String).setChartConstructor(String chartConstructor) Name of the Smart GWT Class to be used when creating charts.setChartType(ChartType chartType) Default type of chart to plot.setCheckboxFieldFalseImage(String checkboxFieldFalseImage) IfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for an unselected row.setCheckboxFieldImageHeight(Integer checkboxFieldImageHeight) IfselectionAppearanceis set to"checkbox"this property may be set to govern the height of the checkbox image displayed to indicate whether a row is selected.setCheckboxFieldImageWidth(Integer checkboxFieldImageWidth) IfselectionAppearanceis set to"checkbox"this property may be set to govern the width of the checkbox image displayed to indicate whether a row is selected.setCheckboxFieldPartialImage(String checkboxFieldPartialImage) IfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for a partially selected row.voidsetCheckboxFieldProperties(ListGridField checkboxFieldProperties) Standard properties to apply to the automatically generated checkbox field, shown whenselectionAppearanceis set to "checkbox".setCheckboxFieldTrueImage(String checkboxFieldTrueImage) IfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for a selected row.setChildExpansionMode(ExpansionMode childExpansionMode) ForexpansionModesthat show another grid or tree, what the child's expansionMode should be.setClearAllSortingText(String clearAllSortingText) If we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to clear any existing sort on all fields.setClearCriteriaOnFilterEditorHide(boolean clearCriteriaOnFilterEditorHide) When set to false, this attribute prevents user-criteria in thefilterEditorfrom being cleared when the user hides it.setClearFilterText(String clearFilterText) If we're showing aheaderContextMenufor this grid, and afilter-editoris visible, this attribute will be shown as the menu item title to clear any existing filter.setClearFilterViaAIText(String clearFilterViaAIText) Title for the menu-item displayed in this component's header context-menu whenAI-assisted filteringis allowed and an AI filter in already in effect.setClearSortFieldText(String clearSortFieldText) If we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to clear an existing sort on this field.setClipHeaderTitles(Boolean clipHeaderTitles) Whether the ListGrid should manage the clipping of titles of header buttons, showing ellipses if the title is clipped, and potentially showing the full title onhover.setCollapseGroupOnRowClick(boolean collapseGroupOnRowClick) IfcanCollapseGroupis true, will a click anywhere on the group row toggle the group's expanded state? If false, the user must click thegroupIcondirectly to toggle the group.setConfigureGroupingText(String configureGroupingText) If we're showing aheaderContextMenufor this grid, and multi-grouping is enabled, this attribute is used as the title for a menu item that opens aMultiGroupDialogto configure the grouping for this grid.setConfigureSortText(String configureSortText) If we're showing aheaderContextMenufor this grid, and multi-sorting is enabled, this attribute is used as the title for a menu item that opens aMultiSortDialogto configure the sort-specification for this grid.setConfigureViaAIText(String configureViaAIText) Title for the menu-item displayed in this component's header context-menu whencanConfigureViaAIis tru.setConfirmCancelEditing(Boolean confirmCancelEditing) If this is an editable listGrid, when the user attempts to cancel an edit, should we display a confirmation prompt before discarding the edited values for the record?setConfirmDiscardEdits(Boolean confirmDiscardEdits) For editable listGrids, outstanding unsaved edits when the user performs a new filter or sort will be discarded.setConfirmDiscardEditsMessage(String confirmDiscardEditsMessage) Ifthis.confirmDiscardEditsis true, this property can be used to customize the error message string displayed to the user in a dialog with options to cancel the action, or save or discard pending edits in response to sort/filter actions that would otherwise drop unsaved edit values.voidsetCriteria(Criteria criteria) Sets this component's filter criteria.setCriteriaIndicatorColor(String criteriaIndicatorColor) The color of thefilterWindow criteria indicator.setCriteriaIndicatorHeaderColor(String criteriaIndicatorHeaderColor) The color of thefilterWindow criteria indicatorwhen shown on thesorter buttonor the lastheader buttonin the grid header.setData(RecordList data) setData(ListGridRecord... data) A list of ListGridRecord objects, specifying the data to be used to populate the ListGrid.setDataArity(String dataArity) A ListGrid is adataArity:multiple component.setDataFetchDelay(Integer dataFetchDelay) Delay in milliseconds before fetching data.setDataFetchMode(FetchMode dataFetchMode) How to fetch and manage records retrieve from the server.setDataPageSize(int dataPageSize) When usingdata paging, how many records to fetch at a time.setDataProperties(ResultSet resultSetProperties) For databound ListGrids, this attribute can be used to customize theResultSetobject created for this grid when data is fetched.setDataSource(DataSource dataSource) The DataSource that this component should bind to for default fields and for performingDataSource requests.voidsetDataSource(DataSource dataSource, ListGridField... fields) Bind to a DataSource.setDataSource(String dataSource) The DataSource that this component should bind to for default fields and for performingDataSource requests.setDateFormatter(DateDisplayFormat dateFormatter) How should Date type values be displayed in this ListGrid by default?setDateInputFormat(String dateInputFormat) If this is an editable listGrid, this property will specify theinputFormatapplied to editors for fields of type"date".setDatetimeFormatter(DateDisplayFormat datetimeFormatter) Display format to use for fields specified as type 'datetime'.setDeepCloneOnEdit(Boolean deepCloneOnEdit) Before we start editing values in this DataBoundComponent, should we perform a deep clone of the underlying values.setDefaultDateFieldWidth(Integer defaultDateFieldWidth) Default width for date type fields.setDefaultDateTimeFieldWidth(Integer defaultDateTimeFieldWidth) Default width for datetime type fields.setDefaultEditableDateFieldWidth(Integer defaultEditableDateFieldWidth) Default width for editable date type fields.setDefaultEditableDateTimeFieldWidth(Integer defaultEditableDateTimeFieldWidth) Default width for editable datetime type fields.setDefaultFields(ListGridField... defaultFields) An array of listGrid field configuration objects.voidMethod to calculate and return the default width of a field.setDefaultFilterOperator(OperatorId defaultFilterOperator) Defaultfilter operatorto use for text-based fields in this grid'sfilter editor, when producingAdvancedCriteria.setDefaultFilterOperatorSuffix(String defaultFilterOperatorSuffix) Text to show after the name of the default filterOperator in theheaderContextMenuwhenallowFilterOperatorsis enabled.static voidsetDefaultProperties(ListGrid listGridProperties) Class level method to set the default properties of this class.setDefaultTimeFieldWidth(Integer defaultTimeFieldWidth) Default width for time type fields.setDeferRemoval(Boolean deferRemoval) When enabled, the field shown bycanRemoveRecordscauses records to be marked for future removal viamarkRecordRemoved()instead of immediately being removed.setDeselectOnPartialCheckboxClick(Boolean deselectOnPartialCheckboxClick) Should partially selected checkbox be deselected or selected on click? This setting affectsheader selection checkbox,group\n checkboxesand folder checkbox selection in a Tree data set.voidsetDetailDS(DataSource detailDS) IfcanExpandRecordsis true andlistGrid.expansionModeis"related", this property specifies the dataSource for the related records grid to be shown embedded in expanded records.setDetailDS(String detailDS) IfcanExpandRecordsis true andlistGrid.expansionModeis"related", this property specifies the dataSource for the related records grid to be shown embedded in expanded records.setDetailField(String detailField) The field whose contents to show in the expanded portion of a record whencanExpandRecordsistrueandlistGrid.expansionModeisdetailField.setDisabledGroupByPrompt(String disabledGroupByPrompt) Prompt to indicate that grouping is disabled as the data set size exceedsgroupByMaxRecords.setDiscardDataOnSetFetchOperation(boolean discardDataOnSetFetchOperation) IfsetFetchOperation()is invoked while this grid is showing a filtered data-set, should the data set be discarded?setDiscardEditsOnHideField(boolean discardEditsOnHideField) If a user is editing acanEdit:truelistGrid, and they hide a field while the editor is showing, should we discard any edits in the edit row for the field being hidden?setDiscardEditsSaveButtonTitle(String discardEditsSaveButtonTitle) IfconfirmDiscardEditsis true this is the title for the save button appearing in the lost edits confirmation dialog.voidsetDontAutoDestroyComponent(Canvas component, boolean dontAutoDestroy) IfshowRecordComponentsis true, by default any created record components are destroyed once they are no longer in use (for example, if the ListGrid as a whole is destroyed).setDragDataAction(DragDataAction dragDataAction) Indicates what to do with data dragged into another DataBoundComponent.setDragDataCustomizer(DragDataCustomizer customizer) During a drag-and-drop interaction, this method returns the set of records being dragged out of the component.setDragHandleFieldTitle(String dragHandleFieldTitle) The title to use for thedrag handle field.setDragHandleIcon(String dragHandleIcon) Default icon to show in thedrag handle field..setDragHandleIconSize(int dragHandleIconSize) Default width and height ofdrag handle iconsfor this ListGrid.setDragScrollRedrawDelay(int dragScrollRedrawDelay) LikescrollRedrawDelay, but applies when the component is being drag-scrolled (via a scrollbar).voidsetDragTrackerIconCustomizer(DragTrackerIconCustomizer dragTrackerIconCustomizer) HTML to be shown in hovers over cells in the column described by this field.setDragTrackerMode(DragTrackerMode dragTrackerMode) When records are being dragged from within a ListGrid, what sort of drag-tracker should be displayed?
 Note that if multiple records are being dragged the displayed tracker will be based on the first selected record.setDragTrackerStyle(String dragTrackerStyle) CSS Style to apply to the drag tracker when dragging occurs on this component.voidsetDragTrackerTitleCustomizer(DragTrackerTitleCustomizer dragTrackerTitleCustomizer) Return "title" HTML to display as a drag tracker when the user drags some record.
 Default implementation will display the cell value for the title field (see +link{listGrid.getTitleField()}) for the record(s) being dragged (including any icons / custom formatting / styling, etc).setDrawAheadRatio(float drawAheadRatio) How far should we render records ahead of the currently visible area? This is expressed as a ratio from viewport size to rendered area size.setDrawAllMaxCells(int drawAllMaxCells) If drawing all rows would cause less thandrawAllMaxCellscells to be rendered, the full dataset will instead be drawn even ifshowAllRecordsis false and the viewport size anddrawAheadRatiosetting would normally have caused incremental rendering to be used.setDropValues(Map dropValues) When an item is dropped on this component, andaddDropValuesis true and both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key, this object provides the "drop values" that Smart GWT will apply to the dropped object before updating it.setDuplicateDragMessage(String duplicateDragMessage) Message to show when a user attempts to transfer duplicate records into this component, and
preventDuplicatesis enabled.setEditByCell(Boolean editByCell) Determines whether when the user edits a cell in this listGrid the entire row becomes editable, or just the cell that received the edit event.setEditEvent(ListGridEditEvent editEvent) Event that will trigger inline editing, seeListGridEditEventfor options.setEditFailedBaseStyle(String editFailedBaseStyle) A base name for the CSS class applied to cells when editing has failed.
 If this listGrid is editable, this style will be applied to any edited cells for which validation failed.
 As with the default 'baseStyle' property, this style will have "Dark", "Over", "Selected", or "Disabled" appended to it according to the state of the cell.
 If null, cells for which editing has failed will be rendered using the normal base style classNames, but with custom CSSText applied as derived fromthis.editFailedCSSTextsetEditFailedCSSText(String editFailedCSSText) Custom CSS text to be applied to cells when editing has failed.
 If this listGrid is editable, this css text will be applied to any edited cells for which validation failed, on top of the base style for the cell.
 For further customization of styling for cells that failed editing validation, usethis.editFailedBaseStyleinstead.setEditFormulaFieldText(String editFormulaFieldText) Text for a menu item allowing users to edit a formula fieldsetEditOnF2Keypress(Boolean editOnF2Keypress) Should we start editing when the widget has focus and the user presses the "f2" key (if this ListGrid supports editing)?setEditOnFocus(Boolean editOnFocus) Should we start editing when this widget receives focus (if this ListGrid supports editing)?voidsetEditorCustomizer(ListGridEditorCustomizer customizer) This method allows developers to dynamically customize the form item displayed in an editable grid, based on the cell being edited.voidsetEditorValueMap(String fieldName, String... valueMap) Set a valueMap to display for this field while editing.
 This method sets the +link{ListGridField.editorValueMap, field.editorValueMap} property and may be called at runtime while editing the grid.voidsetEditorValueMap(String fieldName, LinkedHashMap valueMap) Set a valueMap to display for this field while editing.
 This method sets the +link{ListGridField.editorValueMap, field.editorValueMap} property and may be called at runtime while editing the grid.setEditPendingBaseStyle(String editPendingBaseStyle) A base name for the CSS class applied to cells containing pending (unsaved) edits
 As with the default 'baseStyle' property, this style will have "Dark", "Over", "Selected", or "Disabled" appended to it according to the state of the cell.setEditPendingCSSText(String editPendingCSSText) Custom CSS text to be applied to cells with pending edits that have not yet been submitted.
 For further customization of styling for cells with pending edits usethis.editPendingBaseStyleinstead.setEditPendingMarkerStyle(String editPendingMarkerStyle) The name of a CSS class used to overlay regular cell styles with additional styling when a cell has unsaved edits - these styles are in addition to the styling applied byeditPendingCSSTextoreditPendingBaseStyle.setEditProxyConstructor(String editProxyConstructor) Default class used to construct theEditProxyfor this component when the component isfirst placed into edit mode.setEditSelectionType(SelectionStyle editSelectionType) IfselectOnEditis true, what should be the edit-selection behavior be?setEditSummaryFieldText(String editSummaryFieldText) Text for a menu item allowing users to edit the formatter for a fieldvoidsetEditValue(int rowNum, int colNum, boolean value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, double value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, float value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, int value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, JavaScriptObject value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, Record value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, Record[] value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, Boolean value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, Integer value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, Object value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, String value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, int colNum, Date value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, boolean value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, double value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, float value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, int value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, JavaScriptObject value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, Record value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, Record[] value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, Boolean value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, Integer value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, Object value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, String value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValue(int rowNum, String fieldName, Date value) Modifies a field value being tracked as an unsaved user edit.voidsetEditValues(int rowNum, Map values) This method sets up a set of editValues for some row / cell.setEmbeddedComponentIndent(Integer embeddedComponentIndent) This is the pixel-amount by which child components are offset within the grid-body, by default from the left, or from the right whenRTLis in effect.setEmbeddedComponentMargin(Integer embeddedComponentMargin) This is the space to apply as margin around child-components embedded in this grid.setEmptyAIHoverContents(String emptyAIHoverContents) Hover contents to use when the AI-generated hover text is empty.setEmptyCellValue(String emptyCellValue) The value to display for cells whose value is null or the empty string after applyingformattingand valueMap (if any).setEmptyMessage(String emptyMessage) The string to display in the body of a listGrid with an empty data array, if showEmptyMessage is true.setEmptyMessageStyle(String emptyMessageStyle) The CSS style name applied to theemptyMessageif displayed.setEmptyRowRangeDisplayValue(String emptyRowRangeDisplayValue) Row range summary display valuewhen the grid is empty.setEnforceVClipping(Boolean enforceVClipping) For performance reasons, even whenfixedRecordHeightsis set, vertical clipping is not enforced by default for some kinds of content (such as images) on all browsers.setEnterKeyEditAction(EnterKeyEditAction enterKeyEditAction) What to do when a user hits enter while editing a cell: "nextCell": start editing the next editable cell in this record (or the first editable cell in the next record if focus is in the last editable cell in the row) "nextRow": start editing the same field in the next row (skipping any rows where that would be a non-editable cell.setEnumCriteriaAsInitialValues(Boolean enumCriteriaAsInitialValues) In a ListGrid that has a DataSource and has filter criteria that include values for fields declared astype "enum"in the DataSource, by default a newly edited row will use those filter criteria as initial values.setErrorIconHeight(Integer errorIconHeight) Height of the error icon, if we're showing icons when validation errors occur.setErrorIconSrc(String errorIconSrc) Src of the image to show as an error icon, if we're showing icons when validation errors occur.setErrorIconWidth(Integer errorIconWidth) Height of the error icon, if we're showing icons when validation errors occur.setEscapeKeyEditAction(EscapeKeyEditAction escapeKeyEditAction) What to do when a user hits escape while editing a cell: "cancel": close the editor and discard the current set of edit values "done": just close the editor (the edit is complete, but the edited values are retained).setExactRowCountFormat(String exactRowCountFormat) setExpansionCanEdit(Boolean expansionCanEdit) ForexpansionModesthat show another grid or tree, is that component editable?setExpansionComponentPoolingMode(ExpansionComponentPoolingMode expansionComponentPoolingMode) The method ofcomponent-poolingto employ forexpansionComponents.setExpansionEditorSaveDialogPrompt(String expansionEditorSaveDialogPrompt) WhencanExpandRecordsis true andexpansionModeis editor, the prompt to display in a dialog when an expanded row is collapsed while it's nested editor has changed values.setExpansionEditorShowSaveDialog(Boolean expansionEditorShowSaveDialog) WhencanExpandRecordsis true andexpansionModeis editor, whether a dialog should be displayed when an expanded row is collapsed while it's nested editor has changed values.setExpansionFieldFalseImage(String expansionFieldFalseImage) IfcanExpandRecordsis set totrue, this property determines the image to display in the expansion field for collapsed rows.setExpansionFieldImageHeight(Integer expansionFieldImageHeight) IfcanExpandRecordsis set totrue, this property may be set to govern the height of the expansion image displayed to indicate whether a row is expanded.setExpansionFieldImageShowRTL(boolean expansionFieldImageShowRTL) If this grid is in RTL mode, should an "_rtl" suffix be added to theexpansionFieldTrueImageandexpansionFieldFalseImageimage URLs? This should only be enabled if RTL media for the true and false expansion field images are available.setExpansionFieldImageShowSelected(boolean expansionFieldImageShowSelected) Should a "_selected" suffix be added to theexpansionFieldTrueImageandexpansionFieldFalseImageimage URLs for selected rows?setExpansionFieldImageStyle(String expansionFieldImageStyle) Custom style to apply to the image in theexpansionFielddisplayed in collapsible rows whencanExpandRecordsis true.setExpansionFieldImageWidth(Integer expansionFieldImageWidth) IfcanExpandRecordsis set totrue, this property may be set to govern the width of the expansion image displayed to indicate whether a row is expanded.setExpansionFieldTrueImage(String expansionFieldTrueImage) IfcanExpandRecordsis set totrue, this property determines the image to display in the expansion field for expanded rows.setExpansionIndent(Integer expansionIndent) WhencanExpandRecordsis true, this is the pixel-amount by which child components are offset within the grid-body, by default from the left, or from the right whenRTLis in effect.setExpansionMode(ExpansionMode expansionMode) TheExpansionModefor records in this grid.setExpansionScreen(String expansionScreen) Screen to create (viacreateScreen()) in lieu of callinggetExpansionComponent().setExplicitFetchDelay(int explicitFetchDelay) If we're showing the filterEditor (showFilterEditoris true), this property determines the delay in kicking off the filter request if the current filter values are submitted by clicking the filter button or hitting return.setExportAll(Boolean exportAll) Setting exportAll to true prevents the component from passing its list of fields to the 
 export call.setExportAlternateRowBGColor(String exportAlternateRowBGColor) When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), background color to use for even-numbered rows, to create a "banded" or "ledger" effect.setExportDefaultBGColor(String exportDefaultBGColor) Default background color to use when exporting data to Excel/OpenOffice format usingexportData()orexportClientData().setExportFieldAlignments(boolean exportFieldAlignments) When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether fieldhorizontal header alignmentsanddata value alignmentsshould be replicated in the resulting spreadsheet.setExportFields(String[] exportFields) The list of field-names to export.setExportFieldWidths(boolean exportFieldWidths) When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether widths of fields should be replicated in the resulting spreadsheet.setExportHeaderHeights(boolean exportHeaderHeights) When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), causes theheaderHeightandheaderSpan heightsto be applied to the corresponding cells in the spreadsheet.setExportHiddenFieldWidth(int exportHiddenFieldWidth) Width to size non-visible fields (which may be specified withexportFieldsorDSRequest.exportFields) duringexportData()orexportClientData(), if they have no defined numericwidth.setExportIncludeSummaries(Boolean exportIncludeSummaries) If Summary rows exist for this component, whether to include them when exporting client data.setExportRawNumbers(Boolean exportRawNumbers) Dictates whether numeric values should be exported as raw numbers instead of formatted values when usingexportClientData().setExportRawValues(Boolean exportRawValues) Dictates whether the data in this grid should be exported raw byexportClientData().setExportWidthScale(double exportWidthScale) Scaling factor to translate from ListGrid field widths in pixels to Excel/OpenOffice units for field width, which are 1/256th of the width of the widest digit character in the default font for the spreadsheet.setExportWrapHeaderTitles(boolean exportWrapHeaderTitles) When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether titles in theListGrid headerandheaderSpansshould be allowed to wrap.setFastCellUpdates(Boolean fastCellUpdates) Note: This property only has an effect in Internet ExplorersetFetchDelay(int fetchDelay) If we're showing the filterEditor (showFilterEditoris true), andfilterByCellorfilterOnKeypressare enabled, this property is the delay in milliseconds between the user changing the filter and the filter request being sent to the server.setFetchFields(ListGridField... fetchFields) Fields that will be always requested from the server when the grid fetches data, even if they are not visible - may be either an array of fields or a CSV string.setFetchFields(String fetchFields) Fields that will be always requested from the server when the grid fetches data, even if they are not visible - may be either an array of fields or a CSV string.setFetchOperation(String fetchOperation) Operation ID this component should use when performing fetch operations.setFetchRequestProperties(DSRequest fetchRequestProperties) IfautoFetchDataistrue, this attribute allows the developer to declaratively specifyDSRequestproperties for the initialfetchData()call.voidsetFieldButtonProperties(String name, Canvas properties) Method to update properties on a field's header button at runtime.voidsetFieldCellIcon(String fieldName, String cellIcon) Change theListGridField.cellIconfor a field after the grid is createdsetFieldCriteriaText(String fieldCriteriaText) The field criteria prefix to show in filter editor field hover before the descriptive version of the field's criteria, if any.voidsetFieldError(int rowNum, String fieldName, String errorMessage) Set a validation error for some cell.voidsetFieldError(int rowNum, String fieldName, String[] errorMessages) voidsetFieldHeaderBaseStyle(String name, String newStyle) Update theListGridField.headerBaseStylefor a field within the grid at runtime.voidsetFieldHeaderTitleStyle(String name, String newStyle) Update theListGridField.headerTitleStylefor a field within the grid at runtime.voidsetFieldIcon(String fieldName, String icon) Change theListGridField.iconfor a field after the grid is createdvoidsetFieldMaxWidth(int fieldNum, int width) UpdatesListGridField.maxWidthfor the specified field and redraws the associated column if required.voidsetFieldMinWidth(int fieldNum, int width) UpdatesListGridField.minWidthfor the specified field and redraws the associated column if required.setFieldPickerFieldProperties(String... fieldPickerFieldProperties) Names of properties onListGridFieldfor which theFieldPickershould show an editing interface, for convenience.setFieldPickerShowSampleValues(Boolean fieldPickerShowSampleValues) When set to false, sample values of the FieldPicker are never shown.voidsetFieldProperties(int fieldNum, ListGridField properties) Dynamically set properties for a particular field.voidsetFieldProperties(String fieldNum, ListGridField properties) Dynamically set properties for a particular field.setFields(JavaScriptObject... fields) Field setter variant (alternative tosetFields(FormItem...),setFields(ListGridField...), etc.) that will accept an array of JavaScriptObject, rather than an array of SmartGWT Java wrappers of the field class type (e.g.setFields(ListGridField... fields) An array of field objects, specifying the order, layout, formatting, and sorting behavior of each field in the listGrid object.voidsetFieldSearchOperator(String fieldName, OperatorId operator) Applies a newsearch operatorto a field in the grid'sfilter row, and updates it's operatorIcon.setFieldState(String fieldState) Initialfield statefor the grid.voidsetFieldTitle(int fieldNum, String title) Change the title of a field after the grid is created.voidsetFieldTitle(String fieldNum, String title) Change the title of a field after the grid is created.setFieldVisibilitySubmenuTitle(String fieldVisibilitySubmenuTitle) If we're showing aheaderContextMenufor this grid, andthis.canPickFieldsis true, this attribute will be shown as the title for the menu item which contains a submenu with items allowing the user to show and hide fields in the grid.setFilterButtonPrompt(String filterButtonPrompt) The prompt to show when the mouse hovers over the Filter button in the FilterEditor.setFilterButtonProperties(Button filterButtonProperties) IfshowFilterEditoris true, this attribute may be used to customize the filter button shown to the right of the filterEditor row.setFilterByCell(boolean filterByCell) If we're showing thefilterEditor, should this list be filtered every time the user changes edit values for particular cells rather than waiting for an Enter keypress or a click on the filterEditor submit button.voidsetFilterEditorCriteria(Criteria criteria) IfshowFilterEditoris true, this method will update the criteria shown in thefilterEditorwithout performing a filter.setFilterEditorHeight(int filterEditorHeight) Height for the filterEditor, if shown.voidsetFilterEditorProperties(ListGrid filterEditorProperties) Deprecated.in favor ofsetFilterEditorProperties(RecordEditor)setFilterEditorProperties(RecordEditor filterEditorProperties) Properties to apply to the automatically generatedfilterEditorifshowFilterEditoris true.setFilterLocalData(Boolean filterLocalData) Causes filtering to be performed against the local data set, even when adataSourceis provided.setFilterOnKeypress(boolean filterOnKeypress) When this attribute is true and this component has been assigned asearchFormor is showing thefilterEditor, data will be filtered automatically as users change values in those components.setFilterUsingText(String filterUsingText) Text for the menu item shown in theheaderContextMenuwhenallowFilterOperatorsis enabled.setFilterViaAIMode(AIServiceMode filterViaAIMode) If filtering of the grid is enabled and AIis enabled, filtering-via-AI can be enabled by setting theAIServiceModeto use.setFilterViaAIPanelInstructions(String filterViaAIPanelInstructions) The instruction text to display above the "Filter via AI" text box.setFilterViaAIText(String filterViaAIText) Title for the menu-item displayed in this component's header context-menu whenAI-assisted filteringis allowed.setFilterWindowCriteria(Criteria filterWindowCriteria) Advanced filtering criteria, eithersimpleoradvanced, that is combined with thefilter editor criteriaduring filtering.setFilterWindowInstructions(String filterWindowInstructions) The instruction text to display at the top of thefilterWindow.setFilterWindowTitle(String filterWindowTitle) The title for theadvanced filtering window.setFirstCellStyle(String firstCellStyle) The style to apply to the first cell in each row, whenstyledRowEndsis true.setFixedFieldWidths(Boolean fixedFieldWidths) Should we horizontally clip cell contents, or allow columns to expand horizontally to show all contents?setFixedRecordHeights(Boolean fixedRecordHeights) Should we vertically clip cell contents, or allow rows to expand vertically to show all contents?setFormulaBuilderSpanTitleSeparator(String formulaBuilderSpanTitleSeparator) If this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInFormulaBuilderis true, this string will be inserted between the headerSpan title(s) and the field title in the field chooser grid in the FormulaBuilder and SummaryBuilder.setFreezeFieldText(String freezeFieldText) If we're showing aheaderContextMenufor this grid andthis.canFreezeFieldsis true, this string will be shown as the title for the menu item to freeze a currently unfrozen field.setFrozenBaseStyle(String frozenBaseStyle) If this listGrid contains any frozen fields, this property can be used to apply a custom baseStyle to all cells in those frozen fields.setFrozenBodyStyleName(String frozenBodyStyleName) CSS style used for thefrozen-bodyof this grid.setFrozenFieldsMaxWidth(Integer frozenFieldsMaxWidth) Maximum width available for anyfrozen fieldsshown in this grid.setFrozenFieldsMaxWidth(String frozenFieldsMaxWidth) Maximum width available for anyfrozen fieldsshown in this grid.setFrozenHeaderBaseStyle(String frozenHeaderBaseStyle) If this listGrid contains any frozen fields, this property can be used to apply a custom headerBaseStyle to the frozen set of fields.setFrozenHeaderTitleStyle(String frozenHeaderTitleStyle) If this listGrid contains any frozen fields, this property can be used to apply a custom headerTitleStyle to the frozen set of fields.setFullRowRangeDisplayValue(String fullRowRangeDisplayValue) Dynamic String specifying the format for therow range summary valuewhenRowRangeDisplayStyleis set to"full".setGenerateClickOnEnter(Boolean generateClickOnEnter) If true, when the user navigates to a cell using arrow keys and hits Enter, the cell will respond to a click event.setGenerateClickOnSpace(Boolean generateClickOnSpace) If true, when the user navigates to a cell using arrow keys and hits space, the cell will respond to a click event.setGenerateDoubleClickOnEnter(Boolean generateDoubleClickOnEnter) If true, when the user navigates to a cell using arrow keys and hits Enter, the cell will respond to a double click event.setGenerateDoubleClickOnSpace(Boolean generateDoubleClickOnSpace) If true, when the user navigates to a cell using arrow keys and hits Space, the cell will respond to a double click event.setGridAdditionalCriteriaText(String gridAdditionalCriteriaText) The additional criteria prefix to show in filter editor field hover, the filter action button or the sorter button before the descriptive version of thefilterWindowCriteria, if any.setGridComponents(ListGridComponent... gridComponents) Array of components that make up this grid.setGridComponents(Object... gridComponents) Array of components that make up this grid.setGridSummaryRecordProperty(String gridSummaryRecordProperty) IfshowGridSummaryis true, this attribute will be set to true on the record object representing the grid summary row.setGroupByAsyncThreshold(int groupByAsyncThreshold) When grouping is requested with this number of records or more, an asynchronous approach is used to avoid the browser showing a "script is running slowly.." message prompting the user to stop execution of JavaScript.setGroupByField(String groupByField) List of fields to group grid records.setGroupByField(String... groupByField) List of fields to group grid records.setGroupByFieldSummaries(String... groupByFieldSummaries) If this grid isgrouped, andshowGroupSummaryis true, this attribute may be set to an array of groupBy field names for which group summaries should appear.setGroupByMaxRecords(int groupByMaxRecords) Maximum number of records to which a groupBy can be applied.setGroupByMaxRecordsExceededMessage(String groupByMaxRecordsExceededMessage) Warning shown to the user when a grouping attempt failed as the data set length exceedsgroupByMaxRecords.setGroupByText(String groupByText) If we're showing aheaderContextMenufor this grid andthis.canGroupByis true, this string will be shown as the title for the menu item to toggle the group by setting for a field.setGroupIcon(String groupIcon) The URL of the base icon for the group icons in this listGrid.setGroupIconSize(int groupIconSize) Default width and height of group icons for this ListGrid.setGroupIconStyle(String groupIconStyle) Custom style to apply to thegroupIcondisplayed in collapsible rows whencanGroupByis true.setGroupIndentSize(int groupIndentSize) Default number of pixels by which to indent subgroups relative to parent group.setGroupLeadingIndent(int groupLeadingIndent) Default number of pixels by which to indent all groups.setGroupNodeBaseStyle(String groupNodeBaseStyle) Base styleforgrouprows.setGroupNodeStyle(String groupNodeStyle) The CSS style thatgrouprows will have.setGroupSortDirection(SortDirection groupSortDirection) WhensortByGroupFirstis active, the sorting direction applied for implicit sorting by the field(s) used for grouping.voidsetGroupSortNormalizer(GroupSortNormalizer customizer) WhensortByGroupFirstis active, sets theGroupNodevalue normalizer used for implicit sorting by the field(s) used for grouping.voidsetGroupStartOpen(GroupStartOpen group) Describes the default state of ListGrid groups when groupBy is called.voidsetGroupStartOpen(Object... groupValues) setGroupState(String groupState) Initial group state for the grid.setGroupSummaryRecordProperty(String groupSummaryRecordProperty) IfshowGroupSummaryis true, this attribute will be set to true on each record object representing a group-level summary row.setGroupSummaryStyle(String groupSummaryStyle) ListGridRecord.customStylefor the group-level summary row displayed whenshowGroupSummaryis true.setGroupTitleColumnProperties(ListGridField groupTitleColumnProperties) Custom properties for the automatically generatedgroupTitleColumn.setGroupTitleField(String groupTitleField) When a list grid isgrouped, each group shows under an auto generated header node.setHeaderAriaRole(String headerAriaRole) setHeaderAutoFitEvent(AutoFitEvent headerAutoFitEvent) Event on a ListGrid header that triggers auto fitting to data and/or title.setHeaderBackgroundColor(String headerBackgroundColor) BackgroundColor for the header toolbar.setHeaderBarStyle(String headerBarStyle) Set the CSS style used for the header as a whole.setHeaderBaseStyle(String headerBaseStyle) Button.baseStyleto apply to the buttons in the header, and the sorter, for this ListGrid.setHeaderButtonAriaRole(String headerButtonAriaRole) Defaultroleforheader buttons.setHeaderButtonAriaState(Map headerButtonAriaState) DefaultARIA stateforheader buttons.setHeaderButtonProperties(Button headerButtonProperties) Properties to apply to all header buttons.setHeaderHeight(int headerHeight) The height of this listGrid's header, in pixels.setHeaderHoverAlign(Alignment headerHoverAlign) This property may be set to customize the alignment for the hover shown onListGrid.headerHover().voidsetHeaderHoverFormatter(HeaderHoverFormatter formatter) Provide a custom implementation ofheaderHoverHTML(int,java.lang.String).setHeaderHoverHeight(Integer headerHoverHeight) Optional default height for the hover shown onListGrid.headerHover().setHeaderHoverOpacity(Integer headerHoverOpacity) This property may be set to customize the opacity for the hover shown onListGrid.headerHover().setHeaderHoverStyle(String headerHoverStyle) This property may be set to customize the css style for the hover shown onListGrid.headerHover().setHeaderHoverVAlign(VerticalAlignment headerHoverVAlign) This property may be set to customize the vertical alignment for the hover shown onListGrid.headerHover().setHeaderHoverWidth(Integer headerHoverWidth) Optional default width for the hover shown onListGrid.headerHover().setHeaderHoverWrap(Boolean headerHoverWrap) This property may be set to customize thewrapattribute for the hover shown onListGrid.headerHover().setHeaderMenuButtonHeight(int headerMenuButtonHeight) IfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonsetHeaderMenuButtonHeight(String headerMenuButtonHeight) IfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonsetHeaderMenuButtonIcon(String headerMenuButtonIcon) IfshowHeaderMenuButtonis true, this property governs the icon shown on the auto-generatedheaderMenuButtonsetHeaderMenuButtonIconHeight(int headerMenuButtonIconHeight) IfshowHeaderMenuButtonis true, this property governs the height of the icon shown on the auto-generatedheaderMenuButtonsetHeaderMenuButtonIconWidth(int headerMenuButtonIconWidth) IfshowHeaderMenuButtonis true, this property governs the width of the icon shown on the auto-generatedheaderMenuButtonsetHeaderMenuButtonSnapOffsetLeft(Integer headerMenuButtonSnapOffsetLeft) Offset of the right edge of aheaderMenuButtonfrom the right edge of it's parent button.setHeaderMenuButtonWidth(int headerMenuButtonWidth) IfshowHeaderMenuButtonis true, this property governs the width of the auto-generatedheaderMenuButtonsetHeaderRadius(String headerRadius) When set to any valid CSS border-radius string, allows for a rounded header in this grid by applying a corner-radius to the left of theheader, and to the right of thecorner sort-buttonif it's visible, or the right of theheaderotherwise.setHeaderShadowColor(String headerShadowColor) IfshowHeaderShadowis true, theCanvas.shadowColorfor the header shadow.setHeaderShadowHOffset(int headerShadowHOffset) IfshowHeaderShadowis true, theCanvas.shadowHOffsetfor the header shadowsetHeaderShadowSoftness(int headerShadowSoftness) IfshowHeaderShadowis true, theCanvas.shadowSoftnessfor the header shadowsetHeaderShadowVOffset(int headerShadowVOffset) IfshowHeaderShadowis true, theCanvas.shadowVOffsetfor the header shadowvoidsetHeaderSpanBaseStyle(String name, String newStyle) Update theHeaderSpan.headerBaseStylefor a span within the grid at runtime.voidsetHeaderSpanButtonProperties(String name, Canvas properties) Method to update properties on a headerSpan's header button at runtime.voidsetHeaderSpanHeaderTitle(String name, String newTitle) Update the headerTitle of aheaderSpandynamically.setHeaderSpanHeight(Integer headerSpanHeight) Default height for aheaderSpanwith no height specified.setHeaderSpans(HeaderSpan... headerSpans) Header spans are a second level of headers that appear above the normal ListGrid headers, spanning one or more listGrid fields in a manner similar to a column-spanning cell in an HTML table.voidsetHeaderSpanTitle(String name, String newTitle) Update the title of aheaderSpandynamically.voidsetHeaderSpanTitleStyle(String name, String newTitle) Update theHeaderSpan.headerTitleStylefor a span within the grid at runtime.setHeaderTitleStyle(String headerTitleStyle) StretchImgButton.titleStyleto apply to the buttons in the header, and the sorter, for this ListGrid.setHeaderTitleVAlign(VerticalAlignment headerTitleVAlign) Specifies vertical alignment in the column headers: "top", "center", or "bottom".setHideEmptySummaryRow(Boolean hideEmptySummaryRow) If true, causes thesummaryRowcomponent to be hidden if it has no data after summaries have been recalculatedsetHideFilterEditorTitle(String hideFilterEditorTitle) WhencanShowFilterEditoris true, this is the title for the filterEditor show/hide menu-item, in theheaderContextmenu, when the filterEditor is visible.voidsetHideOnPhone(ListGridField field, Boolean hideOnPhone) Updates theListGridField.hideOnPhoneattribute at runtime.voidsetHideOnTablet(ListGridField field, Boolean hideOnTablet) Updates theListGridField.hideOnTabletattribute at runtime.setHiliteCanReplaceValue(Boolean hiliteCanReplaceValue) If set, end users can create advanced hiliting rules that will use theHilite.replacementValuefeature to cause values in hilited cells to be replaced with a user-entered value.setHiliteEditorSpanTitleSeparator(String hiliteEditorSpanTitleSeparator) If this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInHiliteEditoris true, this string will be inserted between the headerSpan title and the field title in the hiliteEditor field chooser grid.setHiliteHTMLAfterFormat(boolean hiliteHTMLAfterFormat) If set to true, custom HTML applied as part of hiliting will be applied afterformattingfor each cell.setHiliteIconHeight(Integer hiliteIconHeight) Height for hilite icons for this listGrid.setHiliteIconLeftPadding(int hiliteIconLeftPadding) How much padding should there be on the left ofhilite iconsby default? Can be overridden at the field levelsetHiliteIconPosition(HiliteIconPosition hiliteIconPosition) WhenhiliteIconsare present, where the hilite icon will be placed relative to the field value.setHiliteIconRightPadding(int hiliteIconRightPadding) How much padding should there be on the right ofhilite iconsby default? Can be overridden at the field levelsetHiliteIcons(String... hiliteIcons) Specifies a list of icons that can be used inhilites.setHiliteIconSize(int hiliteIconSize) Default width and height ofhilite iconsfor this component.setHiliteIconWidth(Integer hiliteIconWidth) Width for hilite icons for this component.setHiliteProperty(String hiliteProperty) Marker that can be set on a record to flag that record as hilited.setHiliteReplaceValueFieldTitle(String hiliteReplaceValueFieldTitle) Title used for the text box shown whenhiliteCanReplaceValueis set.setHiliteRowOnFocus(Boolean hiliteRowOnFocus) When the grid body gets keyboard focus, should we highlight the current focus row, using the rollover cell style?setHilites(Hilite[] hilites) Accepts an array of hilite objects and applies them to this DataBoundComponent.setHiliteState(String hiliteState) Set the current hilites based on a hiliteState String previously returned from getHilitesState.setHiliteViaAIMode(AIServiceMode hiliteViaAIMode) WhencanHiliteViaAIistrue, the AI service mode to use.setHiliteViaAIText(String hiliteViaAIText) Title for the menu item displayed in this component's header context menu whenAI-assisted hilitingis allowed.voidsetHoverCustomizer(HoverCustomizer hoverCustomizer) HTML to be shown in hovers over cells in the column described by this field.setHoverMode(HoverMode hoverMode) WhenshowHoverComponentsis true, the builtin mode to use when automatically creating a hover component for rows in this grid.setHoverScreen(String hoverScreen) Screen to create (viacreateScreen()) in lieu of callinggetHoverComponent()orgetCellHoverComponent().setHoverStyle(String hoverStyle) Style to apply to hovers shown over this grid.setIconCursor(Cursor iconCursor) Default cursor to display when the user rolls over icons within cells of antype:iconfield.setIconPadding(Integer iconPadding) When usingautoFitFieldWidths, padding in pixels left on each side of fields that show images.setImageSize(int imageSize) Default size of thumbnails shown for fieldTypes image and imageFile.setImplicitCriteria(Criteria implicitCriteria) Criteria that are never shown to or edited by the user and are cumulative with any criteria provided viaDataBoundComponent.initialCriteria,DataBoundComponent.setCriteria()etc.setImplicitCriteria(Criteria implicitCriteria, DSCallback callback) setImplicitCriteria(Criteria criteria, DSCallback callback, Boolean initialFetch) voidsetInactiveCellFormatter(CellFormatter formatter) Formatter for inactive content.setIncludeHilitesInSummaryFields(boolean includeHilitesInSummaryFields) When assembling a value for asummary field, if a referenced field is hilited, should the hilite HTML be included in the summary field value?setIncludeInSummaryProperty(String includeInSummaryProperty) Property name on a record that will be checked to determine whether a record should be included when calculating totals for thegrid summary.setInitialCriteria(Criteria initialCriteria) Criteria to use whenDataBoundComponent.setAutoFetchData(Boolean)is used.setInitialSort(SortSpecifier... initialSort) An array ofSortSpecifierobjects used to set up the initial sort configuration for this grid.setInstantScrollTrackRedraw(Boolean instantScrollTrackRedraw) If true, if the user clicks on the scroll buttons at the end of the track or clicks once on the scroll track, there will be an instant redraw of the grid content so that the user doesn't see any blank space.setInvalidSummaryValue(String invalidSummaryValue) Value to display to the user if showing summary values (throughshowGridSummary,showGroupSummaryorlistGridFieldType:"summary"), and the summary function returns"null"(implying it was unable to calculate a valid summary value).setIsSeparatorProperty(String isSeparatorProperty) Ifrecord[this.isSeparatorProperty]is set for some record, the record will be displayed as a simple separator row.setLastCellStyle(String lastCellStyle) The style to apply to the last cell in each row, whenstyledRowEndsis true.setLeaveHeaderMenuButtonSpace(Boolean leaveHeaderMenuButtonSpace) IfshowHeaderMenuButtonis true, when auto-fitting fields to the title width viaautoFitFieldWidthsorListGridField.autoFitWidth, should the button be sized such that there is enough space for the header menu button to show without covering the field title?setLeaveScrollbarGap(Boolean leaveScrollbarGap) Whether to leave a gap for the vertical scrollbar, even when it's not present.setLinkTextProperty(String linkTextProperty) Property name on a record that will hold the link text for that record.setListEndEditAction(RowEndEditAction listEndEditAction) If the user is editing the last record in this listGrid, and attempts to navigate beyond the last row either by tabbing off the last editable field, or using the down arrow key, this property determines what action to take: "next": start editing a new record at the end of the list.setLoadingDataMessage(String loadingDataMessage) The string to display in the body of a listGrid while data is being loaded.setLoadingDataMessageStyle(String loadingDataMessageStyle) The CSS style name applied to the loadingDataMessage string if displayed.setLoadingMessage(String loadingMessage) If you have a databound listGrid and you scroll out of the currently loaded dataset, by default you will see blank rows until the server returns the data for those rows.setLoadingRowCountDisplayIcoHeight(int loadingRowCountDisplayIcoHeight) Height for theloadingRowCountDisplayIconsetLoadingRowCountDisplayIcon(String loadingRowCountDisplayIcon) The URL of the icon to display as arow count valuewhen the row count is loading.setLoadingRowCountDisplayIconWidth(int loadingRowCountDisplayIconWidth) Width for theloadingRowCountDisplayIconsetLocateColumnsBy(String locateColumnsBy) WhenAutoTest.getElement()is used to parse locator strings generated byAutoTest.getLocator()for a cell in this grid, how should the column be identified?
 Note that getLocator() will actually store all available information about the column in the generated string -- this attribute effects how a stored string will be parsed only.setLocateRowsBy(String locateRowsBy) WhenAutoTest.getElement()is used to parse locator strings generated byAutoTest.getLocator()for a cell in this grid, how should the row be identified?
 Note that getLocator() will actually store all available information about the row in the generated string -- this attribute effects how a stored string will be parsed only.Setter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.setLongTextEditorThreshold(int longTextEditorThreshold) When the length of the field specified byDataSourceField.lengthexceeds this value, the ListGrid shows an edit field of typelongTextEditorTyperather than the standard text field when the field enters inline edit mode.setLongTextEditorType(String longTextEditorType) When the length of the field specified byDataSourceField.lengthexceedsthis.longTextEditorThresholdshow an edit field of this type rather than the standard text field when the field enters inline edit mode.setMaxExpandedRecords(Integer maxExpandedRecords) WhencanExpandRecordsandcanExpandMultipleRecordsare both true, this property dictates the number of records which can be expanded simultaneously.setMaxExpandedRecordsPrompt(String maxExpandedRecordsPrompt) This is a dynamic string - text within${...}will be evaluated as JS code when the message is displayed.setMaximumRowCountFormat(String maximumRowCountFormat) setMaxSummaryRowRecords(Integer maxSummaryRowRecords) IfshowGridSummaryis true, and summary records are being derived from a fetch against thesummaryRowDataSource, this property may be set to specify the maximum expected number of results from the fetch opeeration.setMinFieldWidth(int minFieldWidth) Minimum size, in pixels, for ListGrid headers.setMinHeight(int minHeight) Sets theminimum heightfor the entire list (smaller than this doesn't tend to work very well).setMinimumCellHeight(int minimumCellHeight) Minimum height for ListGrid cells, settable by the skin, based on the size of the checkbox media used for boolean fields plus minimal surrounding padding.setMinimumRowCountFormat(String minimumRowCountFormat) setMissingSummaryFieldValue(String missingSummaryFieldValue) If a summary format string contains an invalid field reference, replace the reference with the missingSummaryFieldValue.setModalEditing(Boolean modalEditing) If this property is true, any mouse click outside of the open cell editors will end editing mode, hiding the cell editors and saving any changes to those cell values.setMultiGroupDialogDefaults(MultiGroupDialog multiGroupDialogDefaults) Class-level defaults to apply to theMultiGroupDialogwhich gets automatically generated whenconfigureGrouping()is called.setMultiGroupDialogProperties(MultiGroupDialog multiGroupDialogProperties) Properties to apply to theMultiGroupDialogwhich gets automatically generated whenconfigureGrouping()is called.voidsetMultiSortDialogDefaults(MultiSortDialog multiSortDialogDefaults) Class level defaults to apply to theMultiSortDialogwhich gets automatically generated when askForSort() is called.voidsetMultiSortDialogProperties(MultiSortDialog multiSortDialogProperties) Properties to apply to theMultiSortDialogwhich gets automatically generated when askForSort() is called.setNavigateOnTab(Boolean navigateOnTab) IfcanSelectCellsis true, this property allows the user to navigate through the cells of a grid using Tab and Shift+Tab keypresses.setNeverValidate(Boolean neverValidate) If true, validation will not occur as a result of cell editing for this grid.setNewRecordRowMessage(String newRecordRowMessage) If this listGrid is showing the 'newRecordRow' (used for adding new rows to the end of the data), this property determines what message should be displayed in this row.setNewSearchText(String newSearchText) Text to show for saving the current view as a new "saved search".setNormalBaseStyle(String normalBaseStyle) "Normal" baseStyle for this listGrid.setNormalCellHeight(int normalCellHeight) IfbaseStyleis unset, base style will be derived fromnormalBaseStyleif this grid has fixed row heights and the specifiedcellHeightmatches this value.setNoSavedSearchesText(String noSavedSearchesText) Text to show in menu listing saved searches when there are no saved searches.setNullGroupTitle(String nullGroupTitle) Default alias to use for groups with no valuesetOfflineMessageStyle(String offlineMessageStyle) The CSS style name applied to theofflineMessageif displayed.setOriginBaseStyle(String originBaseStyle) Name of a CSS Style to use as thebaseStylefor a cell that is currently a selection origin for shifted incremental cell selection.setOverflow(Overflow overflow) setPendingAsyncCellValue(String pendingAsyncCellValue) The value to display for cells whose value is pending asynchronous computation.setPlaceholderAIHoverContents(String placeholderAIHoverContents) Message to show in the hover while AI-generated hover text is being retrieved for fields specifying anaiHoverRequest.setPoolComponentsPerColumn(Boolean poolComponentsPerColumn) Should recycledrecord components, be pooled per column or per record.setPreserveFocusStylingOnMouseOut(Boolean preserveFocusStylingOnMouseOut) IfshowRollOverorhiliteRowOnFocusis true the current keyboard focus row for navigation via arrow keys, etc, will be hilighted with"Over"styling.setPreserveWhitespace(Boolean preserveWhitespace) Should cells be written out with css that will preserve whitespace?setPreventDuplicates(Boolean preventDuplicates) If set, detect and prevent duplicate records from being transferred to this component, either via
 drag and drop or viaDataBoundComponent.transferSelectedData(com.smartgwt.client.widgets.DataBoundComponent).setPrintAutoFit(Boolean printAutoFit) Whether cell contents should wrap during printing.setPrintBaseStyle(String printBaseStyle) Style for non-header cells in printed output.setPrintBooleanBaseStyle(String printBooleanBaseStyle) If set, thebooleanBaseStyleto use whenprinting.setPrintBooleanFalseImage(String printBooleanFalseImage) If set, thebooleanFalseImageto use whenprinting.setPrintBooleanPartialImage(String printBooleanPartialImage) If set, thebooleanPartialImageto use whenprinting.setPrintBooleanTrueImage(String printBooleanTrueImage) If set, thebooleanTrueImageto use whenprinting.setPrintCheckboxFieldFalseImage(String printCheckboxFieldFalseImage) If set, thecheckboxFieldFalseImageto use whenprinting.setPrintCheckboxFieldPartialImage(String printCheckboxFieldPartialImage) If set, thecheckboxFieldPartialImageto use whenprinting.setPrintCheckboxFieldTrueImage(String printCheckboxFieldTrueImage) If set, thecheckboxFieldTrueImageto use whenprinting.setPrintHeaderStyle(String printHeaderStyle) Style for header cells in printed output.setPrintMaxRows(int printMaxRows) Advanced property - when generating printHTML for a large ListGrid, rows are printed in batches in order to avoid triggering a native "script is running slowly" browser dialog.setPrintWrapCells(Boolean printWrapCells) Whether cell contents should wrap during printing.setProgressiveLoading(Boolean progressiveLoading) Indicates whether or not this component will load its dataprogressivelysetQuickDrawAheadRatio(float quickDrawAheadRatio) Alternative todrawAheadRatio, to be used when the user is rapidly changing the grids viewport (for example drag scrolling through the grid).setRangeRowCountFormat(String rangeRowCountFormat) setRecordBaseStyleProperty(String recordBaseStyleProperty) This attribute allows custom base styles to be displayed on a per-record basis.setRecordCanRemoveProperty(String recordCanRemoveProperty) If set to false on a record andcanRemoveRecordsis true, removal of that record is disallowed in the UI.setRecordCanSelectProperty(String recordCanSelectProperty) If set to false on a record, selection of that record is disallowed.setRecordCellRoleProperty(String recordCellRoleProperty) If this property is set on a record it will designate the WAI ARIA role for cells within this records rowsetRecordComponentHeight(Integer recordComponentHeight) IfshowRecordComponentsis true, this attribute may be used to specify a standard height for record components.setRecordComponentPoolingMode(RecordComponentPoolingMode recordComponentPoolingMode) The method ofcomponent-poolingto employ forrecordComponents.setRecordComponentPosition(EmbeddedPosition recordComponentPosition) ifshowRecordComponentsis true, how should the component appear within the cell.setRecordDetailDSProperty(String recordDetailDSProperty) The name of the ListGridRecord property that specifies the DataSource to use whenlistGrid.expansionModeis "related".setRecordDropAppearance(RecordDropAppearance recordDropAppearance) IfcanAcceptDroppedRecordsis true for this listGrid, this property governs whether the user can drop between, or over records within the grid.setRecordEditProperty(String recordEditProperty) Property name on a record that should be checked to determine whether the record may be edited.setRecordEnabledProperty(String recordEnabledProperty) Property name on a record that will be checked to determine whether a record is enabled.setRecordRadius(String recordRadius) When set to any valid CSS border-radius string, allows for rounded records in this grid by havinggetCellCSSText()apply a corner-radius to the first and last cells in each record.setRecordRadiusTargets(RecordType... recordRadiusTargets) Array ofRecordTypesthat should be rounded whenrecordRadiusis set to a valid CSS border-radius string.setRecordRowAriaStateProperty(String recordRowAriaStateProperty) If this property is set on a record it will designate a mapping of WAI ARIA attribute names and values for this record's row.setRecordRowRoleProperty(String recordRowRoleProperty) If this property is set on a record it will designate the WAI ARIA role for this record's row.voidsetRecords(ListGridRecord[] records) Synonym forsetData(ListGridRecord[])setRecordScreen(String recordScreen) Screen to create (viacreateScreen()) in lieu of callinggetRecordComponent().setRecordShowRollOverProperty(String recordShowRollOverProperty) Name of the property that can be set on a per-record basis to disabled rollover for an individual record whenshowRollOveris true.setRecordSummaryAttributePrefix(String recordSummaryAttributePrefix) setRecordSummaryBaseStyle(String recordSummaryBaseStyle) If showing any record summary fields (IE: fields oftype:"summary"), this attribute specifies a custom base style to apply to cells in the summary fieldsetRemovedCSSText(String removedCSSText) Custom CSS text to be applied to records that have beenmarked for removal.setRemoveFieldProperties(ListGridField removeFieldProperties) Configuration properties for the "remove field" displayed whencanRemoveRecordsis enabled.setRemoveFieldTitle(String removeFieldTitle) The title to use for theremove field.setRemoveIcon(String removeIcon) WhencanRemoveRecordsis enabled, default icon to show in the auto-generated field that allows removing records.setRemoveIconSize(int removeIconSize) Default width and height ofremove iconsfor this ListGrid.setRemoveIconStyle(String removeIconStyle) Custom style to apply to the image in theremoveFielddisplayed in rows whencanRemoveRecordsis true.setRemoveOperation(String removeOperation) operationIdthis component should use when performing remove operations.setReselectOnUpdate(boolean reselectOnUpdate) If true, when an update operation occurs on a selected record in adataboundlistGrid, ensure the updated record is re-selected when the operation completes.setReselectOnUpdateNotifications(SelectionNotificationType reselectOnUpdateNotifications) ifreselectOnUpdateis true, this property governs what selection changed notifications should be triggered when a selected record is edited then automatically reselected when the edited data is merged into the data set.setResizeFieldsInRealTime(boolean resizeFieldsInRealTime) Iftrue, the grid contents are redrawn in real time as fields are resized.setReverseRTLAlign(Boolean reverseRTLAlign) If a page is rendered inRTL mode, should cell alignments specifiedListGridField.cellAlignbe reversed (so analign:"right"field will have content aligned on the left and vice versa)?voidsetRollOverCanvasProperties(Canvas rollOverCanvasProperties) Properties to apply to the auto-generatedrollOverCanvasAutoChild when its use is enabled.voidsetRollUnderCanvasProperties(Canvas rollUnderCanvasProperties) Properties to apply to the auto-generatedrollUnderCanvasAutoChild when its use is enabled.setRotatedHeaderMenuButtonHeight(int rotatedHeaderMenuButtonHeight) IfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonover arotatedheader button.setRotatedHeaderMenuButtonHeight(String rotatedHeaderMenuButtonHeight) IfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonover arotatedheader button.setRotatedHeaderMenuButtonWidth(int rotatedHeaderMenuButtonWidth) IfshowHeaderMenuButtonis true, this property governs the width of the auto-generatedheaderMenuButtonover arotatedheader button.setRotateHeaderTitles(Boolean rotateHeaderTitles) Whether to rotate the field titles so they're rendered vertically from bottom to top.setRowAriaState(Map rowAriaState) Returns a mapping of default WAI ARIA attributes for rows within this listGrid.setRowCountDisplayPrecision(Integer rowCountDisplayPrecision) When an exactrow countis not known due to progressive loading, this attribute allows the formatted row count returned bygetFormattedRowCount()and ultimately displayed in therowRangeDisplay labelto be rounded to a multiple of the specified value.setRowEndEditAction(RowEndEditAction rowEndEditAction) If the user is editing a record in this listGrid, and attempts to navigate to a field beyond the end of the row, via tab (or shift-tab off the first editable field), this property determines what action to take: "next": start editing the next (or previous) record in the list "same": put focus back into the first editable field of the same record.voidsetRowErrors(int rowNum, Object errors) Set the validation errors for some row (replacing any pre-existent validation errors)voidsetRowErrors(int rowNum, Map errors) Set the validation errors for some row (replacing any pre-existent validation errors)setRowLocatorField(String rowLocatorField) IflocateRowsByhas been set to "cellValue", this property may be used to specify which field's cell value to use.setRowLocatorField(String... rowLocatorField) IflocateRowsByhas been set to "cellValue", this property may be used to specify which field's cell value to use.voidsetRowNumberFieldProperties(ListGridField rowNumberFieldProperties) Set the properties generated field that displays the current row number whenshowRowNumbersis true.setRowNumberStart(int rowNumberStart) The number to start the row-count from - default value is 1.setRowNumberStyle(String rowNumberStyle) The CSS Style name for therowNumberField.setRowRangeDisplayStyle(RowRangeDisplayStyle rowRangeDisplayStyle) How should thegetFormattedRowRange()format the row range and row count for display to the user?setRowRangeFormat(String rowRangeFormat) Dynamic String specifying the format for thevisible row range.setRowRole(String rowRole) Returns the default WAI ARIA role for rows within this listGrid.setRowSpanEditMode(RowSpanEditMode rowSpanEditMode) IfallowRowSpanningis enabled, this property may be used to specify editing behavior for cells that span multiple rows.setRowSpanSelectionMode(RowSpanSelectionMode rowSpanSelectionMode) Chooses the selection mode whenuseRowSpanStylingis enabled.setSaveByCell(Boolean saveByCell) Whether edits should be saved whenever the user moves between cells in the current edit row.setSaveCriteriaInViewState(Boolean saveCriteriaInViewState) Should the currentfilter-criteriabe included along with other details when saving this grid'sview-state?setSaveDefaultSearch(boolean saveDefaultSearch) Saves the name of the default search to localStorage, under the key "sc_defaultSearch:" + minimal locator.setSavedSearchAdminRole(String savedSearchAdminRole) Override ofSavedSearches.adminRolefor this component.setSavedSearchDS(String savedSearchDS) Override ofSavedSearches.defaultDataSourcefor this component.setSavedSearchId(String savedSearchId) Optional identifier for saved searches that should be applied to this component.setSavedSearchStoredState(SavedSearchStoredState savedSearchStoredState) Set to "criteria" if you want only criteria to be stored for ListGrids and TreeGrids instead of the full viewState of the component.setSavedSearchText(String savedSearchText) Text to show for the saved searches submenu.setSaveLocally(Boolean saveLocally) For grids with a specifieddataSource, this property can be set totrueto cause the grid directly update its local data set instead of performing an operation against it's configured DataSource.setSaveRequestProperties(DSRequest saveRequestProperties) For editable grids with a specifieddataSource, wheresaveLocallyis false, this attribute may be used to specify standard DSRequest properties to apply to all save operations performed by this grid (whether triggered by user interaction, or explicit saveEdits or saveAllEdits call).setScreenReaderCellSeparator(String screenReaderCellSeparator) Special cell-separator that may be inserted between cell values when screen-readers are reading the content of a row.setScreenReaderIncludeFieldTitles(Boolean screenReaderIncludeFieldTitles) Should column titles be read along with cell values when screen-readers are reading the content of a row? Only applies when screen-reader mode is enabled, and for ListGrids withariaRole:"list".setScreenReaderNavigateByCell(boolean screenReaderNavigateByCell) Ifscreen reader mode is enabled, andcanSelectCellsis true should the user be able to navigate the grid cell-by-cell, highlighting and focusing on individual cells within the selected row via left and right arrow keypresses?setScreenReaderRowSeparator(String screenReaderRowSeparator) Special row-separator that may be inserted at the end of the row value when screen-readers are reading the content of a row.setScreenReaderWriteRowLabelledBy(Boolean screenReaderWriteRowLabelledBy) Whenscreen reader modeis enabled, for grids withariaRoleset to"list", should a custom aria-labelledby attribute be written out in addition to any otherrow aria propertiesto ensure thecolumn titles,screenReaderCellSeparatorandscreenReaderRowSeparatorare read out along with cell content when reading rows?setScrollRedrawDelay(int scrollRedrawDelay) While drag scrolling in an incrementally rendered grid, time in milliseconds to wait before redrawing, after the last mouse movement by the user.setScrollToCellXPosition(Alignment scrollToCellXPosition) When scrollToCell is called, this is used as defaults if xPosition weren't explicitly passed into the method.setScrollToCellYPosition(VerticalAlignment scrollToCellYPosition) When scrollToCell is called, this is used as defaults if yPosition weren't explicitly passed into the method.setScrollWheelRedrawDelay(Integer scrollWheelRedrawDelay) While scrolling an incrementally rendered grid, using the mouseWheel, time in milliseconds to wait before redrawing, after the last mouseWheel movement by the user.setSearchForm(DynamicForm searchForm) When declared, the specified form is automatically used as a search form for this grid, that is,form.getValuesAsCriteria()is called and the criteria returned are additive with any criteria present in theFilterEditororFilter Window.setSearchForm(ValuesManager searchForm) When declared, the specified form is automatically used as a search form for this grid, that is,form.getValuesAsCriteria()is called and the criteria returned are additive with any criteria present in theFilterEditororFilter Window.setSelectCellTextOnClick(Boolean selectCellTextOnClick) If this property is set to true, clicking on a cell will natively select the cell's content, ready to be copied to the browser clipboard.setSelectedState(String selectedState) Returns a snapshot of the current selection within this listGrid as aListGridSelectedStateobject.
 This object can be passed tosetSelectedState()to reset this grid's selection the current state (assuming the same data is present in the grid).
 
 If this method is called after the component has been drawn/initialized: Reset this grid's selection to match theListGridSelectedStateobject passed in.
 Used to restore previous state retrieved from the grid by a call togetSelectedState().setSelectHeaderOnSort(Boolean selectHeaderOnSort) If true, show the field-header for the sorted field (or the first field in amulti-sortgrid) in the selected state.setSelectionAppearance(SelectionAppearance selectionAppearance) How selection of rows should be presented to the user.voidsetSelectionCanvasProperties(Canvas selectionCanvasProperties) Properties to apply to the auto-generatedselectionCanvasAutoChild when its use is enabled.setSelectionProperty(String selectionProperty) If specified, the selection object for this list will use this property to mark records as selected.setSelectionType(SelectionStyle selectionType) Defines a listGrid's clickable-selection behavior.voidsetSelectionUnderCanvasProperties(Canvas selectionUnderCanvasProperties) Properties to apply to the auto-generatedselectionUnderCanvasAutoChild when its use is enabled.setSelectOnEdit(Boolean selectOnEdit) When the user starts editing a row, should the row also be selected?setSelectOnExpandRecord(boolean selectOnExpandRecord) When set to false, clicking a record'sexpansion fieldwill not add the record to the current selection.setSeparatorRowStyle(String separatorRowStyle) CSS class to apply to rows marked asseparatorsin this grid.setShowAllColumns(Boolean showAllColumns) Whether all columns should be drawn all at once, or only columns visible in the viewport.setShowAllRecords(Boolean showAllRecords) Whether all records should be drawn all at once, or only records visible in the viewport.setShowAsynchGroupingPrompt(Boolean showAsynchGroupingPrompt) If set to false, do not show theasynchGroupingPromptdialog duringasynchronous grouping.setShowBackgroundComponents(Boolean showBackgroundComponents) Iftruethis grid will create and show per-row backgroundComponents as detailedhere.setShowCellContextMenus(Boolean showCellContextMenus) Whether to show a context menu with standard items for all context clicks on rows in the body.setShowClippedHeaderTitlesOnHover(boolean showClippedHeaderTitlesOnHover) If true and a header button's title is clipped, then a hover containing the full field title is enabled.setShowClippedValuesOnHover(Boolean showClippedValuesOnHover) If true and a cell's value is clipped, then a hover containing the full cell value is enabled.setShowCollapsedGroupSummary(Boolean showCollapsedGroupSummary) Should group summaries be visible when the group is collapsed?setShowComplexFields(Boolean showComplexFields) Whether to show fields of non-atomic types when a DataBoundComponent is given a
 DataSource but nocomponent.fields.
setShowDetailFields(Boolean showDetailFields) Whether to include fields markeddetail:truefrom this component'sDataSource.setShowDropLines(Boolean showDropLines) Controls whether to show a drop-indicator during a drag and drop operation.setShowEllipsisWhenClipped(boolean showEllipsisWhenClipped) Should ellipses be displayed when cell content is clipped? May be overridden at the field level viaListGridField.showEllipsisWhenClippedsetShowEmptyMessage(Boolean showEmptyMessage) Indicates whether the text of the emptyMessage property should be displayed if no data is available.setShowErrorIcons(boolean showErrorIcons) If this grid is editable, and an edit has caused validation failure for some cell, should we show an icon to indicate validation failure?setShowFilterEditor(boolean showFilterEditor) Should this listGrid display a filter row.setShowFilterEditorHovers(Boolean showFilterEditorHovers) When set to false, no hover is shown for the filter editor fields.setShowFilterEditorTitle(String showFilterEditorTitle) WhencanShowFilterEditoris true, this is the title for the filterEditor show/hide menu-item, in theheaderContextmenu, when the filterEditor is hidden.setShowFilterWindowCriteriaIndicator(Boolean showFilterWindowCriteriaIndicator) Should an indicator be shown to indicate thatfilterWindowCriteriais configured? The indicator is a small triangle shown in the top-right of the grid header or filter.setShowGridSummary(Boolean showGridSummary) Should this ListGrid show a summary row beneath the last record of the grid.setShowGroupSummary(Boolean showGroupSummary) If this listGrid supportsgrouping, setting this property will cause the grid to render an extra row at the end of each group when grouped, containing summary information for the fields.setShowGroupSummaryInHeader(Boolean showGroupSummaryInHeader) If this grid isgrouped, andshowGroupSummaryis true, setting this property causes field summary values for each group to be displayed directly in the group header node, rather than showing up at the bottom of each expanded group.setShowGroupTitleColumn(Boolean showGroupTitleColumn) If this grid isgroupedandshowGroupSummaryInHeaderis true, instead of group header nodes showing up with a single cell value spanning the full set of columns, summaries for each field will show up in the appropriate columns of the header node.setShowGroupTitleInFrozenBody(boolean showGroupTitleInFrozenBody) If this isgroupedand hasfrozen fields, should the group title show in the frozen or unfrozen body?setShowHeader(Boolean showHeader) Should we show the header for this ListGrid?
 If this method is called after the component has been drawn/initialized: Show or hide the ListGrid header.setShowHeaderContextMenu(Boolean showHeaderContextMenu) Whether to show a context menu on the header with standard items for showing and hiding fields.setShowHeaderMenuButton(Boolean showHeaderMenuButton) If set to true andshowHeaderContextMenuis true, theheaderMenuButtonwill be displayed when the user rolls over the header buttons in this grid.setShowHeaderPartialSelection(Boolean showHeaderPartialSelection) Should partial selection of all records be shown in header with a special icon? The partial icon will show in the header whencanSelectAllis enabled and at least one record is selected but all records are not selected.setShowHeaderShadow(Boolean showHeaderShadow) Should the header show a drop-shadow? Shadow will be applied to the header, or for a grid with frozen columns, the header layout.setShowHeaderSpanContextMenu(Boolean showHeaderSpanContextMenu) Whether to show a context menu on the header span with standard items for showing and hiding fields.setShowHeaderSpanTitlesInFormulaBuilder(Boolean showHeaderSpanTitlesInFormulaBuilder) If this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using the FormulaBuilder or SummaryBuilder.setShowHeaderSpanTitlesInHiliteEditor(Boolean showHeaderSpanTitlesInHiliteEditor) If this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using thehilite editor.setShowHeaderSpanTitlesInSortEditor(Boolean showHeaderSpanTitlesInSortEditor) If this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using themulti-sort editor.setShowHiddenFields(Boolean showHiddenFields) Whether to show fields markedhidden:truewhen a DataBoundComponent is given a
 DataSource but nocomponent.fields.
setShowHilitesInGroupSummary(boolean showHilitesInGroupSummary) Determines whether hiliting for any field in this grid is shown in a group summary.setShowHover(Boolean showHover) If true, andcanHoveris also true, shows popup hover text next to the mouse when the user hovers over a cell.setShowHoverComponents(Boolean showHoverComponents) When set to true and canHover is also true, shows a widget hovering at the mouse point.setShowHoverOnDisabledCells(boolean showHoverOnDisabledCells) IfshowHoveris true, should cell hover HTML be displayed on disabled cells?setShowInitialDragHandles(Boolean showInitialDragHandles) When set to true, shows thedrag handle fieldon initial draw.setShowNewRecordRow(Boolean showNewRecordRow) If this is an editable ListGrid, setting this property to true causes an extra row with thenewRecordRowMessageto be displayed below the last record.setShowPartialSelection(Boolean showPartialSelection) Should partially selected parents (in a Tree data set) be shown with special icon? This has an impact in grouped grids wherecanSelectGroupsis true.setShowRecordComponents(Boolean showRecordComponents) When enabled,createRecordComponent()will be called when saved rows are being rendered, and any returned component will be displayed embedded within the row or cell.setShowRecordComponentsByCell(Boolean showRecordComponentsByCell) If true, showsrecordComponentsin cells, rather than just in records.setShowRollOver(Boolean showRollOver) Should we show different styling for the cell the mouse is over?setShowRollOverCanvas(Boolean showRollOverCanvas) When enabled, when the mouse moves over a row or cell (depending onuseCellRollOvers), an arbitrary Canvas can be shown layered on top of the row or cell (therollOverCanvas), layered underneath the row or cell (therollUnderCanvas), or both.setShowRollOverInExpansion(Boolean showRollOverInExpansion) This setting causes theroll over canvasto be sized to cover the normal row and the expansion layout.setShowRollUnderCanvas(Boolean showRollUnderCanvas) If roll overs are enabled, should therollUnderCanvasbe displayed?setShowRowNumbers(Boolean showRowNumbers) When set to true, shows an additional field at the beginning of the field-list (respecting RTL) that displays the current rowNum for each record.setShowSavedSearchesByDS(boolean showSavedSearchesByDS) Whether to associate saved searches by default with the currentDataSourceof a component when asavedSearchIdis not provided.setShowSelectedRollOverCanvas(Boolean showSelectedRollOverCanvas) This setting causes theroll over canvasto be displayed when the user rolls over selected records in the grid (but not when rolling over other records).setShowSelectedRollUnderCanvas(Boolean showSelectedRollUnderCanvas) This setting causes theroll under canvasto be displayed when the user rolls over selected records in the grid (but not when rolling over other records).setShowSelectedStyle(Boolean showSelectedStyle) Should the "Selected" style be applied to selected records?setShowSelectionCanvas(Boolean showSelectionCanvas) IfselectionTypeis set toSelectionStyle.SINGLE, setting this property totruemeans selection will be displayed to the user with theselectionCanvasand/orselectionUnderCanvasrather than with CSS styling.setShowSelectionUnderCanvas(Boolean showSelectionUnderCanvas) IfselectionTypeis set toSelectionStyle.SINGLE, and eithershowSelectionCanvasistrueandshowSelectionUnderCanvasis unset, orshowSelectionUnderCanvasis explicitly set totrue, then selection will be displayed to the user with theselectionCanvasand/orselectionUnderCanvasrather than with CSS styling.setShowSortArrow(SortArrow showSortArrow) Indicates whether a sorting arrow should appear for the listGrid, and its location.setShowSortNumerals(Boolean showSortNumerals) When multiple fields are sorted, set this to false to hide the sort-numeral displayed by default after the sort-arrows in the header-buttons of sorted fields.setShowTreeColumnPicker(Boolean showTreeColumnPicker) WhenheaderSpansare in use, whether to show a hierarchical column picker that includes both headerSpans and normal headers, with normal headers indented under headerSpans similarly to how aTreeGriddisplays a Tree.setShrinkForFreeze(Boolean shrinkForFreeze) If this list grid is showing anyfrozenfields, and a horizontal scrollbar is visible at the bottom of the liquid columns, should an equivalent scrollbar gap be left visible below the frozen columns?
 Note that if set totrueany backgroundColor or border applied to the ListGrid will show up below the bottom row of the frozen column(s).setSingleCellValueProperty(String singleCellValueProperty) Ifrecord[this.singleCellValueProperty]is set for some record, the record will be displayed as a single cell spanning every column in the grid, with contents set to the value ofrecord[this.singleCellValueProperty].setSkinImgDir(String skinImgDir) Where do 'skin' images (those provided with the class) live?setSkipLineBreaks(Boolean skipLineBreaks) Whether to skip line breaks for all fields by default whenescaping HTML.setSort(SortSpecifier... sortSpecifiers) Sort the grid on one or more fields.setSortArrowMenuButtonSpaceOffset(int sortArrowMenuButtonSpaceOffset) WhenleaveHeaderMenuButtonSpaceis true, configures the amount of space beyond theheaderMenuButtonWidthon the right side of a ListGrid header button (left forRTL mode) to reserve for the sort arrow if sorting is active for that field and the arrow will be shown.setSortAscendingImage(ImgHTMLProperties sortAscendingImage) Image to show when sorted in ascending order.setSortAscendingImage(String sortAscendingImage) Image to show when sorted in ascending order.setSortBinaryByFileName(boolean sortBinaryByFileName) For any fields oftype "binary", should sorting be performed against the fileName of the value for the field? For Smart GWT server backed dataSources, this is applied to the record automatically as described in theBinaryFieldsoverview.setSortByGroupFirst(Boolean sortByGroupFirst) If set, whenever grouping is performed by an end user or by a programmatic call togroupBy(), data is implicitly sorted by all of the grouped columns, in the order they were passed to groupBy.setSortDescendingImage(ImgHTMLProperties sortDescendingImage) Image to show when sorted in descending order.setSortDescendingImage(String sortDescendingImage) Image to show when sorted in descending order.setSortDirection(SortDirection sortDirection) Sorting direction of this ListGrid.setSortEditorSpanTitleSeparator(String sortEditorSpanTitleSeparator) If this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInSortEditoris true, this string will be inserted between the headerSpan title(s) and the field title in the field chooser grid on themulti-sort editorsetSorterButtonTitle(String sorterButtonTitle) The title for the corner sort button.voidsetSortField(int fieldIndex) Specifies the field by which this grid should be initially sorted.setSortField(Integer sortField) Specifies the field by which this grid should be initially sorted.setSortField(String sortField) Specifies the field by which this grid should be initially sorted.setSortFieldAscendingText(String sortFieldAscendingText) If we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to sort a field in ascending order.setSortFieldDescendingText(String sortFieldDescendingText) If we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to sort a field in descending order.voidThis customizer is called to generate the HTML for the sortNumeral displayed next to a field's title when it is included in the current sort specification.setSortNumeralMenuButtonSpaceOffset(int sortNumeralMenuButtonSpaceOffset) WhenleaveHeaderMenuButtonSpaceis true, configures the amount of space beyond theheaderMenuButtonWidthon the right side of a ListGrid header button (left forRTL mode) to reserve for the sort numeral ifmulti-sortingis active for that field and the numeral will be shown.setSortNumeralStyle(String sortNumeralStyle) When multiple fields are sorted, the Style to apply to the numeral that appears after the sort-arrows in the header-buttons of sorted fields.setSortState(String sortState) Initial sort state for the grid.setSpannedHeaderBaseStyle(String spannedHeaderBaseStyle) Button.baseStyleto apply to the field header buttons for this ListGrid when showing header spans.setSparseFieldState(Boolean sparseFieldState) If true,getFieldState()andsetFieldState(java.lang.String)will omit state information for hidden fields by default.setStopOnErrors(Boolean stopOnErrors) If this is an editable listGrid, this property determines how failure to save due to validation errors should be displayed to the user.setStyledRowEnds(Boolean styledRowEnds) When set to true, the first and last cells in each row will be styled with an additional CSS class, via thefirstCellStyleandlastCellStyleattributes.voidsetStyleName(String styleName) Default CSS class for the ListGrid as a whole.setSummaryRowCriteria(Criteria summaryRowCriteria) IfshowGridSummaryis true, and asummaryRowDataSourceis specified this property may be used to specify fetch criteria to apply when retrieving summary data to show in the summary row.setSummaryRowDataSource(DataSource summaryRowDataSource) IfshowGridSummaryis true, by default summary values are calculated on the client based on the current data-set for the grid (seegetGridSummary()andgetGridSummaryFunction()).setSummaryRowFetchRequestProperties(DSRequest summaryRowFetchRequestProperties) IfshowGridSummaryis true, and asummaryRowDataSourceis specified this property may be used to customize the fetch request used when retrieving summary data to show in the summary row.setSummaryRowHeight(int summaryRowHeight) Default height for thesummary row autoChild.setSummaryRowStyle(String summaryRowStyle) baseStylefor thesummaryRowsetTableRowStyle(String tableRowStyle) The style to apply to <TR> tags in this grid's table.setTallBaseStyle(String tallBaseStyle) "Tall" baseStyle for this listGrid.setTitleField(String titleField) Sets the best field to use for a user-visible title for an individual record from this component.setTouchScrollRedrawDelay(Integer touchScrollRedrawDelay) While scrolling an incrementally rendered grid, using the inertial scrolling, time in milliseconds to wait before redrawing, after the last touchScroll by the user.setTrackerImage(ImgHTMLProperties trackerImage) Default image to use for the dragTracker when things are dragged within or out of this list.setTrackerImage(String trackerImage) Default image to use for the dragTracker when things are dragged within or out of this list.setUnfreezeFieldText(String unfreezeFieldText) If we're showing aheaderContextMenufor this grid andthis.canFreezeFieldsis true, this string will be shown as the title for the menu item to unfreeze a currently frozen field.setUngroupText(String ungroupText) If we're showing aheaderContextMenufor this grid, andthis.isGroupedis true, this attribute will be shown as the title for the menu item to ungroup the grid.setUnknownRowCountDisplayValue(String unknownRowCountDisplayValue) Value to return fromgetFormattedRowCount()when the row count is unknownsetUnremoveIcon(String unremoveIcon) WhencanRemoveRecordsis enabled, this icon will be shown in the auto generated field fro removing records if the record has been marked as removed viamarkRecordRemoved().setUpdateOperation(String updateOperation) operationIdthis component should use when performing update operations.setUpdateSummariesDuringEditing(boolean updateSummariesDuringEditing) Should thesummary roworgroup summariesbe updated during editing of grid records? This can be set false to improve performance when a large number ofListGridFieldsorDataSourceFieldsare present for the grid.setUseAdvancedCriteria(Boolean useAdvancedCriteria) Should thefilter-editorin this grid always produceAdvancedCriteria?setUseAdvancedFieldPicker(Boolean useAdvancedFieldPicker) If set to true, an advanced field picker based on theFieldPickerwill be shown instead of the column picker submenu if there are more fields in the grid thanadvancedFieldPickerThreshold.setUseAllDataSourceFields(Boolean useAllDataSourceFields) If true, the set of fields given by the "default binding" (see 
fields) is used, with any fields specified in
component.fieldsacting as overrides that can suppress or modify the
 display of individual fields, without having to list the entire set of fields that
 should be shown.
setUseCellRollOvers(Boolean useCellRollOvers) Are rollovers cell-level or row-level?setUseClientFiltering(Boolean useClientFiltering) Causes this grid to filter its data on the client where possible, eliminating trips to the server when criteria becomes more restrictive, since the filter must apply to data which is already on the client.setUseCopyPasteShortcuts(Boolean useCopyPasteShortcuts) For ListGrids withcanSelectCells:true, enabling this property will cause the listGrid to intercept standard browser copy/paste shortcut keys and perform the following behavior.setUseFlatFields(Boolean useFlatFields) TheuseFlatFieldsflag causes all simple type fields anywhere in a nested
 set of DataSources to be exposed as a flat list for form binding.setUseMultiSelectForFilterValueMaps(boolean useMultiSelectForFilterValueMaps) IfshowFilterEditoris true, when creating a SelectItem for editing criteria for a field with a ValueMap, should the SelectItem default tomultiple:true?voidsetUserCriteriaState(String userCriteriaState) Reset this grid's user-criteria to match theListGridUserCriteriaStateobject passed in.setUseRemoteValidators(Boolean useRemoteValidators) IfsaveLocallyis specified, but this grid is bound to a DataSource which includes remote field validators, by default edits will be saved synchronously and these validators will not be executed.
 Set this property totrueto ensure these remote validators are called when saving edits in saveLocally mode.voidsetUserFormula(ListGridField field) Updates theuserFormulaof the specified field.voidsetUserFormula(ListGridField field, UserFormula userFormula) Updates theuserFormulaof the specified field.voidsetUserFormula(String field) Updates theuserFormulaof the specified field.voidsetUserFormulaText(ListGridField field) Updates theUserFormula.textof the specified field.voidsetUserFormulaText(ListGridField field, String text) Updates theUserFormula.textof the specified field.voidsetUserFormulaText(String field) Updates theUserFormula.textof the specified field.setUseRowSpanStyling(Boolean useRowSpanStyling) Enables various styling behaviors that potentially make sense whengetRowSpan()has been overridden to introduce spanning cells, and spanning is largest on the left and smaller as cells go to the right.voidsetUserSummary(ListGridField field) Updates theuserSummaryof the specified field.voidsetUserSummary(ListGridField field, UserSummary userSummary) Updates theuserSummaryof the specified field.voidsetUserSummary(String field) Updates theuserSummaryof the specified field.voidsetUserSummaryText(ListGridField field) Updates theUserSummary.textof the specified field.voidsetUserSummaryText(ListGridField field, String text) Updates theUserSummary.textof the specified field.voidsetUserSummaryText(String field) Updates theUserSummary.textof the specified field.setValidateByCell(Boolean validateByCell) Whether client-side validation checks should be performed when the user moves between cells in the current edit row.setValidateOnChange(Boolean validateOnChange) If true, validation will be performed on each edited cell when each editor's "change" handler is fired.setValueIconHeight(Integer valueIconHeight) Height for value icons for this listGrid.setValueIconLeftPadding(int valueIconLeftPadding) How much padding should there be on the left of valueIcons by default Can be overridden at the field levelsetValueIconRightPadding(int valueIconRightPadding) How much padding should there be on the right of valueIcons by defaultsetValueIconSize(int valueIconSize) Default width and height of value icons for this ListGrid.setValueIconWidth(Integer valueIconWidth) Width for value icons for this listGrid.voidsetValueMap(String fieldName, String... valueMap) Set the value map for a field.
 See also thesetEditorValueMap(java.lang.String, java.util.LinkedHashMap)
 andcom.smartgwt.client.widgets.grid.ListGrid#getEditorValueMapmethods which allow further 
 customization of the valueMap displayed while the field is in edit mode.

voidsetValueMap(String fieldName, LinkedHashMap valueMap) Set the value map for a field.
 See also thesetEditorValueMap(java.lang.String, java.util.LinkedHashMap)
 andcom.smartgwt.client.widgets.grid.ListGrid#getEditorValueMapmethods which allow further 
 customization of the valueMap displayed while the field is in edit mode.

setViewState(String viewState) Initial view state may be provided for the listGrid at init time.setVirtualScrolling(Boolean virtualScrolling) When incremental rendering is switched on and there are variable record heights, the virtual scrolling mechanism manages the differences in scroll height calculations due to the unknown sizes of un-rendered rows to make the scrollbar and viewport appear correctly.setWaitForSave(Boolean waitForSave) If this is an editable listGrid, this property determines whether the user will be able to dismiss the edit form, or navigate to another cell while the save is in process (before the asynchronous server response returns).setWarnOnRemoval(Boolean warnOnRemoval) IfcanRemoveRecordsis true, when the user clicks the remove icon for some record, should we show a warning message (defined aswarnOnRemovalMessage) and allow the user to cancel removal?setWarnOnRemovalMessage(String warnOnRemovalMessage) Warning message to show the user on a click on the 'remove' icon ifcanRemoveRecordsis true andwarnOnRemovalis true.setWarnOnUnmappedValueFieldChange(Boolean warnOnUnmappedValueFieldChange) If a field hasListGridField.displayFieldspecified and has noListGridField.optionDataSource, this field will display the value from thedisplayFieldof each record by default (for more on this behavior seeListGridField.optionDataSource).setWrapCells(Boolean wrapCells) Should content within cells be allowed to wrap?setWrapHeaderSpanTitles(Boolean wrapHeaderSpanTitles) IfHeaderSpan.wrapis not explicitly set, should fields wrap? If autofitting, see the docs on that property for the details of how the minimum width for a field is determined.setWrapHeaderTitles(Boolean wrapHeaderTitles) IfListGridField.wrapis not explicitly set, should fields wrap? If autofitting, see the docs on that property for the details of how the minimum width for a field is determined.booleanshouldIncludeHiliteInSummaryField(String summaryFieldName, String usedFieldName) When assembling a value for asummary field, if a referenced field is hilited, should the hilite HTML be included in the summary field value?voidShows theaiFilterWindow, which allows the user to ask the AI to filter data by describing which records should be included.voidShows theaiFilterWindow, which allows the user to ask the AI to filter data by describing which records should be included.voidShows an additional field near the beginning of the field list (after anyrow numberfield) that can be dragged to drag the current selection.voidForce a field to be shown.voidForce a field to be shown.voidshowFields(ListGridField... field) Force an array of fields to be shown.voidshowFields(ListGridField[] fields, boolean suppressRelayout) voidshowFields(String... field) Force an array of fields to be shown.voidshowFields(String[] field, boolean suppressRelayout) Force an array of fields to be shown.voidShows the dialog forfilterWindowCriteriaallowing end-users to edit the advanced filter.protected booleanshowRecordComponent(ListGridRecord record, Integer colNum) WhenshowRecordComponentsis true, return false from this method to prevent showRecordComponent behavior for the passed record.sort()Sort this grid's data, with the option to explicitly specify a single field to sort by and sort direction.sort(int sortCol, SortDirection sortDirection) sort(String sortField, SortDirection sortDirection) Sort this grid's data, with the option to explicitly specify a single field to sort by and sort direction.Start inline editing at the provided coordinates.startEditing(Integer rowNum) startEditing(Integer rowNum, Integer colNum) startEditing(Integer rowNum, Integer colNum, Boolean suppressFocus) Start inline editing at the provided coordinates.voidStart editing a new row, after the last pre-existing record in the current set of data.voidstartEditingNew(Record defaultRecordValue) Start editing a new row, after the last pre-existing record in the current set of data.voidstartEditingNew(Map newValues) voidstartEditingNew(Map newValues, Boolean suppressFocus) Start editing a new row, after the last pre-existing record in the current set of data.voidNotification that the user is no longer hovering over some cell.voidsummaryUpdated(ListGridField field, UserSummary summary) Notification fired when a user either creates a new summary field or edits an existing summary field.voidtoggleSort(String fieldName) Toggles the sort-direction of the field with the passed name and resorts the grid.voidtransferRecords(Record[] records, Record targetRecord, Integer index, Canvas sourceWidget, TransferRecordsCallback callback) Transfer a list ofRecords from another component (does not have to be a databound component) into this component.voidSimulates a drag / drop type transfer of the selected records in some other component to this component, without requiring any user interaction.voidtransferSelectedData(DataBoundComponent source, int index) Simulates a drag / drop type transfer of the selected records in some other component to this component, without requiring any user interaction.voidunfreezeField(ListGridField field) Unfreeze a frozen field, so that it will now scroll along with other fields when horizontal scrolling occurs.voidunfreezeField(Integer field) Unfreeze a frozen field, so that it will now scroll along with other fields when horizontal scrolling occurs.voidunfreezeField(String field) Unfreeze a frozen field, so that it will now scroll along with other fields when horizontal scrolling occurs.voidunfreezeField(String[] field) Unfreeze a frozen field, so that it will now scroll along with other fields when horizontal scrolling occurs.voidunfreezeFields(int[] colNums) voidunfreezeFields(String[] fieldNames) voidungroup()Removes the grouping from the listGrid, restoring its original datavoidunmarkRecordRemoved(int rowNum) Reverses a previous call tomarkRecordRemoved().voidunsort()Turn sorting off, typically because data has changed and is no longer sorted.voidupdateData(Record updatedRecord) Perform a DataSource "update" operation to update existing records in this component's DataSource.voidupdateData(Record updatedRecord, DSCallback callback) voidupdateData(Record updatedRecord, DSCallback callback, DSRequest requestProperties) Perform a DataSource "update" operation to update existing records in this component's DataSource.updateRecordComponent(ListGridRecord record, Integer colNum, Canvas component, boolean recordChanged) WhenshowRecordComponentsis true, this method is called to update components created bycreateRecordComponent()when they are to be applied to a different record in the grid.voidSelects every user-selectable record in the grid.validateCell(int rowNum, int colIndex) Validate the current edit value for the cell in question.validateCell(int rowNum, String fieldName) Validate the current edit value for the cell in question.validateRow(int rowNum) Validate the current set of edit values for the row in question.This method overridesCanvas.willAcceptDrop()and works as follows:
 IfCanvas.willAcceptDrop()(the superclass definition) returns false, this method always returns false.willFetchData(Criteria newCriteria) Compares the specified criteria with the current criteria applied to this component's data object and determines whether the new criteria could be satisfied from the currently cached set of data, or if a new filter/fetch operation will be required.willFetchData(Criteria newCriteria, TextMatchStyle textMatchStyle) Compares the specified criteria with the current criteria applied to this component's data object and determines whether the new criteria could be satisfied from the currently cached set of data, or if a new filter/fetch operation will be required.Methods inherited from class com.smartgwt.client.widgets.layout.VLayoutsetDefaultProperties, setLogicalStructureMethods inherited from class com.smartgwt.client.widgets.layout.LayoutaddMember, addMember, addMember, addMember, addMemberPostCreate, addMemberPostCreate, addMemberPreCreate, addMemberPreCreate, addMembers, addMembers, addMembersChangedHandler, getAnimateMembers, getAnimateMemberTime, getCanDropComponents, getChildTabPosition, getDefaultResizeBars, getDropComponent, getDropLine, getDropLineThickness, getDropPosition, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutEndMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutStartMargin, getLayoutTopMargin, getLocateMembersBy, getLocateMembersType, getManagePercentBreadth, getMember, getMember, getMemberDefaultBreadth, getMemberNumber, getMemberNumber, getMemberOverlap, getMembers, getMembersLength, getMembersMargin, getMinMemberLength, getMinMemberSize, getPaddingAsLayoutMargin, getResizeBar, getResizeBarClass, getResizeBarSize, getReverseOrder, getShowDragPlaceHolder, getStackZIndex, getVertical, getVPolicy, hasMember, hideDropLine, hideMember, hideMember, layoutIsDirty, onInit_Layout, reflow, reflow, reflowNow, removeMember, removeMembers, removeMembers, reorderMember, reorderMembers, replaceMember, revealChild, revealChild, setAlign, setAlign, setAnimateMembers, setAnimateMemberTime, setCanDropComponents, setDefaultLayoutAlign, setDefaultLayoutAlign, setDefaultProperties, setDefaultResizeBars, setDropLineProperties, setDropLineThickness, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutEndMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutStartMargin, setLayoutTopMargin, setLocateMembersBy, setLocateMembersType, setLogicalStructure, setManagePercentBreadth, setMemberOverlap, setMembers, setMembersMargin, setMinBreadthMember, setMinBreadthMember, setMinBreadthMember, setMinMemberLength, setMinMemberSize, setPaddingAsLayoutMargin, setPlaceHolderDefaults, setPlaceHolderProperties, setResizeBarClass, setResizeBarSize, setReverseOrder, setShowDragPlaceHolder, setStackZIndex, setVertical, setVisibleMember, setVPolicy, showMember, showMemberMethods inherited from class com.smartgwt.client.widgets.CanvasaddChild, addChild, addChild, addChild, addChild, addClearHandler, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addRuleContextChangedHandler, addScrolledHandler, addShowContextMenuHandler, addSnapAlignCandidate, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clearExplicitTabIndex, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsEventTarget, containsFocus, containsPoint, containsPoint, dataContextChanged, deparent, depeer, disable, doValueDictation, doVoiceCommand, enable, encloses, focus, focusAfterGroup, focusAtEnd, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAlwaysManageFocusNavigation, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideEffect, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeLayoutMode, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaHandleID, getAutoMaskComponents, getAutoParent, getAutoPopulateData, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBorderRadius, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanAdaptHeight, getCanAdaptWidth, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenResizeSnapAlign, getChildrenSnapAlign, getChildrenSnapCenterAlign, getChildrenSnapEdgeAlign, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContextMenu, getCorrectZoomOverflow, getCursor, getDataContext, getDataPath, getDefaultHeight, getDefaultWidth, getDefiningProperty, getDefiningPropertyName, getDefiningPropertyNameOptions, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragMaxHeight, getDragMaxWidth, getDragMinHeight, getDragMinWidth, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragTargetAsString, getDragType, getDropTarget, getDropTargetAsString, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getElement, getElement, getEnableWhen, getEndLine, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFloatingScrollbars, getFormItemAutoChild, getForwardSVGeventsToObject, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupPadding, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverAutoFitMaxWidth, getHoverAutoFitMaxWidthAsString, getHoverAutoFitWidth, getHoverComponent, getHoverDelay, getHoverFocusKey, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverPersist, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlElementAsString, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsRuleScope, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeaveGroupLabelSpace, getLeavePageSpace, getLeft, getLeftAsString, getLocalId, getLocateByIDOnly, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getLocatorName, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMatchElementHeight, getMatchElementWidth, getMaxHeight, getMaxWidth, getMaxZoomOverflowError, getMenuConstructor, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getName, getNativeAutoHideScrollbars, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPaletteDefaults, getPanelContainer, getParentCanvas, getParentElement, getPeers, getPendingMarkerStyle, getPendingMarkerVisible, getPercentBox, getPercentSource, getPersistentMatchElement, getPointerSettings, getPointerTarget, getPointerTargetAsString, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrintStyleName, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getReceiveScrollbarEvents, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getRuleContext, getRuleContext, getRuleScope, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowColor, getShadowDepth, getShadowHOffset, getShadowImage, getShadowOffset, getShadowSoftness, getShadowSpread, getShadowVOffset, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowPointer, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSizeMayChangeOnRedraw, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapGridLineProperties, getSnapGridStyle, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStartLine, getTabIndex, getTestDataContext, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getUISummary, getUpdateTabPositionOnDraw, getUpdateTabPositionOnReparent, getUseBackMask, getUseCSSShadow, getUseDragMask, getUseImageForSVG, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getValuesManagerAsString, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWhen, getVisibleWidth, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getWorkflows, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, initComplete, intersects, isDirty, isDisabled, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, pageScrollDown, pageScrollUp, parentResized, placeNear, placeNear, placeNear, print, print, print, print, printComponents, provideRuleContext, provideRuleContext, redraw, redraw, registerFontScaledPaddingStyles, removeChild, removeChild, removePeer, removePeer, removeRuleContext, removeSnapAlignCandidate, resizeAutoChildAttributes, resizeBy, resizeControls, resizeControlsTo, resizeFonts, resizeFonts, resizeFonts, resizeFontsTo, resizeIcons, resizePadding, resizePadding, resizeTo, resizeTo, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAllowExternalFilters, setAlwaysManageFocusNavigation, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideEffect, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeLayoutMode, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoHeight, setAutoMaskComponents, setAutoParent, setAutoPopulateData, setAutoResizeAutoChildAttributes, setAutoResizeIcons, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorderRadius, setBottom, setCanAcceptDrop, setCanAdaptHeight, setCanAdaptWidth, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanSelectText, setChildren, setChildrenResizeSnapAlign, setChildrenSnapAlign, setChildrenSnapCenterAlign, setChildrenSnapEdgeAlign, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContextMenu, setCorrectZoomOverflow, setCursor, setDataContext, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultShowCustomScrollbars, setDefaultWidth, setDefiningProperty, setDefiningPropertyNameOptions, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragMaxHeight, setDragMaxWidth, setDragMinHeight, setDragMinWidth, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragTarget, setDragType, setDropTarget, setDropTarget, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setElement, setEnableWhen, setEndLine, setExtraSpace, setFacetId, setFloatingScrollbars, setForwardSVGeventsToObject, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupPadding, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverAutoFitMaxWidth, setHoverAutoFitMaxWidth, setHoverAutoFitWidth, setHoverDelay, setHoverFocusKey, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverPersist, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsRuleScope, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeaveGroupLabelSpace, setLeavePageSpace, setLeft, setLeft, setLocateByIDOnly, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLocatorName, setLocatorParent, setLocatorParent, setLogicalStructure, setMargin, setMatchElement, setMatchElementHeight, setMatchElementWidth, setMaxHeight, setMaxWidth, setMaxZoomOverflowError, setMenuConstructor, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setName, setNativeAutoHideScrollbars, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setPadding, setPageLeft, setPageTop, setPanelContainer, setParentCanvas, setParentElement, setPeers, setPendingMarkerStyle, setPendingMarkerVisible, setPercentBox, setPercentSource, setPersistentMatchElement, setPointerSettings, setPointerTarget, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrintStyleName, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setReceiveScrollbarEvents, setRect, setRect, setRedrawOnResize, setRelativeTabPosition, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setRuleScope, setScrollbarConstructor, setScrollbarSize, setShadowColor, setShadowDepth, setShadowHOffset, setShadowImage, setShadowOffset, setShadowSoftness, setShadowSpread, setShadowVOffset, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowPointer, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSizeMayChangeOnRedraw, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapGridLineProperties, setSnapGridStyle, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStartLine, setTabIndex, setTestDataContext, setTitle, setTooltip, setTop, setTop, setUpdateTabPositionOnDraw, setUpdateTabPositionOnReparent, setUseBackMask, setUseCSSShadow, setUseDragMask, setUseImageForSVG, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setValuesManager, setVisibility, setVisible, setVisibleWhen, setWidth, setWidth, setWidth, setWidth100, setWorkflows, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPendingMarker, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, startDebuggingOverflow, stopDebuggingOverflow, supportsValueDictation, supportsVoiceCommands, updateChildTabPosition, updateChildTabPositions, updateEditNode, updateHover, updateHover, updateShadow, updateTabPositionForDraw, visibleAtPointMethods inherited from class com.smartgwt.client.widgets.BaseWidgetaddDrawHandler, addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, clearDynamicProperty, completeCreation, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hasDynamicProperty, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isDrawn, isFactoryCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDefaultProperties, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toStringMethods inherited from class com.google.gwt.user.client.ui.WidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObjectaddStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEventMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.smartgwt.client.widgets.DataBoundComponentgetOrCreateJsObjMethods inherited from interface com.google.gwt.event.shared.HasHandlersfireEvent
- 
Constructor Details- 
ListGridpublic ListGrid()
- 
ListGrid
- 
ListGrid
 
- 
- 
Method Details- 
getOrCreateRef
- 
getTestInstance- Overrides:
- getTestInstancein class- Canvas
 
- 
changeAutoChildDefaultsChanges the defaults for Canvas AutoChildren namedautoChildName.- Parameters:
- autoChildName- name of an AutoChild to customize the defaults for.
- defaults- Canvas defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see- SGWTProperties.
- See Also:
 
- 
changeAutoChildDefaultsChanges the defaults for FormItem AutoChildren namedautoChildName.- Parameters:
- autoChildName- name of an AutoChild to customize the defaults for.
- defaults- FormItem defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see- SGWTProperties.
- See Also:
 
- 
create
- 
setAdvancedFieldPickerThresholdpublic ListGrid setAdvancedFieldPickerThreshold(int advancedFieldPickerThreshold) throws IllegalStateException WhenuseAdvancedFieldPickeris set, total number of available fields that must be present in the grid before the advanced field picker interface is used instead of the normal columns submenu.Set to 0 to have the advanced picker always used (when useAdvancedFieldPicker is true). - Parameters:
- advancedFieldPickerThreshold- New advancedFieldPickerThreshold value. Default value is 25
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getAdvancedFieldPickerThresholdpublic int getAdvancedFieldPickerThreshold()WhenuseAdvancedFieldPickeris set, total number of available fields that must be present in the grid before the advanced field picker interface is used instead of the normal columns submenu.Set to 0 to have the advanced picker always used (when useAdvancedFieldPicker is true). - Returns:
- Current advancedFieldPickerThreshold value. Default value is 25
 
- 
setAdvancedFilteringTextIf we're showing aheaderContextMenufor this grid, and afilter-editoris visible andallowFilterWindowis enabled, this attribute will be shown as the menu item title to configure advanced filtering. This menu-item is displayed in the context menu for the sorter button and in thefilter usingoperators menu.- Parameters:
- advancedFilteringText- New advancedFilteringText value. Default value is "Advanced filtering..."
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAdvancedFilteringTextIf we're showing aheaderContextMenufor this grid, and afilter-editoris visible andallowFilterWindowis enabled, this attribute will be shown as the menu item title to configure advanced filtering. This menu-item is displayed in the context menu for the sorter button and in thefilter usingoperators menu.- Returns:
- Current advancedFilteringText value. Default value is "Advanced filtering..."
 
- 
getAiFilterWindowInstance ofAIWindowthat allows a user to enter a description of how they would like the AI to filter this grid.This component is an AutoChild named "aiFilterWindow". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current aiFilterWindow value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setAiFilterWindowHintThe inline hint-text displayed in the user-entry area in theaiFilterWindow.- Parameters:
- aiFilterWindowHint- New aiFilterWindowHint value. Default value is "Explain which records should be shown"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getAiFilterWindowHintThe inline hint-text displayed in the user-entry area in theaiFilterWindow.- Returns:
- Current aiFilterWindowHint value. Default value is "Explain which records should be shown"
- See Also:
 
- 
setAiFilterWindowInstructionspublic ListGrid setAiFilterWindowInstructions(String aiFilterWindowInstructions) throws IllegalStateException The descriptive text displayed above the user-entry area in theaiFilterWindow.- Parameters:
- aiFilterWindowInstructions- New aiFilterWindowInstructions value. Default value is "Show records that match this description..."
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getAiFilterWindowInstructionsThe descriptive text displayed above the user-entry area in theaiFilterWindow.- Returns:
- Current aiFilterWindowInstructions value. Default value is "Show records that match this description..."
- See Also:
 
- 
setAiFilterWindowTitleThe title for theAI-driven filter window.- Parameters:
- aiFilterWindowTitle- New aiFilterWindowTitle value. Default value is "AI Filtering"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getAiFilterWindowTitleThe title for theAI-driven filter window.- Returns:
- Current aiFilterWindowTitle value. Default value is "AI Filtering"
- See Also:
 
- 
getAiHiliteWindowInstance ofAIWindowthat allows a user to enter a description of how they would like the AI to filter this grid.This component is an AutoChild named "aiHiliteWindow". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current aiHiliteWindow value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setAiHoverContentsPrefixOptional prefix for the AI-generated hover text displayed when hovering over fields specifying anaiHoverRequest.This can be overridden per-field by ListGridField.aiHoverContentsPrefix.- Parameters:
- aiHoverContentsPrefix- New aiHoverContentsPrefix value. Default value is "<b>AI-generated summary:</b><br>"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAiHoverContentsPrefixOptional prefix for the AI-generated hover text displayed when hovering over fields specifying anaiHoverRequest.This can be overridden per-field by ListGridField.aiHoverContentsPrefix.- Returns:
- Current aiHoverContentsPrefix value. Default value is "<b>AI-generated summary:</b><br>"
- See Also:
 
- 
setAiHoverRetryDelayMinimum number of milliseconds to wait before retrying to generate hover contents via AI.The results of SummarizeValueRequests generated from a field's aiHoverRequestare cached, whether it was a successful or non-successful result. In the case of a non-successful result, the message therefrom will be displayed to the user for this configurable number of milliseconds before another request is made to try to generate the hover contents.- Parameters:
- aiHoverRetryDelay- New aiHoverRetryDelay value. Default value is 30000
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAiHoverRetryDelayMinimum number of milliseconds to wait before retrying to generate hover contents via AI.The results of SummarizeValueRequests generated from a field's aiHoverRequestare cached, whether it was a successful or non-successful result. In the case of a non-successful result, the message therefrom will be displayed to the user for this configurable number of milliseconds before another request is made to try to generate the hover contents.- Returns:
- Current aiHoverRetryDelay value. Default value is 30000
 
- 
setAiSortFieldMaxRecordsMessageThe message to show when a user asks the AI to sort more than themaximum allowed records.- Parameters:
- aiSortFieldMaxRecordsMessage- New aiSortFieldMaxRecordsMessage value. Default value is "There were too many records to sort using AI; the number of records exceeded the limit of ${aiSortFieldMaxRecords} records."
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAiSortFieldMaxRecordsMessageThe message to show when a user asks the AI to sort more than themaximum allowed records.- Returns:
- Current aiSortFieldMaxRecordsMessage value. Default value is "There were too many records to sort using AI; the number of records exceeded the limit of ${aiSortFieldMaxRecords} records."
- See Also:
 
- 
getAiSortProgressDialogDialog that shows progress after requesting AI-sorting of a field.This component is an AutoChild named "aiSortProgressDialog". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current aiSortProgressDialog value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setAllowFilterExpressionspublic ListGrid setAllowFilterExpressions(Boolean allowFilterExpressions) throws IllegalStateException For use withshowFilterEditor:true, allows simple search expressions to be entered into filter fields, as thoughDynamicForm.allowExpressionswere true.This attribute can also be set at the field level.- Parameters:
- allowFilterExpressions- New allowFilterExpressions value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getAllowFilterExpressionsFor use withshowFilterEditor:true, allows simple search expressions to be entered into filter fields, as thoughDynamicForm.allowExpressionswere true.This attribute can also be set at the field level.- Returns:
- Current allowFilterExpressions value. Default value is null
- See Also:
 
- 
setAllowFilterOperatorsCauses a menu item titled"Filter using"to appear in theheaderContextMenuthat allows the end user to pick an advancedsearch operatorto use for this field.Once an operator has been chosen, the active operator is indicated by an operatorIconplaced within the field (you can alternatively cause the icon toalways be present). TheoperatorIconshows the same textual representation of the search operator as is used by theFormItem.allowExpressionsfeature. Clicking on the icon provides a second way to modify the search operator.This feature is enabled by default if DataSource.supportsAdvancedCriteria()is true, for all fields where it is normally possible to filter by typing in a search string. This excludes field types such as "date" or "boolean" which show specialized filter controls. UseListGridField.allowFilterOperatorsto disable this interface for individual fields, or setDataSourceField.canFilterto false to disallow filtering entirely for a field.Note that this feature is similar to allowFilterExpressions, which allows the end users to directly type in characters such as ">" to control filtering.allowFilterOperatorsis easier to use and more discoverable thanallowFilterExpressions, and also avoids the drawback where special characters like ">" cannot be used in filter values. However,allowFilterExpressionsallows users to make use of certain operators thatallowFilterOperatorsdoes not support, such as using the "betweenInclusive" operator by typing "5...10".When both allowfilterExpressionsandallowFilterOperatorsare set, filter expressions entered in to the edit-area are parsed and the operator automatically applied to theoperatorIcon.If allowFilterWindowis enabled another option,"Advanced Filtering", is added to the "Filter using" menu.- Parameters:
- allowFilterOperators- New allowFilterOperators value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getAllowFilterOperatorsCauses a menu item titled"Filter using"to appear in theheaderContextMenuthat allows the end user to pick an advancedsearch operatorto use for this field.Once an operator has been chosen, the active operator is indicated by an operatorIconplaced within the field (you can alternatively cause the icon toalways be present). TheoperatorIconshows the same textual representation of the search operator as is used by theFormItem.allowExpressionsfeature. Clicking on the icon provides a second way to modify the search operator.This feature is enabled by default if DataSource.supportsAdvancedCriteria()is true, for all fields where it is normally possible to filter by typing in a search string. This excludes field types such as "date" or "boolean" which show specialized filter controls. UseListGridField.allowFilterOperatorsto disable this interface for individual fields, or setDataSourceField.canFilterto false to disallow filtering entirely for a field.Note that this feature is similar to allowFilterExpressions, which allows the end users to directly type in characters such as ">" to control filtering.allowFilterOperatorsis easier to use and more discoverable thanallowFilterExpressions, and also avoids the drawback where special characters like ">" cannot be used in filter values. However,allowFilterExpressionsallows users to make use of certain operators thatallowFilterOperatorsdoes not support, such as using the "betweenInclusive" operator by typing "5...10".When both allowfilterExpressionsandallowFilterOperatorsare set, filter expressions entered in to the edit-area are parsed and the operator automatically applied to theoperatorIcon.If allowFilterWindowis enabled another option,"Advanced Filtering", is added to the "Filter using" menu.- Returns:
- Current allowFilterOperators value. Default value is null
- See Also:
 
- 
setAllowFilterWindowAdds the ability for a user to define additional criteria above and beyond those expressed in thefilter editorvia aFilterBuilderwhich appears in a modal Window over the grid and can be accessed by various menus within the grid or triggered by external controls.Causes a menu item titled "Advanced Filtering"to appear in the"Filter using"menu show in theheaderContextMenuthat allows the end user to configure an advanced filter on the grid that can supplement thefilter editor. Note that the menu option will show even iffilter operatorsis disabled.To use this feature, the grid must be configured with a DataSource. In fact, this feature is enabled by default if the grid has aDataSourceand bothDataSource.supportsAdvancedCriteria()andallowFilterOperatorsare true. This default can be disabled by settingallowFilterWindowtofalse.This example shows the allowFilterWindowsetting in use.Note: this feature requires Smart GWT Pro or better. Enabling filter via AIforces this setting to true.- Parameters:
- allowFilterWindow- New allowFilterWindow value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getAllowFilterWindowAdds the ability for a user to define additional criteria above and beyond those expressed in thefilter editorvia aFilterBuilderwhich appears in a modal Window over the grid and can be accessed by various menus within the grid or triggered by external controls.Causes a menu item titled "Advanced Filtering"to appear in the"Filter using"menu show in theheaderContextMenuthat allows the end user to configure an advanced filter on the grid that can supplement thefilter editor. Note that the menu option will show even iffilter operatorsis disabled.To use this feature, the grid must be configured with a DataSource. In fact, this feature is enabled by default if the grid has aDataSourceand bothDataSource.supportsAdvancedCriteria()andallowFilterOperatorsare true. This default can be disabled by settingallowFilterWindowtofalse.This example shows the allowFilterWindowsetting in use.Note: this feature requires Smart GWT Pro or better. Enabling filter via AIforces this setting to true.- Returns:
- Current allowFilterWindow value. Default value is null
- See Also:
 
- 
setAllowRowSpanningShould cells in this grid be allowed to span multiple rows? If set totrue, thegetRowSpan()method will be called for every cell when rendering out the listGrid to determine how many rows the cell should span.See getRowSpan()for more details- Parameters:
- allowRowSpanning- New allowRowSpanning value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getAllowRowSpanningShould cells in this grid be allowed to span multiple rows? If set totrue, thegetRowSpan()method will be called for every cell when rendering out the listGrid to determine how many rows the cell should span.See getRowSpan()for more details- Returns:
- Current allowRowSpanning value. Default value is false
 
- 
setAlternateBodyStyleNameOptional css style to apply to the body ifalternateRecordStylesis true for this grid. If unsetbodyStyleNamewill be used to style the body regardless of thealternateRecordStylessetting.
 If this method is called after the component has been drawn/initialized: Update thealternateBodyStyleNamefor this listGrid.Note : This is an advanced setting - Parameters:
- alternateBodyStyleName- new body style name when showing alternateRecordStyles. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAlternateBodyStyleNameOptional css style to apply to the body ifalternateRecordStylesis true for this grid. If unsetbodyStyleNamewill be used to style the body regardless of thealternateRecordStylessetting.- Returns:
- Current alternateBodyStyleName value. Default value is null
- See Also:
 
- 
setAlternateFieldFrequencyThe number of consecutive columns to draw in the same style before alternating, whenalternateColumnStylesis true.- Parameters:
- alternateFieldFrequency- New alternateFieldFrequency value. Default value is 1
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAlternateFieldFrequencypublic int getAlternateFieldFrequency()The number of consecutive columns to draw in the same style before alternating, whenalternateColumnStylesis true.- Returns:
- Current alternateFieldFrequency value. Default value is 1
 
- 
setAlternateFieldStylesWhether alternating columns (or blocks of columns, depending onGridRenderer.alternateColumnFrequency) should be drawn in alternating styles, in order to create a vertical "ledger" effect for easier reading.If enabled, the cell style for alternate rows will have the GridRenderer.alternateColumnSuffixappended to it. See alsoGridRenderer.alternateRowStyles.- Parameters:
- alternateFieldStyles- New alternateFieldStyles value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAlternateFieldStylespublic boolean getAlternateFieldStyles()Whether alternating columns (or blocks of columns, depending onGridRenderer.alternateColumnFrequency) should be drawn in alternating styles, in order to create a vertical "ledger" effect for easier reading.If enabled, the cell style for alternate rows will have the GridRenderer.alternateColumnSuffixappended to it. See alsoGridRenderer.alternateRowStyles.- Returns:
- Current alternateFieldStyles value. Default value is false
 
- 
setAlternateFieldSuffixSuffix to append toalternate columns. Note that ifGridRenderer.alternateRowStylesis enabled, cells which fall into both an alternate row and column will have both suffixes appended - for example"cellDarkAltCol".- Parameters:
- alternateFieldSuffix- New alternateFieldSuffix value. Default value is "AltCol"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAlternateFieldSuffixSuffix to append toalternate columns. Note that ifGridRenderer.alternateRowStylesis enabled, cells which fall into both an alternate row and column will have both suffixes appended - for example"cellDarkAltCol".- Returns:
- Current alternateFieldSuffix value. Default value is "AltCol"
 
- 
setAlternateRecordFrequencyThe number of consecutive rows to draw in the same style before alternating, whenalternateRowStylesis true.- Parameters:
- alternateRecordFrequency- New alternateRecordFrequency value. Default value is 1
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAlternateRecordFrequencypublic int getAlternateRecordFrequency()The number of consecutive rows to draw in the same style before alternating, whenalternateRowStylesis true.- Returns:
- Current alternateRecordFrequency value. Default value is 1
 
- 
setAlternateRecordStylesWhether alternating rows (or blocks of rows, depending onGridRenderer.alternateRowFrequency) should be drawn in alternating styles, in order to create a "ledger" effect for easier reading.If enabled, the cell style for alternate rows will have the GridRenderer.alternateRowSuffixappended to it. See alsoGridRenderer.alternateColumnStyles.
 If this method is called after the component has been drawn/initialized: Setter foralternateRecordStyles- Parameters:
- alternateRecordStyles- New value for- this.alternateRecordStyles. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAlternateRecordStylesWhether alternating rows (or blocks of rows, depending onGridRenderer.alternateRowFrequency) should be drawn in alternating styles, in order to create a "ledger" effect for easier reading.If enabled, the cell style for alternate rows will have the GridRenderer.alternateRowSuffixappended to it. See alsoGridRenderer.alternateColumnStyles.- Returns:
- Current alternateRecordStyles value. Default value is false
- See Also:
 
- 
setAlternateRecordSuffixSuffix to append toalternate rows. Note that ifGridRenderer.alternateColumnStylesis enabled, cells which fall into both an alternate row and column will have both suffixes appended - for example"cellDarkAltCol".- Parameters:
- alternateRecordSuffix- New alternateRecordSuffix value. Default value is "Dark"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAlternateRecordSuffixSuffix to append toalternate rows. Note that ifGridRenderer.alternateColumnStylesis enabled, cells which fall into both an alternate row and column will have both suffixes appended - for example"cellDarkAltCol".- Returns:
- Current alternateRecordSuffix value. Default value is "Dark"
- See Also:
 
- 
setAlwaysShowEditorsWhen this attribute is set, editors will be appear to be present in every row of the grid, allowing the user to immediately start editing any cell, rather than showing up in a single record at a time.
 This attribute is only valid wheneditByCellis false.This setting has some limitations and is typically only used for simple grids with a limited set of fields and standard editors. - Not all formItem types are supported. Default editors for standard data types (text, boolean, date, datetime, integer and float) are all supported, but custom editorType, including CanvasItem based editors are not. Fields with an unsupported editor type will show static values for all rows other than the current edit row, though users can start editing these with a single click
- alwaysShowEditors:truegrids do not support showing different editor types for the same field in different rows
- In some cases there may be visual differences between the editor displayed in the edit row and the editor displayed in other rows.
- From a design
 perspective, this mode presents a very "busy-looking" UI,     which can made it harder to read the actual data.
 Functionally having      editEventset to "click" provides the same single-click to edit any cell user experience without the busy UI.
- In some cases there may be a performance penalty for writing out so many controls (editors for every cell of the grid).
 editEvent:"click", and, for boolean fields,ListGridField.canToggleNote : This is an advanced setting - Parameters:
- alwaysShowEditors- New alwaysShowEditors value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getAlwaysShowEditorsWhen this attribute is set, editors will be appear to be present in every row of the grid, allowing the user to immediately start editing any cell, rather than showing up in a single record at a time.
 This attribute is only valid wheneditByCellis false.This setting has some limitations and is typically only used for simple grids with a limited set of fields and standard editors. - Not all formItem types are supported. Default editors for standard data types (text, boolean, date, datetime, integer and float) are all supported, but custom editorType, including CanvasItem based editors are not. Fields with an unsupported editor type will show static values for all rows other than the current edit row, though users can start editing these with a single click
- alwaysShowEditors:truegrids do not support showing different editor types for the same field in different rows
- In some cases there may be visual differences between the editor displayed in the edit row and the editor displayed in other rows.
- From a design
 perspective, this mode presents a very "busy-looking" UI,     which can made it harder to read the actual data.
 Functionally having      editEventset to "click" provides the same single-click to edit any cell user experience without the busy UI.
- In some cases there may be a performance penalty for writing out so many controls (editors for every cell of the grid).
 editEvent:"click", and, for boolean fields,ListGridField.canToggle- Returns:
- Current alwaysShowEditors value. Default value is null
- See Also:
 
- 
setAlwaysShowOperatorIconpublic ListGrid setAlwaysShowOperatorIcon(Boolean alwaysShowOperatorIcon) throws IllegalStateException WhenallowFilterOperatorsis enabled, whether to show theoperatorIconfor all filterable fields, or only for fields where the user has explicitly chosen a search operator different from the default operator for the field.The default operator for a field is determined by autoFetchTextMatchStyleor by settingListGridField.filterOperatorfor a specific field.- Parameters:
- alwaysShowOperatorIcon- New alwaysShowOperatorIcon value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getAlwaysShowOperatorIconWhenallowFilterOperatorsis enabled, whether to show theoperatorIconfor all filterable fields, or only for fields where the user has explicitly chosen a search operator different from the default operator for the field.The default operator for a field is determined by autoFetchTextMatchStyleor by settingListGridField.filterOperatorfor a specific field.- Returns:
- Current alwaysShowOperatorIcon value. Default value is null
 
- 
setAnimateFolderEffectWhen animating folder opening / closing, this property can be set to apply an animated acceleration effect. This allows the animation speed to be "weighted", for example expanding or collapsing at a faster rate toward the beginning of the animation than at the end.For a ListGrid, this property applies when groupingis enabled.- Parameters:
- animateFolderEffect- New animateFolderEffect value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAnimateFolderEffectWhen animating folder opening / closing, this property can be set to apply an animated acceleration effect. This allows the animation speed to be "weighted", for example expanding or collapsing at a faster rate toward the beginning of the animation than at the end.For a ListGrid, this property applies when groupingis enabled.- Returns:
- Current animateFolderEffect value. Default value is null
 
- 
setAnimateFolderMaxRowsIfanimateFoldersis true for this grid, this number can be set to designate the maximum number of rows to animate at a time when opening / closing a folder.For a ListGrid, this property applies when groupingis enabled.- Parameters:
- animateFolderMaxRows- New animateFolderMaxRows value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAnimateFolderMaxRowsIfanimateFoldersis true for this grid, this number can be set to designate the maximum number of rows to animate at a time when opening / closing a folder.For a ListGrid, this property applies when groupingis enabled.- Returns:
- Current animateFolderMaxRows value. Default value is null
- See Also:
 
- 
setAnimateFoldersIf true, when folders are opened / closed children will be animated into view.For a ListGrid, this property applies when groupingis enabled.- Parameters:
- animateFolders- New animateFolders value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAnimateFoldersIf true, when folders are opened / closed children will be animated into view.For a ListGrid, this property applies when groupingis enabled.- Returns:
- Current animateFolders value. Default value is true
 
- 
setAnimateFolderSpeedWhen animating folder opening / closing, this property designates the speed of the animation in pixels shown (or hidden) per second. Takes precedence over theTreeGrid.animateFolderTimeproperty, which allows the developer to specify a duration for the animation rather than a speed.For a ListGrid, this property applies when groupingis enabled.- Parameters:
- animateFolderSpeed- New animateFolderSpeed value. Default value is 3000
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAnimateFolderSpeedpublic int getAnimateFolderSpeed()When animating folder opening / closing, this property designates the speed of the animation in pixels shown (or hidden) per second. Takes precedence over theTreeGrid.animateFolderTimeproperty, which allows the developer to specify a duration for the animation rather than a speed.For a ListGrid, this property applies when groupingis enabled.- Returns:
- Current animateFolderSpeed value. Default value is 3000
- See Also:
 
- 
setAnimateFolderTimeWhen animating folder opening / closing, ifTreeGrid.animateFolderSpeedis not set, this property designates the duration of the animation in ms.For a ListGrid, this property applies when groupingis enabled.- Parameters:
- animateFolderTime- New animateFolderTime value. Default value is 100
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAnimateFolderTimepublic int getAnimateFolderTime()When animating folder opening / closing, ifTreeGrid.animateFolderSpeedis not set, this property designates the duration of the animation in ms.For a ListGrid, this property applies when groupingis enabled.- Returns:
- Current animateFolderTime value. Default value is 100
- See Also:
 
- 
setAnimateRemoveRecordWhencanRemoveRecordsis enabled, should records be animated out of view when they are removed by the user?- Parameters:
- animateRemoveRecord- New animateRemoveRecord value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAnimateRemoveRecordWhencanRemoveRecordsis enabled, should records be animated out of view when they are removed by the user?- Returns:
- Current animateRemoveRecord value. Default value is true
 
- 
setAnimateRemoveSpeedWhenanimating record removal, this property designates the speed of the animation in pixels per second. Takes precedence over theanimateRemoveTimeproperty, which allows the developer to specify a duration for the animation rather than a speed.- Parameters:
- animateRemoveSpeed- New animateRemoveSpeed value. Default value is 200
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAnimateRemoveSpeedpublic int getAnimateRemoveSpeed()Whenanimating record removal, this property designates the speed of the animation in pixels per second. Takes precedence over theanimateRemoveTimeproperty, which allows the developer to specify a duration for the animation rather than a speed.- Returns:
- Current animateRemoveSpeed value. Default value is 200
- See Also:
 
- 
setAnimateRemoveTimeWhen animating record removal(see animateRemoveRecord), ifanimateRemoveSpeedis not set, this property designates the duration of the animation in ms.- Parameters:
- animateRemoveTime- New animateRemoveTime value. Default value is 100
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAnimateRemoveTimepublic int getAnimateRemoveTime()When animating record removal(see animateRemoveRecord), ifanimateRemoveSpeedis not set, this property designates the duration of the animation in ms.- Returns:
- Current animateRemoveTime value. Default value is 100
- See Also:
 
- 
setAnimateRollOverIf therollOverCanvasis enabled, setting this property totrueensures that when therollOverCanvasis displayed it is animated into view viaCanvas.animateShow(). Note that the animation effect may be customized viaCanvas.animateShowEffect,Canvas.animateShowTimeandCanvas.animateShowAccelerationset inrollOverCanvasProperties.Note : This is an advanced setting - Parameters:
- animateRollOver- New animateRollOver value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAnimateRollOverIf therollOverCanvasis enabled, setting this property totrueensures that when therollOverCanvasis displayed it is animated into view viaCanvas.animateShow(). Note that the animation effect may be customized viaCanvas.animateShowEffect,Canvas.animateShowTimeandCanvas.animateShowAccelerationset inrollOverCanvasProperties.- Returns:
- Current animateRollOver value. Default value is false
 
- 
setAnimateRollUnderIf therollUnderCanvasis enabled, setting this property totrueensures that when therollUnderCanvasis displayed it is animated into view viaCanvas.animateShow(). Note that the animation effect may be customized viaCanvas.animateShowEffect,Canvas.animateShowTimeandCanvas.animateShowAccelerationset inrollUnderCanvasProperties.Note : This is an advanced setting - Parameters:
- animateRollUnder- New animateRollUnder value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAnimateRollUnderIf therollUnderCanvasis enabled, setting this property totrueensures that when therollUnderCanvasis displayed it is animated into view viaCanvas.animateShow(). Note that the animation effect may be customized viaCanvas.animateShowEffect,Canvas.animateShowTimeandCanvas.animateShowAccelerationset inrollUnderCanvasProperties.- Returns:
- Current animateRollUnder value. Default value is false
- See Also:
 
- 
setAnimateSelectionIf theselectionCanvasis enabled, setting this property totrueensures that when theselectionCanvasis displayed it is animated into view viaCanvas.animateShow(). Note that the animation effect may be customized viaCanvas.animateShowEffect,Canvas.animateShowTimeandCanvas.animateShowAccelerationset inselectionCanvasProperties.Note : This is an advanced setting - Parameters:
- animateSelection- New animateSelection value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAnimateSelectionIf theselectionCanvasis enabled, setting this property totrueensures that when theselectionCanvasis displayed it is animated into view viaCanvas.animateShow(). Note that the animation effect may be customized viaCanvas.animateShowEffect,Canvas.animateShowTimeandCanvas.animateShowAccelerationset inselectionCanvasProperties.- Returns:
- Current animateSelection value. Default value is false
- See Also:
 
- 
setAnimateSelectionUnderIf theselectionUnderCanvasis enabled, setting this property totrueensures that when theselectionUnderCanvasis displayed it is animated into view viaCanvas.animateShow(). Note that the animation effect may be customized viaCanvas.animateShowEffect,Canvas.animateShowTimeandCanvas.animateShowAccelerationset inselectionUnderCanvasProperties.Note : This is an advanced setting - Parameters:
- animateSelectionUnder- New animateSelectionUnder value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAnimateSelectionUnderIf theselectionUnderCanvasis enabled, setting this property totrueensures that when theselectionUnderCanvasis displayed it is animated into view viaCanvas.animateShow(). Note that the animation effect may be customized viaCanvas.animateShowEffect,Canvas.animateShowTimeandCanvas.animateShowAccelerationset inselectionUnderCanvasProperties.- Returns:
- Current animateSelectionUnder value. Default value is false
- See Also:
 
- 
setApplyFormulaAfterSummaryIfListGridField.userFormulais set for some field, and this grid is showinggroup summariesor agrid summary, this property determines what field value should be present in those summary rows. Should the field's user-formula be applied to the calculated summary row (applyFormulaAfterSummarytrue), or should a standard grid or group summary be applied to the user-formula values displayed in the grid (applyFormulaAfterSummaryfalse)?May be overridden at the field level via ListGridField.applyAfterSummary- Parameters:
- applyFormulaAfterSummary- New applyFormulaAfterSummary value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getApplyFormulaAfterSummaryIfListGridField.userFormulais set for some field, and this grid is showinggroup summariesor agrid summary, this property determines what field value should be present in those summary rows. Should the field's user-formula be applied to the calculated summary row (applyFormulaAfterSummarytrue), or should a standard grid or group summary be applied to the user-formula values displayed in the grid (applyFormulaAfterSummaryfalse)?May be overridden at the field level via ListGridField.applyAfterSummary- Returns:
- Current applyFormulaAfterSummary value. Default value is false
 
- 
setApplyRowCountToLengthThis property allows developers to explicitly setResultSet.applyRowCountToLengthfor this grid's data object.If not explicitly specified this will be derived from canRequestRowCount- Parameters:
- applyRowCountToLength- New applyRowCountToLength value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getApplyRowCountToLengthThis property allows developers to explicitly setResultSet.applyRowCountToLengthfor this grid's data object.If not explicitly specified this will be derived from canRequestRowCount- Returns:
- Current applyRowCountToLength value. Default value is null
- See Also:
 
- 
setApplyRowNumberStyleIfshowRowNumbersis true, should we apply therowNumberStyleto therowNumberFieldNote : This is an advanced setting - Parameters:
- applyRowNumberStyle- New applyRowNumberStyle value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getApplyRowNumberStylepublic boolean getApplyRowNumberStyle()- Returns:
- Current applyRowNumberStyle value. Default value is true
 
- 
setApproximateRowCountFormatFormat for the string returned fromgetFormattedRowCount()whenrow count statusis"approximate".The variable rowCountis available for evaluation within this string and will be set to thecurrent row countas alocale-formatted number.- Parameters:
- approximateRowCountFormat- New approximateRowCountFormat value. Default value is "~${rowCount}"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getApproximateRowCountFormatFormat for the string returned fromgetFormattedRowCount()whenrow count statusis"approximate".The variable rowCountis available for evaluation within this string and will be set to thecurrent row countas alocale-formatted number.- Returns:
- Current approximateRowCountFormat value. Default value is "~${rowCount}"
- See Also:
 
- 
setAriaRoleARIA role for this ListGrid ifscreen reader modeis enabled.The WAI-Aria standards contain a number of roles and related attributes that could apply to data presented in a ListGrid or its subclasses. In order to make screenreader support as straightforward as possible we have built-in support for writing out appropriate aria roles and attributes on the listGrid and its component elements for a couple of standard modes, as well as providing override points allowing developers to explicitly specify the properties that get written out. The two "standard" ariaRoles supported for ListGrids are "grid" and "list". When ariaRole is set to "list"we write out the following standard properties by default:- rows have role set to "listitem"
- getRowAriaState()will return aria properties for- setsize,- posinset,- selected(for selected rows) and- expanded(for- expandedrows)
- Additionally, if screenReaderWriteRowLabelledByis true, rows will write out anaria-labelldbythat will cause ScreenReaders to read the column header and cell / row separators in addition to the cell content for the row
 When ariaRole is set to "grid"we write out the following standard properties by default:- aria-rowcountand- aria-colcountwill be specified on the listGrid itself
- The headerwill have rolerowandaria-rowindexset to 1
- Column header buttons will have role columnheader, andaria-colindexset to the appropriate value for the column. Additionallyaria-sortwill be specified to reflect the current sort-state for the field, and if the header menu is enabled,aria-haspopupwill betrue
- Rows within the grid body will have role
 row
- getRowAriaState()will return aria properties for- rowindex,- selected(for selected rows) and- expanded(for- expandedrows)
- Cells within rows will have role gridcell
 listGrid.ariaRole) and implementing custom handling for the following APIs:ListGrid listGrid.ariaRole,ariaState, .header / header buttons headerAriaRole,headerButtonAriaRole,ListGridField.headerButtonAriaRoleheaderButtonAriaState,ListGridField.headerButtonAriaStaterows rowRole,recordRowRoleProperty,rowAriaState,recordRowAriaStateProperty. To update row state at runtime, developers may redraw the grid or its body.cells cellRole,recordCellRoleProperty. To update cell state at runtime, developers may redraw the grid or its body.Note : This is an advanced setting - Overrides:
- setAriaRolein class- Canvas
- Parameters:
- ariaRole- New ariaRole value. Default value is "list"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- rows have role set to 
- 
getAriaRoleARIA role for this ListGrid ifscreen reader modeis enabled.The WAI-Aria standards contain a number of roles and related attributes that could apply to data presented in a ListGrid or its subclasses. In order to make screenreader support as straightforward as possible we have built-in support for writing out appropriate aria roles and attributes on the listGrid and its component elements for a couple of standard modes, as well as providing override points allowing developers to explicitly specify the properties that get written out. The two "standard" ariaRoles supported for ListGrids are "grid" and "list". When ariaRole is set to "list"we write out the following standard properties by default:- rows have role set to "listitem"
- getRowAriaState()will return aria properties for- setsize,- posinset,- selected(for selected rows) and- expanded(for- expandedrows)
- Additionally, if screenReaderWriteRowLabelledByis true, rows will write out anaria-labelldbythat will cause ScreenReaders to read the column header and cell / row separators in addition to the cell content for the row
 When ariaRole is set to "grid"we write out the following standard properties by default:- aria-rowcountand- aria-colcountwill be specified on the listGrid itself
- The headerwill have rolerowandaria-rowindexset to 1
- Column header buttons will have role columnheader, andaria-colindexset to the appropriate value for the column. Additionallyaria-sortwill be specified to reflect the current sort-state for the field, and if the header menu is enabled,aria-haspopupwill betrue
- Rows within the grid body will have role
 row
- getRowAriaState()will return aria properties for- rowindex,- selected(for selected rows) and- expanded(for- expandedrows)
- Cells within rows will have role gridcell
 listGrid.ariaRole) and implementing custom handling for the following APIs:ListGrid listGrid.ariaRole,ariaState, .header / header buttons headerAriaRole,headerButtonAriaRole,ListGridField.headerButtonAriaRoleheaderButtonAriaState,ListGridField.headerButtonAriaStaterows rowRole,recordRowRoleProperty,rowAriaState,recordRowAriaStateProperty. To update row state at runtime, developers may redraw the grid or its body.cells cellRole,recordCellRoleProperty. To update cell state at runtime, developers may redraw the grid or its body.- Overrides:
- getAriaRolein class- Canvas
- Returns:
- Current ariaRole value. Default value is "list"
- See Also:
 
- rows have role set to 
- 
setArrowKeyActionAction to perform when the listGrid has keyboard focus (but not editing focus) and a user presses the arrow keys to navigate around the grid.If canSelectCellsis true, navigation occurs by cell - the user can move to a new cell in any direction.
 IfcanSelectCellsis false, navigation typically occurs by row - the user can move up or down through the rows in the grid.For actions that fire events (click or doubleClick), both cell and record level events are fired (for example for arrowKeyAction "activate",ListGrid.cellDoubleClick()andListGrid.recordDoubleClick()are fired for the new position.
 Note that ifcanSelectCellsis false, the events will be fired as if a click or double click had occurred on the first cell whereListGridField.ignoreKeyboardClicksis not true.Possible actions are: - "select": select the next row or cell in the grid and call click handlers.
- "selectOnly": select the next row or cell in the grid without firing click handlers.
- "focus": move focus to the next row or cell in the grid without changing the selection or calling click handlers.
- "activate": select and activate the next row or cell in the list (calls- recordDoubleClickhandler)
- "none": no action
- 
 null: ifselectionAppearanceis "checkbox", behaves as if set to "focus"; otherwise, behaves as if set to "select"
 Note: If this grid is editable, behavior while editing is governed by the result of getArrowKeyEditAction().See also generateClickOnEnter,generateClickOnSpace,generateDoubleClickOnEnterandgenerateDoubleClickOnSpaceNote : This is an advanced setting - Parameters:
- arrowKeyAction- New arrowKeyAction value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getArrowKeyActionAction to perform when the listGrid has keyboard focus (but not editing focus) and a user presses the arrow keys to navigate around the grid.If canSelectCellsis true, navigation occurs by cell - the user can move to a new cell in any direction.
 IfcanSelectCellsis false, navigation typically occurs by row - the user can move up or down through the rows in the grid.For actions that fire events (click or doubleClick), both cell and record level events are fired (for example for arrowKeyAction "activate",ListGrid.cellDoubleClick()andListGrid.recordDoubleClick()are fired for the new position.
 Note that ifcanSelectCellsis false, the events will be fired as if a click or double click had occurred on the first cell whereListGridField.ignoreKeyboardClicksis not true.Possible actions are: - "select": select the next row or cell in the grid and call click handlers.
- "selectOnly": select the next row or cell in the grid without firing click handlers.
- "focus": move focus to the next row or cell in the grid without changing the selection or calling click handlers.
- "activate": select and activate the next row or cell in the list (calls- recordDoubleClickhandler)
- "none": no action
- 
 null: ifselectionAppearanceis "checkbox", behaves as if set to "focus"; otherwise, behaves as if set to "select"
 Note: If this grid is editable, behavior while editing is governed by the result of getArrowKeyEditAction().See also generateClickOnEnter,generateClickOnSpace,generateDoubleClickOnEnterandgenerateDoubleClickOnSpace- Returns:
- Current arrowKeyAction value. Default value is null
 
- 
setArrowKeyEditActionWhat to do when a user hits arrow key while editing a field?
 If not explicitly specifiedgetArrowKeyEditAction()will return an appropriate action depending on the field type.- Parameters:
- arrowKeyEditAction- New arrowKeyEditAction value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getArrowKeyEditActionWhat to do when a user hits arrow key while editing a field?
 If not explicitly specifiedgetArrowKeyEditAction()will return an appropriate action depending on the field type.- Returns:
- How should "Up" and "Down" arrow keypresses be handled when the user is editing an item in the grid. Returning "none" will cause the grid to take no action and allow default up/down arrow key behavior within the editor to proceed. Returning "editNext" will create an appropriate EditCompletionEvent("arrow_up" or "arrow_down" and cause the grid to start editing the previous or next row).Default behavior varies by item type. For items where up and down arrows have significant functionality to the editor this method returns "none", allowing that standard behavior to proceed. This includes: 
 - Multi line editors (such as TextAreaItems)
 - SelectItems
 - SpinnerItems
 For other items, the default return value will be "edit_next"To override these defaults, developers may specify an explicit arrowKeyEditAction at the grid, orfieldlevel. Default value is null
- See Also:
 
- 
setAsyncErrorCellValueThe value to display for cells when an error occurred during asynchronous computation.This is the grid-wide setting. ListGridField.asyncErrorCellValuecan override the grid setting for a specific field.- Parameters:
- asyncErrorCellValue- New asyncErrorCellValue value. Default value is "!"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAsyncErrorCellValueThe value to display for cells when an error occurred during asynchronous computation.This is the grid-wide setting. ListGridField.asyncErrorCellValuecan override the grid setting for a specific field.- Returns:
- Current asyncErrorCellValue value. Default value is "!"
- See Also:
 
- 
setAsynchGroupingPromptThe prompt to display while interactivity is blocked duringasynchronous grouping.- Parameters:
- asynchGroupingPrompt- New asynchGroupingPrompt value. Default value is "${loadingImage} Grouping data..."
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getAsynchGroupingPromptThe prompt to display while interactivity is blocked duringasynchronous grouping.- Returns:
- Current asynchGroupingPrompt value. Default value is "${loadingImage} Grouping data..."
- See Also:
 
- 
setAsyncMissingCellValueThe value to display for cells whose value was not computed by the previous asynchronous operation to compute it, or will not be computed by an asynchronous operation due to currently being disabled. For example, the previous asynchronous operation may have been canceled, or the grid may be displaying too many values to compute AI-generated values for a field.This is the grid-wide setting. ListGridField.asyncMissingCellValuecan override the grid setting for a specific field.- Parameters:
- asyncMissingCellValue- New asyncMissingCellValue value. Default value is "-"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAsyncMissingCellValueThe value to display for cells whose value was not computed by the previous asynchronous operation to compute it, or will not be computed by an asynchronous operation due to currently being disabled. For example, the previous asynchronous operation may have been canceled, or the grid may be displaying too many values to compute AI-generated values for a field.This is the grid-wide setting. ListGridField.asyncMissingCellValuecan override the grid setting for a specific field.- Returns:
- Current asyncMissingCellValue value. Default value is "-"
- See Also:
 
- 
setAutoCompleteWhether to do inline autoComplete in text fields during inline editing
 Overridden byListGridField.autoCompleteif specified. If unset picks up the default from the appropriate editor class (subclass of FormItem).- Parameters:
- autoComplete- New autoComplete value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAutoCompleteWhether to do inline autoComplete in text fields during inline editing
 Overridden byListGridField.autoCompleteif specified. If unset picks up the default from the appropriate editor class (subclass of FormItem).- Returns:
- Current autoComplete value. Default value is null
- See Also:
 
- 
setAutoConfirmSaveEditsFor editable listGrids, outstanding unsaved edits when the user performs a new filter or sort will be discarded by default. This flag determines whether we should save such edits automatically in this case. See alsoconfirmDiscardEdits, which allows the user to choose whether to save or discard the unsaved edits.- Parameters:
- autoConfirmSaveEdits- New autoConfirmSaveEdits value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAutoConfirmSaveEditsFor editable listGrids, outstanding unsaved edits when the user performs a new filter or sort will be discarded by default. This flag determines whether we should save such edits automatically in this case. See alsoconfirmDiscardEdits, which allows the user to choose whether to save or discard the unsaved edits.- Returns:
- Current autoConfirmSaveEdits value. Default value is false
- See Also:
 
- 
setAutoFetchDisplayMapIf true, for fields whereListGridField.optionDataSourceis specified, a valueMap will be automatically created by making aDataSource.fetchData()call against the specified dataSource and extracting a valueMap from the returned records based on the displayField and valueField.If set to false, valueMaps will not be automatically fetched. In this case, setting field.optionDataSource is effectively a shortcut for setting optionDataSource on the editor via ListGridField.editorProperties.Can also be disabled on a per-field basis with ListGridField.autoFetchDisplayMap.- Parameters:
- autoFetchDisplayMap- New autoFetchDisplayMap value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAutoFetchDisplayMapIf true, for fields whereListGridField.optionDataSourceis specified, a valueMap will be automatically created by making aDataSource.fetchData()call against the specified dataSource and extracting a valueMap from the returned records based on the displayField and valueField.If set to false, valueMaps will not be automatically fetched. In this case, setting field.optionDataSource is effectively a shortcut for setting optionDataSource on the editor via ListGridField.editorProperties.Can also be disabled on a per-field basis with ListGridField.autoFetchDisplayMap.- Returns:
- Current autoFetchDisplayMap value. Default value is true
- See Also:
- 
- ListGridField.getAutoFetchDisplayMap()
- com.smartgwt.client.widgets.grid.ListGridField#getOptionDataSource
 
 
- 
setAutoFetchRowCountDepending on whetherDataSource.progressiveLoadingis active, the exact count of available rows may not be available as part of the standard data fetch response - settingautoFetchRowCount:truewill cause a fetch for an accurate row count to be issued as soon as data arrives (from aprogressive dataSource response) without an accurate row count. This value will then be available for display in theRowRangeDisplaylabel.To allow users to request an accurate row count by clicking the RowRangeDisplayinstead of kicking off a row count fetch automatically, usecanRequestRowCount.The autoFetchRowCountvalue will be passed through to theResultSet data objectwhich is responsible for issuing the row count fetch(es) at appropriate times.- Parameters:
- autoFetchRowCount- New autoFetchRowCount value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAutoFetchRowCountpublic boolean getAutoFetchRowCount()Depending on whetherDataSource.progressiveLoadingis active, the exact count of available rows may not be available as part of the standard data fetch response - settingautoFetchRowCount:truewill cause a fetch for an accurate row count to be issued as soon as data arrives (from aprogressive dataSource response) without an accurate row count. This value will then be available for display in theRowRangeDisplaylabel.To allow users to request an accurate row count by clicking the RowRangeDisplayinstead of kicking off a row count fetch automatically, usecanRequestRowCount.The autoFetchRowCountvalue will be passed through to theResultSet data objectwhich is responsible for issuing the row count fetch(es) at appropriate times.- Returns:
- Current autoFetchRowCount value. Default value is false
 
- 
setAutoFitAllTextIf we're showing aheaderContextMenufor this grid, andcanAutoFitFieldsis true, this attribute will be shown as the menu item title for an item to perform a one-time autoFit of all visible fields via theautoFitField()method.- Parameters:
- autoFitAllText- New autoFitAllText value. Default value is "Auto Fit All Columns"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAutoFitAllTextIf we're showing aheaderContextMenufor this grid, andcanAutoFitFieldsis true, this attribute will be shown as the menu item title for an item to perform a one-time autoFit of all visible fields via theautoFitField()method.- Returns:
- Current autoFitAllText value. Default value is "Auto Fit All Columns"
 
- 
setAutoFitClipFieldsIfautoFitFieldWidthsis enabled and the calculated field sizes are wide enough that horizontal scrolling would be introduced, this attribute may be set to an array of fieldNames, causing those fields to be clipped rather than forcing horizontal scrollbars to appear.Note: If any frozen columnsare included in this list they will not be clipped.- Parameters:
- autoFitClipFields- New autoFitClipFields value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getAutoFitClipFieldsIfautoFitFieldWidthsis enabled and the calculated field sizes are wide enough that horizontal scrolling would be introduced, this attribute may be set to an array of fieldNames, causing those fields to be clipped rather than forcing horizontal scrollbars to appear.Note: If any frozen columnsare included in this list they will not be clipped.- Returns:
- Current autoFitClipFields value. Default value is null
 
- 
setAutoFitDataShould this ListGrid automatically expand to accommodate the size of records and fields?Valid settings are - "vertical": expand vertically to accommodate records.
- "horizontal": expand horizontally to accommodate fields.
- "both": expand horizontally and vertically to accommodate content.
 autoFitMaxHeight,autoFitMaxRecords,autoFitMaxWidth,autoFitMaxColumns.Note that this property causes the grid as a whole to expand to fit records or fields. To have the fields or records themselves expand to fit cell contents, see autoFitFieldWidthsandfixedRecordHeights.
 If this method is called after the component has been drawn/initialized: Setter forautoFitData.- Parameters:
- autoFitData- One of- "vertical",- "horizontal"or- "both". To disable auto fit behavior, pass in- null. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAutoFitDataShould this ListGrid automatically expand to accommodate the size of records and fields?Valid settings are - "vertical": expand vertically to accommodate records.
- "horizontal": expand horizontally to accommodate fields.
- "both": expand horizontally and vertically to accommodate content.
 autoFitMaxHeight,autoFitMaxRecords,autoFitMaxWidth,autoFitMaxColumns.Note that this property causes the grid as a whole to expand to fit records or fields. To have the fields or records themselves expand to fit cell contents, see autoFitFieldWidthsandfixedRecordHeights.- Returns:
- Current autoFitData value. Default value is null
 
- 
setAutoFitDateFieldsShould listGrids automatically size date fields to fit their values or titles? If set to"value", fields of type date will be rendered at the size specified bydefaultDateFieldWidth, (ordefaultEditableDateFieldWidthfor editable fields). This static value is appropriate for dates rendered with the standard short-date formatter. If set to"title"or"both", the drawn width of the title will be taken into account when sizing the column.This is achieved by enabling autoFitWidth:trueon date fields when this property is set to anything other than"none", setting theListGridField.autoFitWidthApproachto the value specified here and having logic ingetDefaultFieldWidth()pick up thedefaultDateFieldWidthordefaultEditableDateFieldWidthif appropriate.- Parameters:
- autoFitDateFields- New autoFitDateFields value. Default value is "value"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAutoFitDateFieldsShould listGrids automatically size date fields to fit their values or titles? If set to"value", fields of type date will be rendered at the size specified bydefaultDateFieldWidth, (ordefaultEditableDateFieldWidthfor editable fields). This static value is appropriate for dates rendered with the standard short-date formatter. If set to"title"or"both", the drawn width of the title will be taken into account when sizing the column.This is achieved by enabling autoFitWidth:trueon date fields when this property is set to anything other than"none", setting theListGridField.autoFitWidthApproachto the value specified here and having logic ingetDefaultFieldWidth()pick up thedefaultDateFieldWidthordefaultEditableDateFieldWidthif appropriate.- Returns:
- Current autoFitDateFields value. Default value is "value"
 
- 
setAutoFitExpandFieldThe field to expand ifautoFitFieldWidthsandautoFitFieldsFillViewportare enabled and auto-fitting will not fill all available horizontal space.If unset, will default to the text field with the longest DataSourceField.lengthif length is set, otherwise, the first text field with no width specified.Note that expanding frozen columnsis not supported.- Parameters:
- autoFitExpandField- New autoFitExpandField value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getAutoFitExpandFieldThe field to expand ifautoFitFieldWidthsandautoFitFieldsFillViewportare enabled and auto-fitting will not fill all available horizontal space.If unset, will default to the text field with the longest DataSourceField.lengthif length is set, otherwise, the first text field with no width specified.Note that expanding frozen columnsis not supported.- Returns:
- Current autoFitExpandField value. Default value is null
 
- 
setAutoFitExtraRecordsIfautoFitDatais set to"vertical"or"both", setting this property will cause the ListGrid body to size large enough to accommodate the actual data and also leave this many extra rows' worth of blank space below the last record. If a maximum size is specified viaautoFitMaxHeightorautoFitMaxRecords, it will still be respected. Once the data set is large enough to fill or exceed that space, this property no longer has an effect.
 If this method is called after the component has been drawn/initialized: Setter forautoFitExtraRecords.
- 
getAutoFitExtraRecordsIfautoFitDatais set to"vertical"or"both", setting this property will cause the ListGrid body to size large enough to accommodate the actual data and also leave this many extra rows' worth of blank space below the last record. If a maximum size is specified viaautoFitMaxHeightorautoFitMaxRecords, it will still be respected. Once the data set is large enough to fill or exceed that space, this property no longer has an effect.- Returns:
- Current autoFitExtraRecords value. Default value is null
 
- 
setAutoFitFieldsFillViewportpublic ListGrid setAutoFitFieldsFillViewport(Boolean autoFitFieldsFillViewport) throws IllegalStateException IfautoFitFieldWidthsis enabled, and extra space is available after autofitting all fields, should the grid automatically expand one field to fill the extra space.When enabled, the field to expand may be specified via autoFitExpandField.Note this logic will not expand a frozen column.- Parameters:
- autoFitFieldsFillViewport- New autoFitFieldsFillViewport value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getAutoFitFieldsFillViewportIfautoFitFieldWidthsis enabled, and extra space is available after autofitting all fields, should the grid automatically expand one field to fill the extra space.When enabled, the field to expand may be specified via autoFitExpandField.Note this logic will not expand a frozen column.- Returns:
- Current autoFitFieldsFillViewport value. Default value is true
 
- 
setAutoFitFieldTextIf we're showing aheaderContextMenufor this grid, and user-driven auto fit of fields is enabled viaListGridField.canAutoFitWidthorcanAutoFitFields, this attribute will be shown as the menu item title for an item to perform a one-time autoFit of the field to its title or content via a call toautoFitField().- Parameters:
- autoFitFieldText- New autoFitFieldText value. Default value is "Auto Fit"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAutoFitFieldTextIf we're showing aheaderContextMenufor this grid, and user-driven auto fit of fields is enabled viaListGridField.canAutoFitWidthorcanAutoFitFields, this attribute will be shown as the menu item title for an item to perform a one-time autoFit of the field to its title or content via a call toautoFitField().- Returns:
- Current autoFitFieldText value. Default value is "Auto Fit"
 
- 
setAutoFitFieldWidthsShould ListGrid fields autofit their widths to titles or content? This property may be overridden on a per-field basis viaListGridField.autoFitWidth. Developers may wish to consider disabling autoFit for fields known to have exceptionally long content as this can lead to large horizontal scrollbars and unwieldy UI.The autoFitWidthApproachcontrols whether fitting is to values, titles or both. This property may also be overridden on a per field basis.If field.widthis also set on the field, it will be taken as a minimum width.minFieldWidthwill also be respected.By default, the entire available width of the grid will still be used, by allocating any "extra" space to specific columns - see autoFitFieldsFillViewportfor details on controlling this behavior.When this feature is enabled, autofitting is active on an ongoing basis. Autofitting will be performed: - whenever the dataset is completely changed or rows are added or removed
- whenever a field which is autofitting is changed
-  on a manual call to autoFitField()orautoFitFields()
 canAutoFitFieldsis enabled.When autofitting to column values, getDefaultFieldWidth()will be called to determine the space required for a field's values. This method uses values from the rendered set of rows to calculate the required column width, which means the field width may still be smaller than values from non-rendered rows. SeeshowAllRecordsanddrawAheadRatio) to control incremental rendering of rows.Note that for icontype fields, theautoFitIconFieldsproperty setting may turn on auto-fit-width behavior for specific fields by default, even ifautoFitFieldWidthsis false for the grid as a whole.Using this feature has a performance penalty roughly comparable to always rendering one additional field per field where autofitting is enabled. Specifically, enabling it for all fields would be comparable to both doubling the number of fields and disabling horizontal incremental rendering. In a grid where only half the fields are normally visible and hence only half are normally rendered, this would be roughly 4 times slower overall.This performance penalty is a result of getDefaultFieldWidth()having to render out the data set offscreen and measure the rendered content - it does not apply for cases where this method can return a simple fixed values (as with icon fields).Which fields are currently autofitting is saved as part of the view stateof the ListGrid.Interaction with wrapping: If wrapping of cell valuesis enabled, autoFit behavior based oncell contentwill render fields wide enough to contain the unwrapped cell values. Ifwrapping of field titlesis enabled, when fitting to a title, a field will render wide enough to accommodate the wrapped title without clipping (so wide enough for the natural wrap-point / longest word or unwrappable string).Note that, if you just want to autofit specific fields, rather than trying to achieve cascading from grid-level settings with specific field overrides, the quick, single setting to use is ListGridField.autoFit.
 If this method is called after the component has been drawn/initialized: Setter forautoFitFieldWidths. Modifies the default auto-fit-width behavior for fields in this grid. Note that this may be overridden at the field level viaListGridField.autoFitWidth.- Parameters:
- autoFitFieldWidths- New value for autoFitFieldWidths. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getAutoFitFieldWidthsShould ListGrid fields autofit their widths to titles or content? This property may be overridden on a per-field basis viaListGridField.autoFitWidth. Developers may wish to consider disabling autoFit for fields known to have exceptionally long content as this can lead to large horizontal scrollbars and unwieldy UI.The autoFitWidthApproachcontrols whether fitting is to values, titles or both. This property may also be overridden on a per field basis.If field.widthis also set on the field, it will be taken as a minimum width.minFieldWidthwill also be respected.By default, the entire available width of the grid will still be used, by allocating any "extra" space to specific columns - see autoFitFieldsFillViewportfor details on controlling this behavior.When this feature is enabled, autofitting is active on an ongoing basis. Autofitting will be performed: - whenever the dataset is completely changed or rows are added or removed
- whenever a field which is autofitting is changed
-  on a manual call to autoFitField()orautoFitFields()
 canAutoFitFieldsis enabled.When autofitting to column values, getDefaultFieldWidth()will be called to determine the space required for a field's values. This method uses values from the rendered set of rows to calculate the required column width, which means the field width may still be smaller than values from non-rendered rows. SeeshowAllRecordsanddrawAheadRatio) to control incremental rendering of rows.Note that for icontype fields, theautoFitIconFieldsproperty setting may turn on auto-fit-width behavior for specific fields by default, even ifautoFitFieldWidthsis false for the grid as a whole.Using this feature has a performance penalty roughly comparable to always rendering one additional field per field where autofitting is enabled. Specifically, enabling it for all fields would be comparable to both doubling the number of fields and disabling horizontal incremental rendering. In a grid where only half the fields are normally visible and hence only half are normally rendered, this would be roughly 4 times slower overall.This performance penalty is a result of getDefaultFieldWidth()having to render out the data set offscreen and measure the rendered content - it does not apply for cases where this method can return a simple fixed values (as with icon fields).Which fields are currently autofitting is saved as part of the view stateof the ListGrid.Interaction with wrapping: If wrapping of cell valuesis enabled, autoFit behavior based oncell contentwill render fields wide enough to contain the unwrapped cell values. Ifwrapping of field titlesis enabled, when fitting to a title, a field will render wide enough to accommodate the wrapped title without clipping (so wide enough for the natural wrap-point / longest word or unwrappable string).Note that, if you just want to autofit specific fields, rather than trying to achieve cascading from grid-level settings with specific field overrides, the quick, single setting to use is ListGridField.autoFit.- Returns:
- Current autoFitFieldWidths value. Default value is null
 
- 
setAutoFitHeaderHeightsIf this property is set to true, header buttons for eitherfieldsorheader spanswill automatically expand to accommodate their titles vertically. This means if you have a "tall" title - typically a long string whereListGridField.wrapis set to true such that you end up with several lines of text - the button will render large enough to accommodate it. If necessary this will cause the header for the grid as a whole to expand beyond the specifiedheaderHeight.Note that you need not set HeaderSpan.heightorheaderSpanHeightif you set this property, but if you do, they will be used as minimum values.- Parameters:
- autoFitHeaderHeights- New autoFitHeaderHeights value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getAutoFitHeaderHeightsIf this property is set to true, header buttons for eitherfieldsorheader spanswill automatically expand to accommodate their titles vertically. This means if you have a "tall" title - typically a long string whereListGridField.wrapis set to true such that you end up with several lines of text - the button will render large enough to accommodate it. If necessary this will cause the header for the grid as a whole to expand beyond the specifiedheaderHeight.Note that you need not set HeaderSpan.heightorheaderSpanHeightif you set this property, but if you do, they will be used as minimum values.- Returns:
- Current autoFitHeaderHeights value. Default value is null
 
- 
setAutoFitIconFieldsSmart GWT listGrids have special logic to automatically size fields that are displayed as an icon - that is fields withtype:"icon", fields displaying onlyvalue icons, and boolean fields (which are rendered as a checkmark type icon by default.This attribute controls this behavior - governing whether icon fields should be sized to fit their content (icon), title, or whether to disable this behavior. Setting this value to "title"or"iconWidth"will causeListGridField.autoFitWidthto be enabled by default for all icon fields with theListGridField.autoFitWidthApproachset to"value"or"both"as appropriate. Note that the width required for the icons is calculated bygetDefaultFieldWidth()which performs a simple calculation based on the specified icon width for these types of fields.This setting governs default behavior for icon fields - for specific fields within a grid, this default behavior can be overridden by setting an explicit ListGridField.widthor explicitly enablingListGridField.autoFitWidthand settingListGridField.autoFitWidthApproachon the field in question.- Parameters:
- autoFitIconFields- New autoFitIconFields value. Default value is "title"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAutoFitIconFieldsSmart GWT listGrids have special logic to automatically size fields that are displayed as an icon - that is fields withtype:"icon", fields displaying onlyvalue icons, and boolean fields (which are rendered as a checkmark type icon by default.This attribute controls this behavior - governing whether icon fields should be sized to fit their content (icon), title, or whether to disable this behavior. Setting this value to "title"or"iconWidth"will causeListGridField.autoFitWidthto be enabled by default for all icon fields with theListGridField.autoFitWidthApproachset to"value"or"both"as appropriate. Note that the width required for the icons is calculated bygetDefaultFieldWidth()which performs a simple calculation based on the specified icon width for these types of fields.This setting governs default behavior for icon fields - for specific fields within a grid, this default behavior can be overridden by setting an explicit ListGridField.widthor explicitly enablingListGridField.autoFitWidthand settingListGridField.autoFitWidthApproachon the field in question.- Returns:
- Current autoFitIconFields value. Default value is "title"
- See Also:
 
- 
setAutoFitMaxColumnsIfautoFitDatais set to"horizontal"or"both"this property provides the maximum number of columns for which the ListGrid will expand. If more columns are present, scrolling will be introduced to reach them as normal. If unset the ListGrid will expand to accommodate as many columns as are defined for the grid.
 If this method is called after the component has been drawn/initialized: Setter forautoFitMaxColumns.
- 
getAutoFitMaxColumnspublic int getAutoFitMaxColumns()IfautoFitDatais set to"horizontal"or"both"this property provides the maximum number of columns for which the ListGrid will expand. If more columns are present, scrolling will be introduced to reach them as normal. If unset the ListGrid will expand to accommodate as many columns as are defined for the grid.- Returns:
- Current autoFitMaxColumns value. Default value is 50
 
- 
setAutoFitMaxHeightIfautoFitDatais set to"vertical"or"both"this property provides an upper limit on how far the ListGrid will expand vertically to accommodate its content. If content exceeds this height, scrollbars will be introduced as usual. In addition to this property,autoFitMaxRecordsallows you to limit vertical expansion based on the number of rows to be rendered.Note: Unlike autoFitMaxWidth, this property cannot be set to a string percentage value; it must be a numeric pixel value ornull.
 If this method is called after the component has been drawn/initialized: Setter forautoFitMaxHeight.
- 
getAutoFitMaxHeightIfautoFitDatais set to"vertical"or"both"this property provides an upper limit on how far the ListGrid will expand vertically to accommodate its content. If content exceeds this height, scrollbars will be introduced as usual. In addition to this property,autoFitMaxRecordsallows you to limit vertical expansion based on the number of rows to be rendered.Note: Unlike autoFitMaxWidth, this property cannot be set to a string percentage value; it must be a numeric pixel value ornull.- Returns:
- Current autoFitMaxHeight value. Default value is null
 
- 
setAutoFitMaxRecordsIfautoFitDatais set to"vertical"or"both"this property provides the maximum number of records for which the ListGrid will expand. If more records are present, scrolling will be introduced to reach them as normal. If unset, by default the ListGrid will expand to accommodate as many records as are present.
 If this method is called after the component has been drawn/initialized: Setter forautoFitMaxRecords.
- 
getAutoFitMaxRecordspublic int getAutoFitMaxRecords()IfautoFitDatais set to"vertical"or"both"this property provides the maximum number of records for which the ListGrid will expand. If more records are present, scrolling will be introduced to reach them as normal. If unset, by default the ListGrid will expand to accommodate as many records as are present.- Returns:
- Current autoFitMaxRecords value. Default value is 50
 
- 
setAutoFitMaxWidthIfautoFitDatais set to"horizontal"or"both"this property provides an upper limit on how far the ListGrid will expand horizontally to accommodate its content. Value may be specified as a numeric pixel value or a percentage value.If content exceeds this width, scrollbars will be introduced as usual. In addition to this property, autoFitMaxColumnsallows you to limit horizontal expansion based on the number of columns to be rendered.
 If this method is called after the component has been drawn/initialized: Setter forautoFitMaxWidth.
- 
getAutoFitMaxWidthIfautoFitDatais set to"horizontal"or"both"this property provides an upper limit on how far the ListGrid will expand horizontally to accommodate its content. Value may be specified as a numeric pixel value or a percentage value.If content exceeds this width, scrollbars will be introduced as usual. In addition to this property, autoFitMaxColumnsallows you to limit horizontal expansion based on the number of columns to be rendered.- Returns:
- Returns the autoFitMaxWidth. Note that this method always returns an integer value - autoFitMaxWidth specified as a percentage will be resolved to a pixel value before being returned. Default value is null
 
- 
setAutoFitMaxWidthIfautoFitDatais set to"horizontal"or"both"this property provides an upper limit on how far the ListGrid will expand horizontally to accommodate its content. Value may be specified as a numeric pixel value or a percentage value.If content exceeds this width, scrollbars will be introduced as usual. In addition to this property, autoFitMaxColumnsallows you to limit horizontal expansion based on the number of columns to be rendered.
 If this method is called after the component has been drawn/initialized: Setter forautoFitMaxWidth.
- 
getAutoFitMaxWidthAsStringIfautoFitDatais set to"horizontal"or"both"this property provides an upper limit on how far the ListGrid will expand horizontally to accommodate its content. Value may be specified as a numeric pixel value or a percentage value.If content exceeds this width, scrollbars will be introduced as usual. In addition to this property, autoFitMaxColumnsallows you to limit horizontal expansion based on the number of columns to be rendered.- Returns:
- Returns the autoFitMaxWidth. Note that this method always returns an integer value - autoFitMaxWidth specified as a percentage will be resolved to a pixel value before being returned. Default value is null
 
- 
setAutoFitTimeFieldsShould listGrids automatically size time fields to fit their values or titles? If set to"value", fields of type time will be rendered at the size specified bydefaultTimeFieldWidth. This static value is appropriate for dates rendered with the standard time formatter. If set to"title"or"both", the drawn width of the title will be taken into account when sizing the column.This is achieved by enabling autoFitWidth:trueon date fields when this property is set to anything other than"none", setting theListGridField.autoFitWidthApproachto the value specified here and having logic ingetDefaultFieldWidth()pick up thedefaultTimeFieldWidthif appropriate.- Parameters:
- autoFitTimeFields- New autoFitTimeFields value. Default value is "value"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAutoFitTimeFieldsShould listGrids automatically size time fields to fit their values or titles? If set to"value", fields of type time will be rendered at the size specified bydefaultTimeFieldWidth. This static value is appropriate for dates rendered with the standard time formatter. If set to"title"or"both", the drawn width of the title will be taken into account when sizing the column.This is achieved by enabling autoFitWidth:trueon date fields when this property is set to anything other than"none", setting theListGridField.autoFitWidthApproachto the value specified here and having logic ingetDefaultFieldWidth()pick up thedefaultTimeFieldWidthif appropriate.- Returns:
- Current autoFitTimeFields value. Default value is "value"
 
- 
setAutoFitWidthApproachWhen a user requests column autofitting via theheader context menuor via amouse gesture, what autofit approach is used.For information about auto-fitting specific fields, see ListGridField.autoFit.
 If this method is called after the component has been drawn/initialized: Setter for theautoFitWidthApproach.- Parameters:
- autoFitWidthApproach- new AutoFitWidth approach. Default value is "value"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getAutoFitWidthApproachWhen a user requests column autofitting via theheader context menuor via amouse gesture, what autofit approach is used.For information about auto-fitting specific fields, see ListGridField.autoFit.- Returns:
- Current autoFitWidthApproach value. Default value is "value"
 
- 
setAutoPersistViewStateSetting this property to a non-null value will enable automatic saving ofview stateto offline storage. This saved view state will then be restored automatically when the user visits the page again.Note: Smart GWT Pro users, may also be interested in the canSaveSearchesfeature. This uses theSaved Search subsystemto allow users to explicitly store and apply multiple named views or "saved searches". Each saved search includes thefull view statefor the grid by default.autoPersistViewStatemay be set to a list ofview statepartsthat should be automatically persisted into offline storage when changed.This feature saves the derived state whenever the grid's view state changes due to user interaction (see ListGrid.viewStateChanged()), and restores the saved state from offline storage when the grid is drawn.The state is saved to offline storage using the grid's locatoras the key. See Locator details below.Note that autoPersistViewStateshould only be set on specific listGrid instances, and never as a default value for the class by changing the ListGrid defaults. Enabling this feature as a default would be an invalid usage as it would apply to listgrids (and subclasses of ListGrid) created and re-used internally by framework features as well as those explicitly created by application code.The current saved value can be retrieved or cleared by calling getSavedViewState()orclearSavedViewState()respectively.Locator details The grid must have a stable locator so that previous state can be retrieved during initial draw and saved back into the same place. If the grid has an explicit IDthe locator will always be stable. Setting an explicit ID on a known parent of the grid can also lead to a stable ID as described in theBest Practices section of Using Selenium Scripts.For purposes of this feature the top-level parent of the grid must have an explicit ID. Additional details on locators and their use can be found in AutoTestandLocatorStrategy.- Parameters:
- autoPersistViewState- New autoPersistViewState value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAutoPersistViewStateSetting this property to a non-null value will enable automatic saving ofview stateto offline storage. This saved view state will then be restored automatically when the user visits the page again.Note: Smart GWT Pro users, may also be interested in the canSaveSearchesfeature. This uses theSaved Search subsystemto allow users to explicitly store and apply multiple named views or "saved searches". Each saved search includes thefull view statefor the grid by default.autoPersistViewStatemay be set to a list ofview statepartsthat should be automatically persisted into offline storage when changed.This feature saves the derived state whenever the grid's view state changes due to user interaction (see ListGrid.viewStateChanged()), and restores the saved state from offline storage when the grid is drawn.The state is saved to offline storage using the grid's locatoras the key. See Locator details below.Note that autoPersistViewStateshould only be set on specific listGrid instances, and never as a default value for the class by changing the ListGrid defaults. Enabling this feature as a default would be an invalid usage as it would apply to listgrids (and subclasses of ListGrid) created and re-used internally by framework features as well as those explicitly created by application code.The current saved value can be retrieved or cleared by calling getSavedViewState()orclearSavedViewState()respectively.Locator details The grid must have a stable locator so that previous state can be retrieved during initial draw and saved back into the same place. If the grid has an explicit IDthe locator will always be stable. Setting an explicit ID on a known parent of the grid can also lead to a stable ID as described in theBest Practices section of Using Selenium Scripts.For purposes of this feature the top-level parent of the grid must have an explicit ID. Additional details on locators and their use can be found in AutoTestandLocatorStrategy.- Returns:
- Current autoPersistViewState value. Default value is null
- See Also:
 
- 
setAutoSaveEditsIf this ListGrid is editable, should edits be saved out when the user finishes editing a row (or a cell ifsaveByCellis true).The default of trueindicates that edits will beautomatically savedas the user navigates through the grid and/orhits 'Enter'to end editing. See theGrid Editingoverview for details.Setting autoSaveEditsfalse creates a "mass update" / "mass delete" interaction where edits will be retained for all edited cells (across rows if appropriate) untilsaveEdits()is called to save a particular row, orsaveAllEdits()is called to save all changes in a batch.Note: when listGrid groupingis enabled, or when working with hierarchical data in aTreeGrid, users have the option to hide records from view by collapsing the parent folder or group. This, in conjunction withautoSaveEditsbeing set tofalsecan lead to a case where a user is unable to save edits due to validation errors on hidden rows. Therefore we recommend developers consider having validators in place such that errors are caught and displayed to the user on change or editor exit rather than being caught only when saving is attempted. If it's not possible for all validation to be performed immediately on row exit, we recommend that a different UI design be used that does not involveautoSaveEditsbeing set tofalse.- Parameters:
- autoSaveEdits- New autoSaveEdits value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getAutoSaveEditsIf this ListGrid is editable, should edits be saved out when the user finishes editing a row (or a cell ifsaveByCellis true).The default of trueindicates that edits will beautomatically savedas the user navigates through the grid and/orhits 'Enter'to end editing. See theGrid Editingoverview for details.Setting autoSaveEditsfalse creates a "mass update" / "mass delete" interaction where edits will be retained for all edited cells (across rows if appropriate) untilsaveEdits()is called to save a particular row, orsaveAllEdits()is called to save all changes in a batch.Note: when listGrid groupingis enabled, or when working with hierarchical data in aTreeGrid, users have the option to hide records from view by collapsing the parent folder or group. This, in conjunction withautoSaveEditsbeing set tofalsecan lead to a case where a user is unable to save edits due to validation errors on hidden rows. Therefore we recommend developers consider having validators in place such that errors are caught and displayed to the user on change or editor exit rather than being caught only when saving is attempted. If it's not possible for all validation to be performed immediately on row exit, we recommend that a different UI design be used that does not involveautoSaveEditsbeing set tofalse.- Returns:
- Current autoSaveEdits value. Default value is true
- See Also:
 
- 
setAutoSizeHeaderSpansIf this listGrid has specifiedheaderSpans, setting this attribute to true will cause spans to expand to accommodate long titles if necessary.- Parameters:
- autoSizeHeaderSpans- New autoSizeHeaderSpans value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getAutoSizeHeaderSpansIf this listGrid has specifiedheaderSpans, setting this attribute to true will cause spans to expand to accommodate long titles if necessary.- Returns:
- Current autoSizeHeaderSpans value. Default value is false
 
- 
getBackgroundComponentNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.Has no effect unless showBackgroundComponentsistrue.Canvas created and embedded in the body behind a given record. When ListGridRecord.backgroundComponentis set, this autoChild canvas will be constructed (if listGridRecord.backgroundComponent is not already a Canvas) and its properties combined with those of listGridRecord.backgroundComponent and then displayed behind a specific record in the page's z-order, meaning it will only be visible if the cell styling is transparent.- Returns:
- null
 
- 
setBadFormulaResultValueIf the result of a formula evaluation is invalid (specifically, if isNaN(result)==true), badFormulaResultValue is displayed instead. The default value is ".".- Parameters:
- badFormulaResultValue- New badFormulaResultValue value. Default value is "."
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getBadFormulaResultValueIf the result of a formula evaluation is invalid (specifically, if isNaN(result)==true), badFormulaResultValue is displayed instead. The default value is ".".- Returns:
- Current badFormulaResultValue value. Default value is "."
- See Also:
 
- 
setBaseStylebase cell stylefor this listGrid. If this property is unset, base style may be derived fromnormalBaseStyleortallBaseStyleas described ingetBaseStyle().See CellStyleSuffixesfor details on how stateful suffixes are combined with the base style to generate stateful cell styles.- Parameters:
- baseStyle- New baseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getBaseStylebase cell stylefor this listGrid. If this property is unset, base style may be derived fromnormalBaseStyleortallBaseStyleas described ingetBaseStyle().See CellStyleSuffixesfor details on how stateful suffixes are combined with the base style to generate stateful cell styles.- Returns:
- Return the base styleName for this cell.  Has the following implementation by default: - If this.editFailedBaseStyleis defined, and the cell is displaying a validation error return this value.
- If this.editFailedPendingStyleis defined, and the cell is displaying an edit value that has not yet been saved (seeautoSaveEdits) return this value.
- Otherwise return
 record[listGrid.recordBaseStyleProperty], if defined, otherwisefield.baseStyle.
 baseStyleis specified this will be used. Otherwise for grids showing fixed height rows which matchnormalCellHeightnormalBaseStylewill be used. For grids with variable, or modified cell heights,tallBaseStylewill be used.Note also that enabling fastCellUpdateswill cause thetallBaseStyleto be used rather thannormalBaseStyle.As noted under enforceVClipping, cell content which renders taller than the available space within a cell may cause rows to expand even iffixedRecordHeightsis true. This can lead to misaligned rows when frozen columns are used. Developers should be aware that changing cell styling such that there is increased borders or padding will reduce the available space for content within the specified cell height, making this scenario more common. To fix this, specify a larger cellHeight, or set enforceVClipping to true.Note: This is an override point.. Default value is null 
- If 
- See Also:
 
- 
setBlockingRowCountFetchIf specified, this attribute will be applied to this grid'sdata objectfor dataBound grids.- Parameters:
- blockingRowCountFetch- New blockingRowCountFetch value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getBlockingRowCountFetchIf specified, this attribute will be applied to this grid'sdata objectfor dataBound grids.- Returns:
- Current blockingRowCountFetch value. Default value is null
- See Also:
 
- 
setBodyBackgroundColorBackground color applied to the ListGrid body (that is, the area of the grid where data values are rendered).
 Note that this will typically not be visible to the user unless there are few enough rows that there is visible space in the body below the last row. To style data cells, overridebaseStyleinstead.- Parameters:
- bodyBackgroundColor- New bodyBackgroundColor value. Default value is "white"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getBodyBackgroundColorBackground color applied to the ListGrid body (that is, the area of the grid where data values are rendered).
 Note that this will typically not be visible to the user unless there are few enough rows that there is visible space in the body below the last row. To style data cells, overridebaseStyleinstead.- Returns:
- Current bodyBackgroundColor value. Default value is "white"
- See Also:
 
- 
setBodyOverflowOverflow setting for the "body", that is, the area of the grid where data values are rendered.This is a very advanced setting which is typically only changed by subclasses of ListGrid which never show a header. To achieve auto-fitting, instead use properties such as autoFitData,autoFitFieldWidthsandfixedRecordHeights.
 If this method is called after the component has been drawn/initialized: Update thebodyOverflowfor this listGrid.Note : This is an advanced setting - Parameters:
- bodyOverflow- new overflow setting for the body. Default value is Canvas.AUTO
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getBodyOverflowOverflow setting for the "body", that is, the area of the grid where data values are rendered.This is a very advanced setting which is typically only changed by subclasses of ListGrid which never show a header. To achieve auto-fitting, instead use properties such as autoFitData,autoFitFieldWidthsandfixedRecordHeights.- Returns:
- Current bodyOverflow value. Default value is Canvas.AUTO
- See Also:
 
- 
setBodyStyleNameCSS style used for the body of this grid. If applying a background-color to the body via a CSS style applied using this property, be sure to setbodyBackgroundColortonull.
 If this method is called after the component has been drawn/initialized: Update thebodyStyleNamefor this listGrid.- Parameters:
- bodyStyleName- new body style name. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getBodyStyleNameCSS style used for the body of this grid. If applying a background-color to the body via a CSS style applied using this property, be sure to setbodyBackgroundColortonull.- Returns:
- Current bodyStyleName value. Default value is null
- See Also:
 
- 
setBooleanBaseStyleAn optional CSS style to apply to the checkbox image. If supplied, and the checkbox is enabled, the base style is suffixed with "True", "False", or "Partial" if the checkbox is selected, unselected, or partially selected; if the checkbox is disabled, the suffix is "TrueDisabled", "FalseDisabled", or "PartialDisabled".NOTE: This attribute is not supported by TreeGrid.Note : This is an advanced setting - Parameters:
- booleanBaseStyle- New booleanBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getBooleanBaseStyleAn optional CSS style to apply to the checkbox image. If supplied, and the checkbox is enabled, the base style is suffixed with "True", "False", or "Partial" if the checkbox is selected, unselected, or partially selected; if the checkbox is disabled, the suffix is "TrueDisabled", "FalseDisabled", or "PartialDisabled".NOTE: This attribute is not supported by TreeGrid.- Returns:
- Current booleanBaseStyle value. Default value is null
- See Also:
 
- 
setBooleanFalseImageImage to display for a false value in a boolean field. Defaultnullvalue or the special value "blank" means no image will be displayed.To turn this off explicitly set ListGridField.suppressValueIconto trueIf this, booleanTrueImageandbooleanPartialImageare unset, this will be set to the defaultCheckboxItem.uncheckedImage.Spritingcan be used for this image, by setting this property to aSCSpriteConfigformatted string. Alternatively developers can omit this property and instead use CSS directly in thebooleanBaseStyleproperty to provide a "boolean false" appearance.Note : This is an advanced setting - Parameters:
- booleanFalseImage- New booleanFalseImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getBooleanFalseImageImage to display for a false value in a boolean field. Defaultnullvalue or the special value "blank" means no image will be displayed.To turn this off explicitly set ListGridField.suppressValueIconto trueIf this, booleanTrueImageandbooleanPartialImageare unset, this will be set to the defaultCheckboxItem.uncheckedImage.Spritingcan be used for this image, by setting this property to aSCSpriteConfigformatted string. Alternatively developers can omit this property and instead use CSS directly in thebooleanBaseStyleproperty to provide a "boolean false" appearance.- Returns:
- Current booleanFalseImage value. Default value is null
- See Also:
 
- 
setBooleanImageHeightHeight for thebooleanTrueImage,booleanFalseImageandbooleanPartialImage. Note: IfbooleanTrueImageis unset, theCheckboxItem.checkedImagewill be used to indicate a true value in a boolean field. In this case this property is ignored in favor ofCheckboxItem.valueIconHeight.Note : This is an advanced setting - Parameters:
- booleanImageHeight- New booleanImageHeight value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getBooleanImageHeightpublic int getBooleanImageHeight()Height for thebooleanTrueImage,booleanFalseImageandbooleanPartialImage. Note: IfbooleanTrueImageis unset, theCheckboxItem.checkedImagewill be used to indicate a true value in a boolean field. In this case this property is ignored in favor ofCheckboxItem.valueIconHeight.- Returns:
- Current booleanImageHeight value. Default value is 16
- See Also:
 
- 
setBooleanImageWidthWidth for thebooleanTrueImage,booleanFalseImageandbooleanPartialImage. Note: IfbooleanTrueImageis unset, theCheckboxItem.checkedImagewill be used to indicate a true value in a boolean field. In this case this property is ignored in favor ofCheckboxItem.valueIconWidth.Note : This is an advanced setting - Parameters:
- booleanImageWidth- New booleanImageWidth value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getBooleanImageWidthpublic int getBooleanImageWidth()Width for thebooleanTrueImage,booleanFalseImageandbooleanPartialImage. Note: IfbooleanTrueImageis unset, theCheckboxItem.checkedImagewill be used to indicate a true value in a boolean field. In this case this property is ignored in favor ofCheckboxItem.valueIconWidth.- Returns:
- Current booleanImageWidth value. Default value is 16
- See Also:
 
- 
setBooleanPartialImageImage to display for a partially true value in a boolean field (typically selection). The special value "blank" means that no image will be shown.To turn this off explicitly set ListGridField.suppressValueIconto true.If this, booleanTrueImageandbooleanFalseImageare unset, this will be set to the defaultCheckboxItem.partialSelectedImage.Spritingcan be used for this image, by setting this property to aSCSpriteConfigformatted string. Alternatively developers can omit this property and instead use CSS directly in thebooleanBaseStyleproperty to provide a "boolean true" appearance.Note : This is an advanced setting - Parameters:
- booleanPartialImage- New booleanPartialImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getBooleanPartialImageImage to display for a partially true value in a boolean field (typically selection). The special value "blank" means that no image will be shown.To turn this off explicitly set ListGridField.suppressValueIconto true.If this, booleanTrueImageandbooleanFalseImageare unset, this will be set to the defaultCheckboxItem.partialSelectedImage.Spritingcan be used for this image, by setting this property to aSCSpriteConfigformatted string. Alternatively developers can omit this property and instead use CSS directly in thebooleanBaseStyleproperty to provide a "boolean true" appearance.- Returns:
- Current booleanPartialImage value. Default value is null
- See Also:
 
- 
setBooleanTrueImageImage to display for a true value in a boolean field. The special value "blank" means that no image will be shown.To turn this off explicitly set ListGridField.suppressValueIconto true.If this, booleanFalseImageandbooleanPartialImageare unset, this will be set to the defaultCheckboxItem.checkedImage.Spritingcan be used for this image, by setting this property to aSCSpriteConfigformatted string. Alternatively developers can omit this property and instead use CSS directly in thebooleanBaseStyleproperty to provide a "boolean true" appearance.Note : This is an advanced setting - Parameters:
- booleanTrueImage- New booleanTrueImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getBooleanTrueImageImage to display for a true value in a boolean field. The special value "blank" means that no image will be shown.To turn this off explicitly set ListGridField.suppressValueIconto true.If this, booleanFalseImageandbooleanPartialImageare unset, this will be set to the defaultCheckboxItem.checkedImage.Spritingcan be used for this image, by setting this property to aSCSpriteConfigformatted string. Alternatively developers can omit this property and instead use CSS directly in thebooleanBaseStyleproperty to provide a "boolean true" appearance.- Returns:
- Current booleanTrueImage value. Default value is null
- See Also:
 
- 
setBriefRowRangeDisplayValueDynamic String specifying the format for therow range summary valuewhenRowRangeDisplayStyleis set to"brief".The following variables are available for evaluation within this string: - rowRange: the- formatted row range
- rowCount: the- formatted row count
 - Parameters:
- briefRowRangeDisplayValue- New briefRowRangeDisplayValue value. Default value is "${rowRange} of ${rowCount}"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getBriefRowRangeDisplayValueDynamic String specifying the format for therow range summary valuewhenRowRangeDisplayStyleis set to"brief".The following variables are available for evaluation within this string: - rowRange: the- formatted row range
- rowCount: the- formatted row count
 - Returns:
- Current briefRowRangeDisplayValue value. Default value is "${rowRange} of ${rowCount}"
 
- 
setCanAcceptDroppedRecordsIndicates whether records can be dropped into this listGrid.- Parameters:
- canAcceptDroppedRecords- New canAcceptDroppedRecords value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanAcceptDroppedRecordsIndicates whether records can be dropped into this listGrid.- Returns:
- Current canAcceptDroppedRecords value. Default value is false
- See Also:
 
- 
setCanAddAISortFieldsAdds an item to the header context menu allowing users to launch a dialog to define a new field to be sorted by an AI score of the entire record and possibility related records.AI sort fields can be persisted via getFieldState()andsetFieldState().- Parameters:
- canAddAISortFields- New canAddAISortFields value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCanAddAISortFieldsAdds an item to the header context menu allowing users to launch a dialog to define a new field to be sorted by an AI score of the entire record and possibility related records.AI sort fields can be persisted via getFieldState()andsetFieldState().- Returns:
- Current canAddAISortFields value. Default value is false
 
- 
setCanAutoFitFieldsCan the user perform one-time autofit for specific columns in this grid?If set to true, the default header menu will include options to auto fit all fieldssuch that they fit their content or titles as specified viaListGridField.autoFitWidthApproach.
 Autofitting of individual fields via aheader context menu item, or theheaderAutoFitEventwill also be enabled when this property is set unlessListGridField.canAutoFitWidthis explicitly set to falseNote that the ability to perform one-time autofitting of fields via this subsystem is separate from the programmatic autofit behavior enabled via autoFitFieldWidths.This subsystem is requires canResizeFields be enabled and will be disabled if that property is set to false - Parameters:
- canAutoFitFields- New canAutoFitFields value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCanAutoFitFieldsCan the user perform one-time autofit for specific columns in this grid?If set to true, the default header menu will include options to auto fit all fieldssuch that they fit their content or titles as specified viaListGridField.autoFitWidthApproach.
 Autofitting of individual fields via aheader context menu item, or theheaderAutoFitEventwill also be enabled when this property is set unlessListGridField.canAutoFitWidthis explicitly set to falseNote that the ability to perform one-time autofitting of fields via this subsystem is separate from the programmatic autofit behavior enabled via autoFitFieldWidths.This subsystem is requires canResizeFields be enabled and will be disabled if that property is set to false - Returns:
- Current canAutoFitFields value. Default value is true
 
- 
setCancelEditingConfirmationMessageIf this is an editable listGrid, andthis.confirmCancelEditingis true this property is used as the message to display in the confirmation dismissal prompt.- Parameters:
- cancelEditingConfirmationMessage- New cancelEditingConfirmationMessage value. Default value is Cancelling this edit will discard unsaved changes for this record. Continue?
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCancelEditingConfirmationMessageIf this is an editable listGrid, andthis.confirmCancelEditingis true this property is used as the message to display in the confirmation dismissal prompt.- Returns:
- Current cancelEditingConfirmationMessage value. Default value is Cancelling this edit will discard unsaved changes for this record. Continue?
- See Also:
 
- 
setCanCollapseGroupCan a group be collapsed/expanded? When true a collapse/expand icon is shown (groupIcon) and the user can collapse or expand the group by clicking either the row as a whole or the opener icon (seecollapseGroupOnRowClick); When false the group icon is not shown and clicking on the row does not change group state. AdditionallygroupStartOpenis initialized to "all".- Parameters:
- canCollapseGroup- New canCollapseGroup value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getCanCollapseGroupCan a group be collapsed/expanded? When true a collapse/expand icon is shown (groupIcon) and the user can collapse or expand the group by clicking either the row as a whole or the opener icon (seecollapseGroupOnRowClick); When false the group icon is not shown and clicking on the row does not change group state. AdditionallygroupStartOpenis initialized to "all".- Returns:
- Current canCollapseGroup value. Default value is true
- See Also:
 
- 
setCanConfigureViaAIWhether to show theConfigure via AImenu-item, which allows users to task the AI with performing multiple advanced configuration steps, such as grouping, hiliting and filtering, by entering plain-text commands.- Parameters:
- canConfigureViaAI- New canConfigureViaAI value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCanConfigureViaAIWhether to show theConfigure via AImenu-item, which allows users to task the AI with performing multiple advanced configuration steps, such as grouping, hiliting and filtering, by entering plain-text commands.- Returns:
- Current canConfigureViaAI value. Default value is null
 
- 
setCanDragRecordsOutIndicates whether records can be dragged from this listGrid and dropped elsewhere.NOTE: If canDragRecordsOutis initially enabled or might be dynamically enabled after the grid is created, it may be desirable to disabletouch scrollingso that touch-dragging a record starts a drag operation rather than a scroll, but see the discussion ofdrag handles. IfCanvas.disableTouchScrollingForDragis set totrue, then touch scrolling will be disabled automatically. However, foraccessibilityreasons, it is recommended to leave touch scrolling enabled and provide an alternative set of controls that can be used to perform drag and drop of records out of the grid.- Parameters:
- canDragRecordsOut- New canDragRecordsOut value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanDragRecordsOutIndicates whether records can be dragged from this listGrid and dropped elsewhere.NOTE: If canDragRecordsOutis initially enabled or might be dynamically enabled after the grid is created, it may be desirable to disabletouch scrollingso that touch-dragging a record starts a drag operation rather than a scroll, but see the discussion ofdrag handles. IfCanvas.disableTouchScrollingForDragis set totrue, then touch scrolling will be disabled automatically. However, foraccessibilityreasons, it is recommended to leave touch scrolling enabled and provide an alternative set of controls that can be used to perform drag and drop of records out of the grid.- Returns:
- Current canDragRecordsOut value. Default value is false
- See Also:
 
- 
setCanDragSelectIf this property is true, users can drag the mouse to select several rows or cells. This is mutually exclusive with rearranging rows or cells by dragging.NOTE: If canDragSelectis initially enabled or might be dynamically enabled after the grid is created, it may be desirable to disabletouch scrollingso that touch-dragging records/cells selects them rather than starting a scroll. IfCanvas.disableTouchScrollingForDragis set totrue, then touch scrolling will be disabled automatically. However, foraccessibilityreasons, it is recommended to leave touch scrolling enabled and provide an alternative set of controls that can be used to perform drag-selection.- Parameters:
- canDragSelect- New canDragSelect value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanDragSelectIf this property is true, users can drag the mouse to select several rows or cells. This is mutually exclusive with rearranging rows or cells by dragging.NOTE: If canDragSelectis initially enabled or might be dynamically enabled after the grid is created, it may be desirable to disabletouch scrollingso that touch-dragging records/cells selects them rather than starting a scroll. IfCanvas.disableTouchScrollingForDragis set totrue, then touch scrolling will be disabled automatically. However, foraccessibilityreasons, it is recommended to leave touch scrolling enabled and provide an alternative set of controls that can be used to perform drag-selection.- Returns:
- Current canDragSelect value. Default value is false
- See Also:
 
- 
setCanDragSelectTextIf this property is true, users can drag the mouse to select text within grid rows, ready to be cliped to clipboard.
 This is mutually exclusive withrearranging rows or cells by dragging, and withdrag selection of rows.To enable selecting cell text on click, see selectCellTextOnClick.
- 
getCanDragSelectTextIf this property is true, users can drag the mouse to select text within grid rows, ready to be cliped to clipboard.
 This is mutually exclusive withrearranging rows or cells by dragging, and withdrag selection of rows.To enable selecting cell text on click, see selectCellTextOnClick.- Returns:
- Current canDragSelectText value. Default value is false
- See Also:
 
- 
setCanDropInEmptyAreaIf set to false, dropping over an empty part of the grid body is disallowed and the no-drop indicator is displayed.- Parameters:
- canDropInEmptyArea- New canDropInEmptyArea value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanDropInEmptyAreaIf set to false, dropping over an empty part of the grid body is disallowed and the no-drop indicator is displayed.- Returns:
- Current canDropInEmptyArea value. Default value is true
- See Also:
 
- 
setCanEditCan the user edit cells in this listGrid? Can be set for the listGrid, and overridden for individual fields.
 If 'canEdit' is false at the listGrid level, fields can never be edited - in this case the canEdit property on individual fields will be ignored.
 If 'canEdit' is set to true at the listGrid level, setting the 'canEdit' property to false at the field level will prevent the field from being edited inline unless a custom override ofcanEditCell()allows it.
 If 'canEdit' is not set at the listGrid level, setting 'canEdit' to true at the field level enables the field to be edited inline.For more information on editing, see the editing overview.- Parameters:
- canEdit- New canEdit value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanEditCan the user edit cells in this listGrid? Can be set for the listGrid, and overridden for individual fields.
 If 'canEdit' is false at the listGrid level, fields can never be edited - in this case the canEdit property on individual fields will be ignored.
 If 'canEdit' is set to true at the listGrid level, setting the 'canEdit' property to false at the field level will prevent the field from being edited inline unless a custom override ofcanEditCell()allows it.
 If 'canEdit' is not set at the listGrid level, setting 'canEdit' to true at the field level enables the field to be edited inline.For more information on editing, see the editing overview.- Returns:
- Current canEdit value. Default value is null
- See Also:
 
- 
setCanEditHilitesAdds an item to the header context menu allowing users to launch a dialog to define grid hilites using theHiliteEditor.User-added hilites can be persisted via DataBoundComponent.getHiliteState()andDataBoundComponent.setHiliteState().To avoid undefined behavior, this property must be set to falseif the same record objects, or the sameResultSetinstances, are shared among multipleDataBoundComponents.
- 
getCanEditHilitespublic boolean getCanEditHilites()Adds an item to the header context menu allowing users to launch a dialog to define grid hilites using theHiliteEditor.User-added hilites can be persisted via DataBoundComponent.getHiliteState()andDataBoundComponent.setHiliteState().To avoid undefined behavior, this property must be set to falseif the same record objects, or the sameResultSetinstances, are shared among multipleDataBoundComponents.- Returns:
- Current canEditHilites value. Default value is false
- See Also:
 
- 
setCanEditTitlesIf set to true, theadvanced field pickerprovides an interface allowing users to modify fields' titles.Note that when enabled, the field statefor this component will include field titles by default (seeDataBoundComponent.shouldIncludeTitleInFieldState()).- Parameters:
- canEditTitles- New canEditTitles value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCanEditTitlespublic boolean getCanEditTitles()If set to true, theadvanced field pickerprovides an interface allowing users to modify fields' titles.Note that when enabled, the field statefor this component will include field titles by default (seeDataBoundComponent.shouldIncludeTitleInFieldState()).- Returns:
- Current canEditTitles value. Default value is false
 
- 
setCanExpandMultipleRecordsWhencanExpandRecordsis true, this property indicates whether multiple records can be expanded simultaneously. If set to false, expanding a record will automatically collapse any record which is already expanded. The default value istrue.- Parameters:
- canExpandMultipleRecords- New canExpandMultipleRecords value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCanExpandMultipleRecordsWhencanExpandRecordsis true, this property indicates whether multiple records can be expanded simultaneously. If set to false, expanding a record will automatically collapse any record which is already expanded. The default value istrue.- Returns:
- Current canExpandMultipleRecords value. Default value is true
 
- 
setCanExpandRecordPropertypublic ListGrid setCanExpandRecordProperty(String canExpandRecordProperty) throws IllegalStateException Property name on a record that will be checked to determine whether a record can be expanded.- Parameters:
- canExpandRecordProperty- New canExpandRecordProperty value. Default value is "canExpand"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getCanExpandRecordPropertyProperty name on a record that will be checked to determine whether a record can be expanded.- Returns:
- Current canExpandRecordProperty value. Default value is "canExpand"
- See Also:
 
- 
setCanExpandRecordsWhen set to true, shows an additional field at the beginning of the field-list (respecting RTL) to allow users to expand and collapse individual records. SeeexpandRecord()andexpansionModefor details on record expansion.virtualScrollingis automatically enabled when canExpandRecords is set to true.Note that expanded records are not currently supported in conjunction with frozen fields.
 If this method is called after the component has been drawn/initialized: Setter forcanExpandRecords- Parameters:
- canExpandRecords- new value for listGrid.canExpandRecords. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCanExpandRecordsWhen set to true, shows an additional field at the beginning of the field-list (respecting RTL) to allow users to expand and collapse individual records. SeeexpandRecord()andexpansionModefor details on record expansion.virtualScrollingis automatically enabled when canExpandRecords is set to true.Note that expanded records are not currently supported in conjunction with frozen fields.- Returns:
- Current canExpandRecords value. Default value is false
 
- 
setCanFocusInEmptyGridIf the listGrid is empty, should the user be able to put focus into the grid body by tabbing to it?Note that if editOnFocusis true for this grid andlistEndEditActionis set to next, having this property set to true will allow users to automatically create a new edit row by simply tabbing into the grid.Note : This is an advanced setting - Parameters:
- canFocusInEmptyGrid- New canFocusInEmptyGrid value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getCanFocusInEmptyGridpublic boolean getCanFocusInEmptyGrid()If the listGrid is empty, should the user be able to put focus into the grid body by tabbing to it?Note that if editOnFocusis true for this grid andlistEndEditActionis set to next, having this property set to true will allow users to automatically create a new edit row by simply tabbing into the grid.- Returns:
- Current canFocusInEmptyGrid value. Default value is true
 
- 
setCanFreezeFieldsWhether an interface should be shown to allow user is allowed to dynamically "freeze" or "unfreeze" columns with respect to horizontally scrolling. If unset, this property defaults totrueunless:- this.fixedRecordHeightsis- false
- this.bodyOverflowis- "visible"
- this.autoFitDatais set to- "horizontal"or- "both"
- Any field has overflow set to "visible"
 Note that the canFreezeFieldssetting enables or disables the user interface for freezing and unfreezing fields only. Fields can be programmatically frozen via settingfield.frozento true when the grid is created, or dynamically frozen and unfrozen viafreezeField()andunfreezeField().Developers should also be aware that if the cell content for some field exceeds the specified cellHeight, andenforceVClippingis not set to true, this can cause misalignment between rows in frozen and unfrozen columns. See theFrozen fields overviewfor more on this.
 If this method is called after the component has been drawn/initialized: Setter method forcanFreezeFields- Parameters:
- canFreezeFields- New value for- listGrid.canFreezeFields. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanFreezeFieldsWhether an interface should be shown to allow user is allowed to dynamically "freeze" or "unfreeze" columns with respect to horizontally scrolling. If unset, this property defaults totrueunless:- this.fixedRecordHeightsis- false
- this.bodyOverflowis- "visible"
- this.autoFitDatais set to- "horizontal"or- "both"
- Any field has overflow set to "visible"
 Note that the canFreezeFieldssetting enables or disables the user interface for freezing and unfreezing fields only. Fields can be programmatically frozen via settingfield.frozento true when the grid is created, or dynamically frozen and unfrozen viafreezeField()andunfreezeField().Developers should also be aware that if the cell content for some field exceeds the specified cellHeight, andenforceVClippingis not set to true, this can cause misalignment between rows in frozen and unfrozen columns. See theFrozen fields overviewfor more on this.- Returns:
- Current canFreezeFields value. Default value is null
- See Also:
 
- 
setCanGroupByIf false, grouping via context menu will be disabled.- Parameters:
- canGroupBy- New canGroupBy value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanGroupByIf false, grouping via context menu will be disabled.- Returns:
- Current canGroupBy value. Default value is true
- See Also:
 
- 
setCanHiliteViaAIWhen set totrueand AI component views are enabled, shows an item in this component's header context menu that allows the user to ask the AI to hilite the records according to a natural language description of which records to hilite.See IntegratingAIfor the requirements to enable AI component views.- Parameters:
- canHiliteViaAI- New canHiliteViaAI value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanHiliteViaAIWhen set totrueand AI component views are enabled, shows an item in this component's header context menu that allows the user to ask the AI to hilite the records according to a natural language description of which records to hilite.See IntegratingAIfor the requirements to enable AI component views.- Returns:
- Current canHiliteViaAI value. Default value is false
- See Also:
 
- 
setCanHoverIf true, cellHover and rowHover events will fire and then a hover will be shown (if not canceled) when the user leaves the mouse over a row / cell unless the corresponding field hasshowHoverset to false. If unset or null, the hover will be shown if the corresponding field has showHover:true. If false, then hovers are disabled.Note that standard hovers override clipped value hovers. Thus, to enable clipped value hovers, canHover must be unset or null and the corresponding field must have showHover unset or null as well.- Overrides:
- setCanHoverin class- Canvas
- Parameters:
- canHover- New canHover value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanHoverIf true, cellHover and rowHover events will fire and then a hover will be shown (if not canceled) when the user leaves the mouse over a row / cell unless the corresponding field hasshowHoverset to false. If unset or null, the hover will be shown if the corresponding field has showHover:true. If false, then hovers are disabled.Note that standard hovers override clipped value hovers. Thus, to enable clipped value hovers, canHover must be unset or null and the corresponding field must have showHover unset or null as well.- Overrides:
- getCanHoverin class- Canvas
- Returns:
- Current canHover value. Default value is null
- See Also:
 
- 
setCanMultiGroupWhen true, indicates that this ListGrid supports grouping on multiple fields.- Parameters:
- canMultiGroup- New canMultiGroup value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCanMultiGrouppublic boolean getCanMultiGroup()When true, indicates that this ListGrid supports grouping on multiple fields.- Returns:
- Current canMultiGroup value. Default value is false
 
- 
setCanMultiSortWhen true, indicates that this ListGrid supports sorting on multiple fields. Note that even when set to true, multi-field sorting may not be available if the grid is databound and theDataSource doesn't support multi-sort, or if sorting for a field isclient-onlybut not all data is available.- Parameters:
- canMultiSort- New canMultiSort value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanMultiSortWhen true, indicates that this ListGrid supports sorting on multiple fields. Note that even when set to true, multi-field sorting may not be available if the grid is databound and theDataSource doesn't support multi-sort, or if sorting for a field isclient-onlybut not all data is available.- Returns:
- Current canMultiSort value. Default value is true
- See Also:
 
- 
setCanPickFieldsIndicates whether the field picker item and submenu should be present in the header context menu. This menu allows the user to hide visible fields and show hidden fields.By default only fields explicitly included in the fieldsarray will be available in this menu, unlesscanPickOmittedFieldsis set to true for a databound grid.A specific field can be omitted from the column picker via ListGridField.canHide.- Parameters:
- canPickFields- New canPickFields value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCanPickFieldsIndicates whether the field picker item and submenu should be present in the header context menu. This menu allows the user to hide visible fields and show hidden fields.By default only fields explicitly included in the fieldsarray will be available in this menu, unlesscanPickOmittedFieldsis set to true for a databound grid.A specific field can be omitted from the column picker via ListGridField.canHide.- Returns:
- Current canPickFields value. Default value is true
 
- 
setCanPickOmittedFieldsIf true, thefield picker menuwill include entries for all dataSource fields, including those not included in the specifiedfields array.This property only applies to grids with a specified dataSource, wherefieldsis explicitly set anduseAllDataSourceFieldsis false. ThecanPickFieldsproperty must also be set to true to allow the user to view the field picker menu.Note: grids with canPickOmittedFields:true, like those withuseAllDataSourceFields:truewill render fields in the order in which they are defined in the dataSource rather than the order in which they're defined in thelistGrid fields array.- Parameters:
- canPickOmittedFields- New canPickOmittedFields value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getCanPickOmittedFieldsIf true, thefield picker menuwill include entries for all dataSource fields, including those not included in the specifiedfields array.This property only applies to grids with a specified dataSource, wherefieldsis explicitly set anduseAllDataSourceFieldsis false. ThecanPickFieldsproperty must also be set to true to allow the user to view the field picker menu.Note: grids with canPickOmittedFields:true, like those withuseAllDataSourceFields:truewill render fields in the order in which they are defined in the dataSource rather than the order in which they're defined in thelistGrid fields array.- Returns:
- Current canPickOmittedFields value. Default value is false
 
- 
setCanRemoveRecordsIf set, provide UI for the user to remove records from the grid as an additional field showing theremoveIcon, which, when clicked, will callremoveRecordClick()which removes the row from the data set (or ifdeferRemovalis true changes themarkRecordRemoved()status for the record). Individual records can be marked to prevent removal - seerecordCanRemoveProperty.To add a confirmation dialog before a record is removed, set warnOnRemoval.If deferring removal, the record will appear marked with the removedCSSTextuntil the removal is committed via a call tosaveEdits(). Otherwise, the record will disappear from view. IfanimateRemoveRecordis true, the removed record will appear to shrink out of view when it is removed.By default the field will display the removeIconnext to each record, and will be rendered as the rightmost column. Two mechanisms exist to further modify this field:- To change the position of the
 remove-field, include an explicitly specified field with     the attribute isRemoveField:trueset. This will then be used as the remove field instead of adding a field to the beginning of the set of columns.
- Additional direct
 configuration of the remove field may be achieved by modifying     removeFieldProperties.
 deferRemovalis true, when a record is marked as removed, the the icon will change to display theunremoveIconfor this row. Clicking on this icon will callunmarkRecordRemoved()to mark the record as no longer pending deletion.
 If this method is called after the component has been drawn/initialized: Updates thecanRemoveRecordsproperty for this listGrid at runtime.- Parameters:
- canRemoveRecords- new canRemoveRecords value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- To change the position of the
 remove-field, include an explicitly specified field with     the attribute 
- 
getCanRemoveRecordsIf set, provide UI for the user to remove records from the grid as an additional field showing theremoveIcon, which, when clicked, will callremoveRecordClick()which removes the row from the data set (or ifdeferRemovalis true changes themarkRecordRemoved()status for the record). Individual records can be marked to prevent removal - seerecordCanRemoveProperty.To add a confirmation dialog before a record is removed, set warnOnRemoval.If deferring removal, the record will appear marked with the removedCSSTextuntil the removal is committed via a call tosaveEdits(). Otherwise, the record will disappear from view. IfanimateRemoveRecordis true, the removed record will appear to shrink out of view when it is removed.By default the field will display the removeIconnext to each record, and will be rendered as the rightmost column. Two mechanisms exist to further modify this field:- To change the position of the
 remove-field, include an explicitly specified field with     the attribute isRemoveField:trueset. This will then be used as the remove field instead of adding a field to the beginning of the set of columns.
- Additional direct
 configuration of the remove field may be achieved by modifying     removeFieldProperties.
 deferRemovalis true, when a record is marked as removed, the the icon will change to display theunremoveIconfor this row. Clicking on this icon will callunmarkRecordRemoved()to mark the record as no longer pending deletion.- Returns:
- Current canRemoveRecords value. Default value is false
- See Also:
 
- To change the position of the
 remove-field, include an explicitly specified field with     the attribute 
- 
setCanReorderFieldsIndicates whether fields in this listGrid can be reordered by dragging and dropping header fields. If true, can be overridden at the field level viaListGridField.canReorder.- Parameters:
- canReorderFields- New canReorderFields value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanReorderFieldsIndicates whether fields in this listGrid can be reordered by dragging and dropping header fields. If true, can be overridden at the field level viaListGridField.canReorder.- Returns:
- Current canReorderFields value. Default value is true
- See Also:
 
- 
setCanReorderRecordsIndicates whether records can be reordered by dragging within thisListGrid.NOTE: If canReorderRecordsis initially enabled or might bedynamically enabledafter the grid is created, it may be desirable to disabletouch scrollingso that touch-dragging a record starts a reorder operation rather than a scroll, but see the discussion ofdrag handles. IfCanvas.disableTouchScrollingForDragis set totrue, then touch scrolling will be disabled automatically. However, foraccessibilityreasons, it is recommended to leave touch scrolling enabled and provide an alternative set of controls that can be used to perform drag-reordering of records.
 If this method is called after the component has been drawn/initialized: Setter for thecanReorderRecordsattribute.- Parameters:
- canReorderRecords- new value for- this.canReorderRecords. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanReorderRecordsIndicates whether records can be reordered by dragging within thisListGrid.NOTE: If canReorderRecordsis initially enabled or might bedynamically enabledafter the grid is created, it may be desirable to disabletouch scrollingso that touch-dragging a record starts a reorder operation rather than a scroll, but see the discussion ofdrag handles. IfCanvas.disableTouchScrollingForDragis set totrue, then touch scrolling will be disabled automatically. However, foraccessibilityreasons, it is recommended to leave touch scrolling enabled and provide an alternative set of controls that can be used to perform drag-reordering of records.- Returns:
- Current canReorderRecords value. Default value is false
- See Also:
 
- 
setCanRequestRowCountDepending on whetherDataSource.progressiveLoadingis active, the exact count of available rows may not be known, andcanRequestRowCountcontrols whether the end user may explicitly request it by clicking theRowRangeDisplaylabel.When this property is set to true, the user may request an accurate row count if one is not currently known byclickingtherowRangeDisplay. To have a row count fetch operation occur automatically when progressive data is loaded instead of requiring a user interaction to initiate the fetch, seeautoFetchRowCount.Note: This property also acts as a default for ResultSet.applyRowCountToLength. By default, if set to true, a user may therefore click the rowRangeDisplay label to request a row count query be executed on the server, and when the query is complete they may scroll the listGrid body freely, retrieving records from anywhere within the data set.If applyRowCountToLengthis explicitly set it will be applied to the grid's data object instead of usingapplyRowCountToLengthas a default. For finer grained control, a developer may set both properties to false and manage behavior by explicitly callingfetchRowCount()andlistGrid.data.setFullLength()from application code.- Parameters:
- canRequestRowCount- New canRequestRowCount value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanRequestRowCountpublic boolean getCanRequestRowCount()Depending on whetherDataSource.progressiveLoadingis active, the exact count of available rows may not be known, andcanRequestRowCountcontrols whether the end user may explicitly request it by clicking theRowRangeDisplaylabel.When this property is set to true, the user may request an accurate row count if one is not currently known byclickingtherowRangeDisplay. To have a row count fetch operation occur automatically when progressive data is loaded instead of requiring a user interaction to initiate the fetch, seeautoFetchRowCount.Note: This property also acts as a default for ResultSet.applyRowCountToLength. By default, if set to true, a user may therefore click the rowRangeDisplay label to request a row count query be executed on the server, and when the query is complete they may scroll the listGrid body freely, retrieving records from anywhere within the data set.If applyRowCountToLengthis explicitly set it will be applied to the grid's data object instead of usingapplyRowCountToLengthas a default. For finer grained control, a developer may set both properties to false and manage behavior by explicitly callingfetchRowCount()andlistGrid.data.setFullLength()from application code.- Returns:
- Current canRequestRowCount value. Default value is false
- See Also:
 
- 
setCanResizeFieldsIndicates whether fields in this listGrid can be resized by dragging header fields.
 If this method is called after the component has been drawn/initialized: Setter method for updatingcanResizeFieldsat runtime.- Parameters:
- canResizeFields- new value for this.canResizeFields. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanResizeFieldsIndicates whether fields in this listGrid can be resized by dragging header fields.- Returns:
- Current canResizeFields value. Default value is true
- See Also:
 
- 
setCanSaveSearchesWhen enabled (the default), causes a "Saved views >" submenu to appear in the header context menu, last, allowing the user to create new saved searches, select previously saved searches, and edit or copy existing searches.Note that disabling this feature does not mean that saved searches are disallowed - you can stil implement a separate UI via a SavedSearchItemthat targets this component. But, when disabled, the grid-integrated menu described above will not be shown.This feature uses the global settings found in SavedSearches. Some aspects can be overridden for this component. SeesavedSearchDS,savedSearchAdminRole.To avoid leaking local storage, this setting will be disregarded, disabling the feature, unless the grid specifies savedSearchId, or an explicitlocal or global IDis present.Note: this feature requires Smart GWT Pro or better. - Parameters:
- canSaveSearches- New canSaveSearches value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getCanSaveSearchespublic boolean getCanSaveSearches()When enabled (the default), causes a "Saved views >" submenu to appear in the header context menu, last, allowing the user to create new saved searches, select previously saved searches, and edit or copy existing searches.Note that disabling this feature does not mean that saved searches are disallowed - you can stil implement a separate UI via a SavedSearchItemthat targets this component. But, when disabled, the grid-integrated menu described above will not be shown.This feature uses the global settings found in SavedSearches. Some aspects can be overridden for this component. SeesavedSearchDS,savedSearchAdminRole.To avoid leaking local storage, this setting will be disregarded, disabling the feature, unless the grid specifies savedSearchId, or an explicitlocal or global IDis present.Note: this feature requires Smart GWT Pro or better. - Returns:
- Current canSaveSearches value. Default value is true
 
- 
setCanSelectAllControls whether a checkbox for selecting all records appears in the header withselectionAppearanceset to "checkbox"
- 
getCanSelectAllControls whether a checkbox for selecting all records appears in the header withselectionAppearanceset to "checkbox"- Returns:
- Current canSelectAll value. Default value is null
- See Also:
 
- 
setCanSelectCellsEnables cell-level selection behavior as well ascell-level rollover.To query and manipulate cell-level selections, use getCellSelection()to retrieve theCellSelection.Note that the ListGrid has a data model of one Recordper row, unlike theCubeGridwhich supports oneCellRecordper cell. For this reason record-oriented APIs that act on the selection will act on entire Records that have any selected cells (examples include drag and drop and transferSelectedData()).More generally, canSelectCellsis primarily intended to enable developers to build Excel-like interactions on local datasets, by usingsetData()plussaveLocally:true rather than record-oriented DataSources and data binding. You can also usecanSelectCellsin conjunction withSelectionAppearanceset to "checkbox" to complete this experience.The following keyboard selection behaviors are enabled with this property in addition to standard single-selection Arrow Key navigation: SHIFT + [Arrow Key]: begin or continue incremental selection SHIFT + CTRL + [Arrow Key]: incremental selection to the end of row or column CTRL + A: select all cells (enabled only with canSelectAll)Incremental selection allows selection of rows and columns of cells via keyboard or mouse provided the shift key is down. Behavior is designed to match Excel. Thus, if a previous selection has begun, cells will be selected from that origin. Users may also navigate through cells using the Tab and Shift+Tab keypresses if navigateOnTabis true. When a user tabs to the end of the row, therowEndEditActionis used to determine whether to shift selection to the next row, return to the beginning of the same row, or simply move on through the page's tab order.- Parameters:
- canSelectCells- New canSelectCells value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getCanSelectCellsEnables cell-level selection behavior as well ascell-level rollover.To query and manipulate cell-level selections, use getCellSelection()to retrieve theCellSelection.Note that the ListGrid has a data model of one Recordper row, unlike theCubeGridwhich supports oneCellRecordper cell. For this reason record-oriented APIs that act on the selection will act on entire Records that have any selected cells (examples include drag and drop and transferSelectedData()).More generally, canSelectCellsis primarily intended to enable developers to build Excel-like interactions on local datasets, by usingsetData()plussaveLocally:true rather than record-oriented DataSources and data binding. You can also usecanSelectCellsin conjunction withSelectionAppearanceset to "checkbox" to complete this experience.The following keyboard selection behaviors are enabled with this property in addition to standard single-selection Arrow Key navigation: SHIFT + [Arrow Key]: begin or continue incremental selection SHIFT + CTRL + [Arrow Key]: incremental selection to the end of row or column CTRL + A: select all cells (enabled only with canSelectAll)Incremental selection allows selection of rows and columns of cells via keyboard or mouse provided the shift key is down. Behavior is designed to match Excel. Thus, if a previous selection has begun, cells will be selected from that origin. Users may also navigate through cells using the Tab and Shift+Tab keypresses if navigateOnTabis true. When a user tabs to the end of the row, therowEndEditActionis used to determine whether to shift selection to the next row, return to the beginning of the same row, or simply move on through the page's tab order.- Returns:
- Current canSelectCells value. Default value is false
 
- 
setCanSelectGroupsControls whether a checkbox for selectinggroupsappears in the group node ifSelectionAppearanceis set to"checkbox"
- 
getCanSelectGroupspublic boolean getCanSelectGroups()Controls whether a checkbox for selectinggroupsappears in the group node ifSelectionAppearanceis set to"checkbox"- Returns:
- Current canSelectGroups value. Default value is false
- See Also:
 
- 
setCanSelectSummaryRowsWhether to allow selection of the summary row, for example by clicking on the record. The default is to disallow it.If this property is set, further customization of selection can be made by applying the appropriate selection-related properties to the autochild via summaryRowProperties. The request to fetch the summary row(s) can be customized viasummaryRowFetchRequestProperties.Note : This is an advanced setting - Parameters:
- canSelectSummaryRows- New canSelectSummaryRows value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getCanSelectSummaryRowspublic boolean getCanSelectSummaryRows()Whether to allow selection of the summary row, for example by clicking on the record. The default is to disallow it.If this property is set, further customization of selection can be made by applying the appropriate selection-related properties to the autochild via summaryRowProperties. The request to fetch the summary row(s) can be customized viasummaryRowFetchRequestProperties.- Returns:
- Current canSelectSummaryRows value. Default value is false
 
- 
setCanShowFilterEditorShould a menu item allowing the user to show or hide thefilter editorbe displayed in theheaderContextmenu?Note that if this ListGrid is not bound to a dataSourceit can not be filtered. In this case the context menu option to show the filterEditor will not be displayed even ifcanShowFilterEditoris true.Enabling filter via AIforces this setting to true.- Parameters:
- canShowFilterEditor- New canShowFilterEditor value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCanShowFilterEditorpublic boolean getCanShowFilterEditor()Should a menu item allowing the user to show or hide thefilter editorbe displayed in theheaderContextmenu?Note that if this ListGrid is not bound to a dataSourceit can not be filtered. In this case the context menu option to show the filterEditor will not be displayed even ifcanShowFilterEditoris true.Enabling filter via AIforces this setting to true.- Returns:
- Current canShowFilterEditor value. Default value is true
- See Also:
 
- 
setCanSortEnables or disables interactive sorting behavior for this listGrid. Does not affect sorting by direct calls to thesortorsetSortmethods.- Parameters:
- canSort- New canSort value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCanSortEnables or disables interactive sorting behavior for this listGrid. Does not affect sorting by direct calls to thesortorsetSortmethods.- Returns:
- Current canSort value. Default value is true
 
- 
setCanTabToHeaderShould the header be included in the tab-order for the page? If not explicitly specified, the header will be included in the tab order for the page ifSC.setScreenReaderMode()is called.- Parameters:
- canTabToHeader- New canTabToHeader value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getCanTabToHeaderShould the header be included in the tab-order for the page? If not explicitly specified, the header will be included in the tab order for the page ifSC.setScreenReaderMode()is called.- Returns:
- Current canTabToHeader value. Default value is null
- See Also:
 
- 
setCanTabToSorterShould thecorner sort buttonbe included in the tab-order for the page?- Parameters:
- canTabToSorter- New canTabToSorter value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getCanTabToSorterShould thecorner sort buttonbe included in the tab-order for the page?- Returns:
- Current canTabToSorter value. Default value is false
- See Also:
 
- 
getCellContextMenuThe menu displayed when a cell is right clicked on.This component is an AutoChild named "cellContextMenu". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current cellContextMenu value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setCellHeightDefault height for each row in pixels. SeefixedRecordHeightsandenforceVClippingfor information on how rows are sized when cell content height exceeds this specified value.- Parameters:
- cellHeight- New cellHeight value. Default value is 20
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCellHeightpublic int getCellHeight()Default height for each row in pixels. SeefixedRecordHeightsandenforceVClippingfor information on how rows are sized when cell content height exceeds this specified value.- Returns:
- Current cellHeight value. Default value is 20
- See Also:
 
- 
setCellPaddingThe amount of empty space, in pixels, surrounding each value in its cell.- Parameters:
- cellPadding- New cellPadding value. Default value is 2
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCellPaddingpublic int getCellPadding()The amount of empty space, in pixels, surrounding each value in its cell.- Returns:
- Current cellPadding value. Default value is 2
 
- 
setCellRoleReturns the default WAI ARIA role for cells within this listGrid. SeegetCellRole()Note : This is an advanced setting - Parameters:
- cellRole- New cellRole value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getCellRoleReturns the default WAI ARIA role for cells within this listGrid. SeegetCellRole()- Returns:
- Returns the WAI ARIA role for cells within this listGrid. If the record has a value for the recordCellRoleProperty, this will be respected.
 Otherwise ifcellRoleis specified, it will be used.If neither property is set, the default implementation will return "gridcell"if this listGrid hasrole:"grid", otherwisenull, meaning no role will be written out for cells. Default value is null
 
- 
setChartConstructorName of the Smart GWT Class to be used when creating charts. Must support the Chart interface.- Parameters:
- chartConstructor- New chartConstructor value. Default value is "FacetChart"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getChartConstructorName of the Smart GWT Class to be used when creating charts. Must support the Chart interface.- Returns:
- Current chartConstructor value. Default value is "FacetChart"
 
- 
setChartTypeDefault type of chart to plot.- Parameters:
- chartType- New chartType value. Default value is "Column"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getChartTypeDefault type of chart to plot.- Returns:
- Current chartType value. Default value is "Column"
 
- 
setCheckboxFieldFalseImageIfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for an unselected row. If unset, thebooleanFalseImagewill be used. Note that the special value "blank" means that no image will be shown.Note : This is an advanced setting - Parameters:
- checkboxFieldFalseImage- New checkboxFieldFalseImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCheckboxFieldFalseImageIfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for an unselected row. If unset, thebooleanFalseImagewill be used. Note that the special value "blank" means that no image will be shown.- Returns:
- Current checkboxFieldFalseImage value. Default value is null
- See Also:
 
- 
setCheckboxFieldImageHeightpublic ListGrid setCheckboxFieldImageHeight(Integer checkboxFieldImageHeight) throws IllegalStateException IfselectionAppearanceis set to"checkbox"this property may be set to govern the height of the checkbox image displayed to indicate whether a row is selected. If unset, the checkboxField image will be sized to match thebooleanImageHeightfor this grid.- Parameters:
- checkboxFieldImageHeight- New checkboxFieldImageHeight value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getCheckboxFieldImageHeightIfselectionAppearanceis set to"checkbox"this property may be set to govern the height of the checkbox image displayed to indicate whether a row is selected. If unset, the checkboxField image will be sized to match thebooleanImageHeightfor this grid.- Returns:
- Current checkboxFieldImageHeight value. Default value is null
 
- 
setCheckboxFieldImageWidthpublic ListGrid setCheckboxFieldImageWidth(Integer checkboxFieldImageWidth) throws IllegalStateException IfselectionAppearanceis set to"checkbox"this property may be set to govern the width of the checkbox image displayed to indicate whether a row is selected. If unset, the checkboxField image will be sized to match thebooleanImageWidthfor this grid.- Parameters:
- checkboxFieldImageWidth- New checkboxFieldImageWidth value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getCheckboxFieldImageWidthIfselectionAppearanceis set to"checkbox"this property may be set to govern the width of the checkbox image displayed to indicate whether a row is selected. If unset, the checkboxField image will be sized to match thebooleanImageWidthfor this grid.- Returns:
- Current checkboxFieldImageWidth value. Default value is null
 
- 
setCheckboxFieldPartialImageIfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for a partially selected row. If unset, thebooleanPartialImagewill be used. Note that the special value "blank" means that no image will be shown.Note : This is an advanced setting - Parameters:
- checkboxFieldPartialImage- New checkboxFieldPartialImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCheckboxFieldPartialImageIfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for a partially selected row. If unset, thebooleanPartialImagewill be used. Note that the special value "blank" means that no image will be shown.- Returns:
- Current checkboxFieldPartialImage value. Default value is null
- See Also:
 
- 
setCheckboxFieldTrueImageIfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for a selected row. If unset, thebooleanTrueImagewill be used. Note that the special value "blank" means that no image will be shown.Note : This is an advanced setting - Parameters:
- checkboxFieldTrueImage- New checkboxFieldTrueImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getCheckboxFieldTrueImageIfselectionAppearanceis set to"checkbox"this property determines the image to display in the checkbox field for a selected row. If unset, thebooleanTrueImagewill be used. Note that the special value "blank" means that no image will be shown.- Returns:
- Current checkboxFieldTrueImage value. Default value is null
- See Also:
 
- 
setChildExpansionModeForexpansionModesthat show another grid or tree, what the child's expansionMode should be.Default value nullmeans no further expansion.Note : This is an advanced setting - Parameters:
- childExpansionMode- New childExpansionMode value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getChildExpansionModeForexpansionModesthat show another grid or tree, what the child's expansionMode should be.Default value nullmeans no further expansion.- Returns:
- Current childExpansionMode value. Default value is null
 
- 
setClearAllSortingTextIf we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to clear any existing sort on all fields. This menu-item is displayed only in the context menu for the sorter button.- Parameters:
- clearAllSortingText- New clearAllSortingText value. Default value is "Clear All Sorting"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getClearAllSortingTextIf we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to clear any existing sort on all fields. This menu-item is displayed only in the context menu for the sorter button.- Returns:
- Current clearAllSortingText value. Default value is "Clear All Sorting"
 
- 
setClearCriteriaOnFilterEditorHidepublic ListGrid setClearCriteriaOnFilterEditorHide(boolean clearCriteriaOnFilterEditorHide) throws IllegalStateException When set to false, this attribute prevents user-criteria in thefilterEditorfrom being cleared when the user hides it.- Parameters:
- clearCriteriaOnFilterEditorHide- New clearCriteriaOnFilterEditorHide value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getClearCriteriaOnFilterEditorHidepublic boolean getClearCriteriaOnFilterEditorHide()When set to false, this attribute prevents user-criteria in thefilterEditorfrom being cleared when the user hides it.- Returns:
- Current clearCriteriaOnFilterEditorHide value. Default value is true
 
- 
setClearFilterTextIf we're showing aheaderContextMenufor this grid, and afilter-editoris visible, this attribute will be shown as the menu item title to clear any existing filter. This menu-item is displayed only in the context menu for the sorter button.- Parameters:
- clearFilterText- New clearFilterText value. Default value is "Clear Filter"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getClearFilterTextIf we're showing aheaderContextMenufor this grid, and afilter-editoris visible, this attribute will be shown as the menu item title to clear any existing filter. This menu-item is displayed only in the context menu for the sorter button.- Returns:
- Current clearFilterText value. Default value is "Clear Filter"
 
- 
setClearFilterViaAITextTitle for the menu-item displayed in this component's header context-menu whenAI-assisted filteringis allowed and an AI filter in already in effect.- Parameters:
- clearFilterViaAIText- New clearFilterViaAIText value. Default value is "Clear AI Filter"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getClearFilterViaAITextTitle for the menu-item displayed in this component's header context-menu whenAI-assisted filteringis allowed and an AI filter in already in effect.- Returns:
- Current clearFilterViaAIText value. Default value is "Clear AI Filter"
- See Also:
 
- 
setClearSortFieldTextIf we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to clear an existing sort on this field.- Parameters:
- clearSortFieldText- New clearSortFieldText value. Default value is "Clear Sort"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getClearSortFieldTextIf we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to clear an existing sort on this field.- Returns:
- Current clearSortFieldText value. Default value is "Clear Sort"
 
- 
setClipHeaderTitlesWhether the ListGrid should manage the clipping of titles of header buttons, showing ellipses if the title is clipped, and potentially showing the full title onhover.In some cases this may be preferable to the button component's default clipping behavior because if a sort arrowor sort numeral is displayed for a header, then the button's default clipping behavior may clip the sort arrow/numeral whereas ListGrid-managed title clipping utilizes special HTML which keeps the sort arrow/numeral visible.This feature is automatically enabled if supported by the browser. The only supported use of this attribute is to disable the feature by setting clipHeaderTitles to false. Note that this feature is incompatible with ListGridField.wrap, and will automatically be disabled for wrapping fields.Note : This is an advanced setting - Parameters:
- clipHeaderTitles- New clipHeaderTitles value. Default value is varies
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getClipHeaderTitlesWhether the ListGrid should manage the clipping of titles of header buttons, showing ellipses if the title is clipped, and potentially showing the full title onhover.In some cases this may be preferable to the button component's default clipping behavior because if a sort arrowor sort numeral is displayed for a header, then the button's default clipping behavior may clip the sort arrow/numeral whereas ListGrid-managed title clipping utilizes special HTML which keeps the sort arrow/numeral visible.This feature is automatically enabled if supported by the browser. The only supported use of this attribute is to disable the feature by setting clipHeaderTitles to false. Note that this feature is incompatible with ListGridField.wrap, and will automatically be disabled for wrapping fields.- Returns:
- Current clipHeaderTitles value. Default value is varies
- See Also:
 
- 
setCollapseGroupOnRowClickpublic ListGrid setCollapseGroupOnRowClick(boolean collapseGroupOnRowClick) throws IllegalStateException IfcanCollapseGroupis true, will a click anywhere on the group row toggle the group's expanded state? If false, the user must click thegroupIcondirectly to toggle the group.- Parameters:
- collapseGroupOnRowClick- New collapseGroupOnRowClick value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getCollapseGroupOnRowClickpublic boolean getCollapseGroupOnRowClick()IfcanCollapseGroupis true, will a click anywhere on the group row toggle the group's expanded state? If false, the user must click thegroupIcondirectly to toggle the group.- Returns:
- Current collapseGroupOnRowClick value. Default value is true
- See Also:
 
- 
setConfigureGroupingTextIf we're showing aheaderContextMenufor this grid, and multi-grouping is enabled, this attribute is used as the title for a menu item that opens aMultiGroupDialogto configure the grouping for this grid.- Parameters:
- configureGroupingText- New configureGroupingText value. Default value is "Configure Grouping..."
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getConfigureGroupingTextIf we're showing aheaderContextMenufor this grid, and multi-grouping is enabled, this attribute is used as the title for a menu item that opens aMultiGroupDialogto configure the grouping for this grid.- Returns:
- Current configureGroupingText value. Default value is "Configure Grouping..."
 
- 
setConfigureSortTextIf we're showing aheaderContextMenufor this grid, and multi-sorting is enabled, this attribute is used as the title for a menu item that opens aMultiSortDialogto configure the sort-specification for this grid. This menu-item is displayed only in the context menu for the sorter button.- Parameters:
- configureSortText- New configureSortText value. Default value is "Configure Sort..."
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getConfigureSortTextIf we're showing aheaderContextMenufor this grid, and multi-sorting is enabled, this attribute is used as the title for a menu item that opens aMultiSortDialogto configure the sort-specification for this grid. This menu-item is displayed only in the context menu for the sorter button.- Returns:
- Current configureSortText value. Default value is "Configure Sort..."
 
- 
setConfigureViaAITextTitle for the menu-item displayed in this component's header context-menu whencanConfigureViaAIis tru.- Parameters:
- configureViaAIText- New configureViaAIText value. Default value is "Configure via AI..."
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getConfigureViaAITextTitle for the menu-item displayed in this component's header context-menu whencanConfigureViaAIis tru.- Returns:
- Current configureViaAIText value. Default value is "Configure via AI..."
- See Also:
 
- 
setConfirmCancelEditingIf this is an editable listGrid, when the user attempts to cancel an edit, should we display a confirmation prompt before discarding the edited values for the record?- Parameters:
- confirmCancelEditing- New confirmCancelEditing value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getConfirmCancelEditingIf this is an editable listGrid, when the user attempts to cancel an edit, should we display a confirmation prompt before discarding the edited values for the record?- Returns:
- Current confirmCancelEditing value. Default value is false
- See Also:
 
- 
setConfirmDiscardEditsFor editable listGrids, outstanding unsaved edits when the user performs a new filter or sort will be discarded. This flag determines whether we should display a confirmation dialog with options to save or discard the edits, or cancel the action in this case.- Parameters:
- confirmDiscardEdits- New confirmDiscardEdits value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getConfirmDiscardEditsFor editable listGrids, outstanding unsaved edits when the user performs a new filter or sort will be discarded. This flag determines whether we should display a confirmation dialog with options to save or discard the edits, or cancel the action in this case.- Returns:
- Current confirmDiscardEdits value. Default value is true
- See Also:
 
- 
setConfirmDiscardEditsMessageIfthis.confirmDiscardEditsis true, this property can be used to customize the error message string displayed to the user in a dialog with options to cancel the action, or save or discard pending edits in response to sort/filter actions that would otherwise drop unsaved edit values.- Parameters:
- confirmDiscardEditsMessage- New confirmDiscardEditsMessage value. Default value is "This action will discard unsaved changes for this list."
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getConfirmDiscardEditsMessageIfthis.confirmDiscardEditsis true, this property can be used to customize the error message string displayed to the user in a dialog with options to cancel the action, or save or discard pending edits in response to sort/filter actions that would otherwise drop unsaved edit values.- Returns:
- Current confirmDiscardEditsMessage value. Default value is "This action will discard unsaved changes for this list."
- See Also:
 
- 
setCriteriaIndicatorColorpublic ListGrid setCriteriaIndicatorColor(String criteriaIndicatorColor) throws IllegalStateException The color of thefilterWindow criteria indicator.- Parameters:
- criteriaIndicatorColor- New criteriaIndicatorColor value. Default value is "#33AAFF"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getCriteriaIndicatorColorThe color of thefilterWindow criteria indicator.- Returns:
- Current criteriaIndicatorColor value. Default value is "#33AAFF"
 
- 
setCriteriaIndicatorHeaderColorpublic ListGrid setCriteriaIndicatorHeaderColor(String criteriaIndicatorHeaderColor) throws IllegalStateException The color of thefilterWindow criteria indicatorwhen shown on thesorter buttonor the lastheader buttonin the grid header. The default is to usecriteriaIndicatorColor.- Parameters:
- criteriaIndicatorHeaderColor- New criteriaIndicatorHeaderColor value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getCriteriaIndicatorHeaderColorThe color of thefilterWindow criteria indicatorwhen shown on thesorter buttonor the lastheader buttonin the grid header. The default is to usecriteriaIndicatorColor.- Returns:
- Current criteriaIndicatorHeaderColor value. Default value is null
 
- 
setDataA list of ListGridRecord objects, specifying the data to be used to populate the ListGrid. In ListGrids, the data array specifies rows.When using a DataSource, rather than directly providingdata, you will typically callfetchData()instead, which will automatically establishdataas aResultSet(see thefetchData()docs for details).If you call fetchData, any previously supplieddatais discarded. Also, it is not necessary to callsetData()after callingfetchData().When calling setData(), ifdatais provided as a RecordList or ResultSet, direct changes to the list using Framework APIs such asRecordList.add()orRecordList.remove()will be automatically detected and the ListGrid will redraw in response. However, direct changes to individual Records will not be automatically detected and require calls torefreshCell()orrefreshRow()to cause the ListGrid to visually update. Calling methods such asupdateData(),removeData()oraddData()always causes automatic visual refresh.
 If this method is called after the component has been drawn/initialized: Provides a new data set to the ListGrid after the grid has been created or drawn. The ListGrid will redraw to show the new data automatically.Note that passing null will not clear data, but will regroup it and reapply the current sort, highlighting, and summaries to the grid. Size will be recalculated for fields marked asautofitWidth:true and aselection managerwill be created if none exists. To clear the grid instead, pass [].- Parameters:
- data- data to show in the list. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
setDataArityA ListGrid is adataArity:multiple component.Note : This is an advanced setting - Parameters:
- dataArity- New dataArity value. Default value is "multiple"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getDataArityA ListGrid is adataArity:multiple component.- Returns:
- Current dataArity value. Default value is "multiple"
- See Also:
 
- 
setDataFetchDelayDelay in milliseconds before fetching data.Note: the floor value for this attribute is 1. If you set this value to zero, it will be defaulted to 1 for you instead. Note : This is an advanced setting - Parameters:
- dataFetchDelay- New dataFetchDelay value. Default value is 1
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getDataFetchDelayDelay in milliseconds before fetching data.Note: the floor value for this attribute is 1. If you set this value to zero, it will be defaulted to 1 for you instead. - Returns:
- Current dataFetchDelay value. Default value is 1
- See Also:
 
- 
setDataFetchModeHow to fetch and manage records retrieve from the server. SeeFetchMode.This setting only applies to the ResultSetautomatically created by callingfetchData(). If a pre-existing ResultSet is passed to setData() instead, it's existing setting forResultSet.fetchModeapplies.- Specified by:
- setDataFetchModein interface- DataBoundComponent
- Parameters:
- dataFetchMode- New dataFetchMode value. Default value is "paged"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getDataFetchModeHow to fetch and manage records retrieve from the server. SeeFetchMode.This setting only applies to the ResultSetautomatically created by callingfetchData(). If a pre-existing ResultSet is passed to setData() instead, it's existing setting forResultSet.fetchModeapplies.- Specified by:
- getDataFetchModein interface- DataBoundComponent
- Returns:
- Current dataFetchMode value. Default value is "paged"
- See Also:
 
- 
setDataSourceThe DataSource that this component should bind to for default fields and for performingDataSource requests.Can be specified as either a DataSource instance or the String ID of a DataSource. 
 If this method is called after the component has been drawn/initialized: Bind to a new DataSource.Like passing the "dataSource" property on creation, binding to a DataSource means that the component will use the DataSource to provide default data for its fields. When binding to a new DataSource, if the component has any existing "fields" or has a dataset, these will be discarded by default, since it is assumed the new DataSource may represent a completely unrelated set of objects. If the old "fields" are still relevant, pass them to setDataSource(). - Specified by:
- setDataSourcein interface- DataBoundComponent
- Parameters:
- dataSource- DataSource to bind to. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
setDataSourceThe DataSource that this component should bind to for default fields and for performingDataSource requests.Can be specified as either a DataSource instance or the String ID of a DataSource. 
 If this method is called after the component has been drawn/initialized: Bind to a new DataSource.Like passing the "dataSource" property on creation, binding to a DataSource means that the component will use the DataSource to provide default data for its fields. When binding to a new DataSource, if the component has any existing "fields" or has a dataset, these will be discarded by default, since it is assumed the new DataSource may represent a completely unrelated set of objects. If the old "fields" are still relevant, pass them to setDataSource(). - Specified by:
- setDataSourcein interface- DataBoundComponent
- Parameters:
- dataSource- DataSource to bind to. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
setDateFormatterHow should Date type values be displayed in this ListGrid by default?This property specifies the default DateDisplayFormat to apply to Date values displayed in this grid for all fields except those of type "time"(See alsotimeFormatter).
 IfdatetimeFormatteris specified, that will be applied by default to fields of type"datetime".Note that if ListGridField.dateFormatterorListGridField.timeFormatterare specified those properties will take precedence over the component level settings.If unset, date values will be formatted according to the system wide short display formatorshort datetime display formatfor datetime type fields.If this field is editable the dateFormatter will also be passed to the editor created to edit this field as dateFormatter. In this case you may also need to setdateInputFormat.- Parameters:
- dateFormatter- New dateFormatter value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDateFormatterHow should Date type values be displayed in this ListGrid by default?This property specifies the default DateDisplayFormat to apply to Date values displayed in this grid for all fields except those of type "time"(See alsotimeFormatter).
 IfdatetimeFormatteris specified, that will be applied by default to fields of type"datetime".Note that if ListGridField.dateFormatterorListGridField.timeFormatterare specified those properties will take precedence over the component level settings.If unset, date values will be formatted according to the system wide short display formatorshort datetime display formatfor datetime type fields.If this field is editable the dateFormatter will also be passed to the editor created to edit this field as dateFormatter. In this case you may also need to setdateInputFormat.- Returns:
- Current dateFormatter value. Default value is null
 
- 
setDateInputFormatIf this is an editable listGrid, this property will specify theinputFormatapplied to editors for fields of type"date". May be overridden per field viaListGridField.inputFormat.Note : This is an advanced setting - Parameters:
- dateInputFormat- New dateInputFormat value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
setDatetimeFormatterDisplay format to use for fields specified as type 'datetime'. Default is to use the system-wide default date time format, configured viaDateUtil.setShortDatetimeDisplayFormat(). Specify any validDateDisplayFormatto change the display format for datetimes used by this grid.May also be specified at the field level via ListGridField.dateFormatterIf this field is editable the dateFormatter will also be passed to the editor created to edit this field as dateFormatter. In this case you may also need to setdateInputFormat.- Parameters:
- datetimeFormatter- New datetimeFormatter value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getDatetimeFormatterDisplay format to use for fields specified as type 'datetime'. Default is to use the system-wide default date time format, configured viaDateUtil.setShortDatetimeDisplayFormat(). Specify any validDateDisplayFormatto change the display format for datetimes used by this grid.May also be specified at the field level via ListGridField.dateFormatterIf this field is editable the dateFormatter will also be passed to the editor created to edit this field as dateFormatter. In this case you may also need to setdateInputFormat.- Returns:
- Current datetimeFormatter value. Default value is null
- See Also:
 
- 
setDefaultDateFieldWidthDefault width for date type fields. SeeautoFitDateFieldsfor details on how this property is used.- Parameters:
- defaultDateFieldWidth- New defaultDateFieldWidth value. Default value is varies
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDefaultDateFieldWidthDefault width for date type fields. SeeautoFitDateFieldsfor details on how this property is used.- Returns:
- Current defaultDateFieldWidth value. Default value is varies
 
- 
setDefaultDateTimeFieldWidthDefault width for datetime type fields. SeeautoFitDateFieldsfor details on how this property is used.- Parameters:
- defaultDateTimeFieldWidth- New defaultDateTimeFieldWidth value. Default value is varies
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDefaultDateTimeFieldWidthDefault width for datetime type fields. SeeautoFitDateFieldsfor details on how this property is used.- Returns:
- Current defaultDateTimeFieldWidth value. Default value is varies
 
- 
setDefaultEditableDateFieldWidthDefault width for editable date type fields. SeeautoFitDateFieldsfor details on how this property is used.- Parameters:
- defaultEditableDateFieldWidth- New defaultEditableDateFieldWidth value. Default value is varies
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDefaultEditableDateFieldWidthDefault width for editable date type fields. SeeautoFitDateFieldsfor details on how this property is used.- Returns:
- Current defaultEditableDateFieldWidth value. Default value is varies
 
- 
setDefaultEditableDateTimeFieldWidthDefault width for editable datetime type fields. SeeautoFitDateFieldsfor details on how this property is used.- Parameters:
- defaultEditableDateTimeFieldWidth- New defaultEditableDateTimeFieldWidth value. Default value is varies
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDefaultEditableDateTimeFieldWidthDefault width for editable datetime type fields. SeeautoFitDateFieldsfor details on how this property is used.- Returns:
- Current defaultEditableDateTimeFieldWidth value. Default value is varies
 
- 
setDefaultFieldsAn array of listGrid field configuration objects. When a listGrid is initialized, if this property is set and there is no value for thefieldsattribute, this.fields will be defaulted to a generated array of field objects duplicated from this array.This property is useful for cases where a standard set of fields will be displayed in multiple listGrids - for example a subclass of ListGrid intended to display a particular type of data: 
 In this example we would not assign a singlefieldsarray directly to the class viaaddProperties()as every generated instance of this class would then point to the same fields array object. This would cause unexpected behavior such as changes to the field order in one grid affecting other grids on the page.
 Instead we could useaddProperties()on our new subclass to setdefaultFieldsto a standard array of fields to display. Each generated instance of the subclass would then show up with default fields duplicated from this array.Note : This is an advanced setting - Parameters:
- defaultFields- New defaultFields value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getDefaultFieldsAn array of listGrid field configuration objects. When a listGrid is initialized, if this property is set and there is no value for thefieldsattribute, this.fields will be defaulted to a generated array of field objects duplicated from this array.This property is useful for cases where a standard set of fields will be displayed in multiple listGrids - for example a subclass of ListGrid intended to display a particular type of data: 
 In this example we would not assign a singlefieldsarray directly to the class viaaddProperties()as every generated instance of this class would then point to the same fields array object. This would cause unexpected behavior such as changes to the field order in one grid affecting other grids on the page.
 Instead we could useaddProperties()on our new subclass to setdefaultFieldsto a standard array of fields to display. Each generated instance of the subclass would then show up with default fields duplicated from this array.- Returns:
- Current defaultFields value. Default value is null
 
- 
setDefaultFilterOperatorpublic ListGrid setDefaultFilterOperator(OperatorId defaultFilterOperator) throws IllegalStateException Defaultfilter operatorto use for text-based fields in this grid'sfilter editor, when producingAdvancedCriteria. WhenallowFilterExpressionsorallowFilterOperatorsare enabled for the grid, the default is"iContainsPattern". Otherwise, the default is "iContains".Does not apply to special fields where exact match is obviously the right default setting, such as fields of type:"enum", or fields with a valueMaporoptionDataSource.- Parameters:
- defaultFilterOperator- New defaultFilterOperator value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getDefaultFilterOperatorDefaultfilter operatorto use for text-based fields in this grid'sfilter editor, when producingAdvancedCriteria. WhenallowFilterExpressionsorallowFilterOperatorsare enabled for the grid, the default is"iContainsPattern". Otherwise, the default is "iContains".Does not apply to special fields where exact match is obviously the right default setting, such as fields of type:"enum", or fields with a valueMaporoptionDataSource.- Returns:
- Current defaultFilterOperator value. Default value is null
 
- 
setDefaultFilterOperatorSuffixpublic ListGrid setDefaultFilterOperatorSuffix(String defaultFilterOperatorSuffix) throws IllegalStateException Text to show after the name of the default filterOperator in theheaderContextMenuwhenallowFilterOperatorsis enabled.- Parameters:
- defaultFilterOperatorSuffix- New defaultFilterOperatorSuffix value. Default value is "(default)"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getDefaultFilterOperatorSuffixText to show after the name of the default filterOperator in theheaderContextMenuwhenallowFilterOperatorsis enabled.- Returns:
- Current defaultFilterOperatorSuffix value. Default value is "(default)"
 
- 
setDefaultTimeFieldWidthDefault width for time type fields. SeeautoFitDateFieldsfor details on how this property is used.- Parameters:
- defaultTimeFieldWidth- New defaultTimeFieldWidth value. Default value is varies
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDefaultTimeFieldWidthDefault width for time type fields. SeeautoFitDateFieldsfor details on how this property is used.- Returns:
- Current defaultTimeFieldWidth value. Default value is varies
 
- 
setDeferRemovalWhen enabled, the field shown bycanRemoveRecordscauses records to be marked for future removal viamarkRecordRemoved()instead of immediately being removed.When a record has been marked for removal, an icon in the canRemoveRecordsfield allowing it to be unmarked will be displayed.If not explicitly specified by this property, removal of records will be deferred if autoSaveEditsis false for the grid.- Parameters:
- deferRemoval- New deferRemoval value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getDeferRemovalWhen enabled, the field shown bycanRemoveRecordscauses records to be marked for future removal viamarkRecordRemoved()instead of immediately being removed.When a record has been marked for removal, an icon in the canRemoveRecordsfield allowing it to be unmarked will be displayed.If not explicitly specified by this property, removal of records will be deferred if autoSaveEditsis false for the grid.- Returns:
- Current deferRemoval value. Default value is null
- See Also:
 
- 
setDeselectOnPartialCheckboxClickShould partially selected checkbox be deselected or selected on click? This setting affectsheader selection checkbox,group\n checkboxesand folder checkbox selection in a Tree data set.By default clicking a partially selected checkbox selects it. 
- 
getDeselectOnPartialCheckboxClickShould partially selected checkbox be deselected or selected on click? This setting affectsheader selection checkbox,group\n checkboxesand folder checkbox selection in a Tree data set.By default clicking a partially selected checkbox selects it. - Returns:
- Current deselectOnPartialCheckboxClick value. Default value is false
- See Also:
 
- 
setDetailDSIfcanExpandRecordsis true andlistGrid.expansionModeis"related", this property specifies the dataSource for the related records grid to be shown embedded in expanded records.This property may also be specified on a per-record basis - see recordDetailDSProperty- Parameters:
- detailDS- New detailDS value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDetailDSIfcanExpandRecordsis true andlistGrid.expansionModeis"related", this property specifies the dataSource for the related records grid to be shown embedded in expanded records.This property may also be specified on a per-record basis - see recordDetailDSProperty- Returns:
- Current detailDS value. Default value is null
 
- 
setDetailFieldThe field whose contents to show in the expanded portion of a record whencanExpandRecordsistrueandlistGrid.expansionModeisdetailField.- Parameters:
- detailField- New detailField value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDetailFieldThe field whose contents to show in the expanded portion of a record whencanExpandRecordsistrueandlistGrid.expansionModeisdetailField.- Returns:
- Current detailField value. Default value is null
 
- 
setDisabledGroupByPromptPrompt to indicate that grouping is disabled as the data set size exceedsgroupByMaxRecords.This prompt will be shown as a hover for the disabled group by menu item.See also groupByMaxRecordsExceededMessage.- Parameters:
- disabledGroupByPrompt- New disabledGroupByPrompt value. Default value is "Grouping is not supported for datasets of this size"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDisabledGroupByPromptPrompt to indicate that grouping is disabled as the data set size exceedsgroupByMaxRecords.This prompt will be shown as a hover for the disabled group by menu item.See also groupByMaxRecordsExceededMessage.- Returns:
- Current disabledGroupByPrompt value. Default value is "Grouping is not supported for datasets of this size"
 
- 
setDiscardDataOnSetFetchOperationpublic ListGrid setDiscardDataOnSetFetchOperation(boolean discardDataOnSetFetchOperation) throws IllegalStateException IfsetFetchOperation()is invoked while this grid is showing a filtered data-set, should the data set be discarded?Note : This is an advanced setting - Parameters:
- discardDataOnSetFetchOperation- New discardDataOnSetFetchOperation value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getDiscardDataOnSetFetchOperationpublic boolean getDiscardDataOnSetFetchOperation()IfsetFetchOperation()is invoked while this grid is showing a filtered data-set, should the data set be discarded?- Returns:
- Current discardDataOnSetFetchOperation value. Default value is true
 
- 
setDiscardEditsOnHideFieldIf a user is editing acanEdit:truelistGrid, and they hide a field while the editor is showing, should we discard any edits in the edit row for the field being hidden?Default behavior is to discard the edits - set this flag to false to preserve edits - Parameters:
- discardEditsOnHideField- New discardEditsOnHideField value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDiscardEditsOnHideFieldpublic boolean getDiscardEditsOnHideField()If a user is editing acanEdit:truelistGrid, and they hide a field while the editor is showing, should we discard any edits in the edit row for the field being hidden?Default behavior is to discard the edits - set this flag to false to preserve edits - Returns:
- Current discardEditsOnHideField value. Default value is true
 
- 
setDiscardEditsSaveButtonTitleIfconfirmDiscardEditsis true this is the title for the save button appearing in the lost edits confirmation dialog. Override this for localization if necessary.- Parameters:
- discardEditsSaveButtonTitle- New discardEditsSaveButtonTitle value. Default value is "Save"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getDiscardEditsSaveButtonTitleIfconfirmDiscardEditsis true this is the title for the save button appearing in the lost edits confirmation dialog. Override this for localization if necessary.- Returns:
- Current discardEditsSaveButtonTitle value. Default value is "Save"
- See Also:
 
- 
getDragHandleFieldAn automatically generated field that can be dragged to drag the current selection (where otherwise the grid itself might be scrolled). Visibility is controlled byshowInitialDragHandles,showDragHandles(), andhideDragHandles().This component is an AutoChild named "dragHandleField". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current dragHandleField value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setDragHandleFieldTitleThe title to use for thedrag handle field.By default this title is not displayed in the drag column header button as the autochild defaults for the field set ListGridField.showTitletofalse.Note : This is an advanced setting - Parameters:
- dragHandleFieldTitle- New dragHandleFieldTitle value. Default value is " "
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getDragHandleFieldTitleThe title to use for thedrag handle field.By default this title is not displayed in the drag column header button as the autochild defaults for the field set ListGridField.showTitletofalse.- Returns:
- Current dragHandleFieldTitle value. Default value is " "
- See Also:
 
- 
setDragHandleIconDefault icon to show in thedrag handle field..- Parameters:
- dragHandleIcon- New dragHandleIcon value. Default value is "[SKIN]/actions/drag.png"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getDragHandleIconDefault icon to show in thedrag handle field..- Returns:
- Current dragHandleIcon value. Default value is "[SKIN]/actions/drag.png"
- See Also:
 
- 
setDragHandleIconSizeDefault width and height ofdrag handle iconsfor this ListGrid.- Parameters:
- dragHandleIconSize- New dragHandleIconSize value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getDragHandleIconSizepublic int getDragHandleIconSize()Default width and height ofdrag handle iconsfor this ListGrid.- Returns:
- Current dragHandleIconSize value. Default value is 16
- See Also:
 
- 
setDragScrollRedrawDelayLikescrollRedrawDelay, but applies when the component is being drag-scrolled (via a scrollbar). This value is typically set higher thanscrollRedrawDelayto avoid too many concurrent fetches to the server forResultSet-backed components since it's quite easy to induce such a case with a scrollbar and a grid bound to a large databaset.- Parameters:
- dragScrollRedrawDelay- New dragScrollRedrawDelay value. Default value is 75
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDragScrollRedrawDelaypublic int getDragScrollRedrawDelay()LikescrollRedrawDelay, but applies when the component is being drag-scrolled (via a scrollbar). This value is typically set higher thanscrollRedrawDelayto avoid too many concurrent fetches to the server forResultSet-backed components since it's quite easy to induce such a case with a scrollbar and a grid bound to a large databaset.- Returns:
- Current dragScrollRedrawDelay value. Default value is 75
 
- 
setDragTrackerModeWhen records are being dragged from within a ListGrid, what sort of drag-tracker should be displayed?
 Note that if multiple records are being dragged the displayed tracker will be based on the first selected record.Note : This is an advanced setting - Parameters:
- dragTrackerMode- New dragTrackerMode value. Default value is "icon"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getDragTrackerModeWhen records are being dragged from within a ListGrid, what sort of drag-tracker should be displayed?
 Note that if multiple records are being dragged the displayed tracker will be based on the first selected record.- Returns:
- Current dragTrackerMode value. Default value is "icon"
 
- 
setDrawAheadRatioHow far should we render records ahead of the currently visible area? This is expressed as a ratio from viewport size to rendered area size.Tweaking drawAheadRatio allows you to make tradeoffs between continuous scrolling speed vs initial render time and render time when scrolling by large amounts. NOTE: Only applies when showAllRecords is false. - Parameters:
- drawAheadRatio- New drawAheadRatio value. Default value is 2.0
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getDrawAheadRatiopublic float getDrawAheadRatio()How far should we render records ahead of the currently visible area? This is expressed as a ratio from viewport size to rendered area size.Tweaking drawAheadRatio allows you to make tradeoffs between continuous scrolling speed vs initial render time and render time when scrolling by large amounts. NOTE: Only applies when showAllRecords is false. - Returns:
- Current drawAheadRatio value. Default value is 2.0
- See Also:
 
- 
setDrawAllMaxCellsIf drawing all rows would cause less thandrawAllMaxCellscells to be rendered, the full dataset will instead be drawn even ifshowAllRecordsis false and the viewport size anddrawAheadRatiosetting would normally have caused incremental rendering to be used.The drawAllMaxCellssetting prevents incremental rendering from being used in situations where it's really unnecessary, such as a 40 row, 5 column dataset (only 200 cells) which happens to be in a grid with a viewport showing only 20 or so rows. Incremental rendering causes a brief "flash" during scrolling as the visible portion of the dataset is redrawn, and a better scrolling experience can be obtained in this situation by drawing the entire dataset up front, which in this example would have negligible effect on initial draw time.drawAllMaxCells:0disables this features. You may want to disable this feature if performance is an issue and:- you are very frequently redraw a grid
- you do a lot of computation when rendering each cell (eg formulas)
- you are showing many grids on one screen and the user won't scroll most of them
 Note : This is an advanced setting - Parameters:
- drawAllMaxCells- New drawAllMaxCells value. Default value is 250
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getDrawAllMaxCellspublic int getDrawAllMaxCells()If drawing all rows would cause less thandrawAllMaxCellscells to be rendered, the full dataset will instead be drawn even ifshowAllRecordsis false and the viewport size anddrawAheadRatiosetting would normally have caused incremental rendering to be used.The drawAllMaxCellssetting prevents incremental rendering from being used in situations where it's really unnecessary, such as a 40 row, 5 column dataset (only 200 cells) which happens to be in a grid with a viewport showing only 20 or so rows. Incremental rendering causes a brief "flash" during scrolling as the visible portion of the dataset is redrawn, and a better scrolling experience can be obtained in this situation by drawing the entire dataset up front, which in this example would have negligible effect on initial draw time.drawAllMaxCells:0disables this features. You may want to disable this feature if performance is an issue and:- you are very frequently redraw a grid
- you do a lot of computation when rendering each cell (eg formulas)
- you are showing many grids on one screen and the user won't scroll most of them
 - Returns:
- Current drawAllMaxCells value. Default value is 250
 
- 
setEditByCellDetermines whether when the user edits a cell in this listGrid the entire row becomes editable, or just the cell that received the edit event.No effect if this.canEdit is false or null. - Parameters:
- editByCell- New editByCell value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEditByCellDetermines whether when the user edits a cell in this listGrid the entire row becomes editable, or just the cell that received the edit event.No effect if this.canEdit is false or null. - Returns:
- Current editByCell value. Default value is null
- See Also:
 
- 
setEditEventEvent that will trigger inline editing, seeListGridEditEventfor options.Note this setting has no effect unless canEdithas been set to enable editing.See also editOnFocusandstartEditing().- Parameters:
- editEvent- New editEvent value. Default value is "doubleClick"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEditEventEvent that will trigger inline editing, seeListGridEditEventfor options.Note this setting has no effect unless canEdithas been set to enable editing.See also editOnFocusandstartEditing().- Returns:
- Current editEvent value. Default value is "doubleClick"
- See Also:
 
- 
setEditFailedBaseStyleA base name for the CSS class applied to cells when editing has failed.
 If this listGrid is editable, this style will be applied to any edited cells for which validation failed.
 As with the default 'baseStyle' property, this style will have "Dark", "Over", "Selected", or "Disabled" appended to it according to the state of the cell.
 If null, cells for which editing has failed will be rendered using the normal base style classNames, but with custom CSSText applied as derived fromthis.editFailedCSSTextNote : This is an advanced setting - Parameters:
- editFailedBaseStyle- New editFailedBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEditFailedBaseStyleA base name for the CSS class applied to cells when editing has failed.
 If this listGrid is editable, this style will be applied to any edited cells for which validation failed.
 As with the default 'baseStyle' property, this style will have "Dark", "Over", "Selected", or "Disabled" appended to it according to the state of the cell.
 If null, cells for which editing has failed will be rendered using the normal base style classNames, but with custom CSSText applied as derived fromthis.editFailedCSSText- Returns:
- Current editFailedBaseStyle value. Default value is null
- See Also:
 
- 
setEditFailedCSSTextCustom CSS text to be applied to cells when editing has failed.
 If this listGrid is editable, this css text will be applied to any edited cells for which validation failed, on top of the base style for the cell.
 For further customization of styling for cells that failed editing validation, usethis.editFailedBaseStyleinstead.Note : This is an advanced setting - Parameters:
- editFailedCSSText- New editFailedCSSText value. Default value is "color:red;border:1px solid red;"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEditFailedCSSTextCustom CSS text to be applied to cells when editing has failed.
 If this listGrid is editable, this css text will be applied to any edited cells for which validation failed, on top of the base style for the cell.
 For further customization of styling for cells that failed editing validation, usethis.editFailedBaseStyleinstead.- Returns:
- Current editFailedCSSText value. Default value is "color:red;border:1px solid red;"
- See Also:
 
- 
setEditOnF2KeypressShould we start editing when the widget has focus and the user presses the "f2" key (if this ListGrid supports editing)?Note that if editEventis set to"click"or"doubleClick", theSpaceorEnterkey may also be used to start editing, depending on the value forgenerateClickOnSpace,generateDoubleClickOnSpace,generateClickOnEnterandgenerateDoubleClickOnEnter.If canEditis false, oreditEventis set to "none" this property has no effect.Note : This is an advanced setting - Parameters:
- editOnF2Keypress- New editOnF2Keypress value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEditOnF2KeypressShould we start editing when the widget has focus and the user presses the "f2" key (if this ListGrid supports editing)?Note that if editEventis set to"click"or"doubleClick", theSpaceorEnterkey may also be used to start editing, depending on the value forgenerateClickOnSpace,generateDoubleClickOnSpace,generateClickOnEnterandgenerateDoubleClickOnEnter.If canEditis false, oreditEventis set to "none" this property has no effect.- Returns:
- Current editOnF2Keypress value. Default value is true
- See Also:
 
- 
setEditOnFocusShould we start editing when this widget receives focus (if this ListGrid supports editing)?Note that this property being set to true will cause editing to occur on a single click, even if editEventis"doubleClick", because single clicking the grid will place keyboard focus there automatically.If this property is set together with listEndEditActionbeing set to "next", users can create a new edit row in an empty grid by simply tabbing into the grid.Note : This is an advanced setting - Parameters:
- editOnFocus- New editOnFocus value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEditOnFocusShould we start editing when this widget receives focus (if this ListGrid supports editing)?Note that this property being set to true will cause editing to occur on a single click, even if editEventis"doubleClick", because single clicking the grid will place keyboard focus there automatically.If this property is set together with listEndEditActionbeing set to "next", users can create a new edit row in an empty grid by simply tabbing into the grid.- Returns:
- Current editOnFocus value. Default value is null
- See Also:
 
- 
setEditPendingBaseStyleA base name for the CSS class applied to cells containing pending (unsaved) edits
 As with the default 'baseStyle' property, this style will have "Dark", "Over", "Selected", or "Disabled" appended to it according to the state of the cell.If this property is null (the default setting), cells with pending edits will pick up custom css text to be applied on top of the normal base style from this.editPendingCSSText.Note : This is an advanced setting - Parameters:
- editPendingBaseStyle- New editPendingBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getEditPendingBaseStyleA base name for the CSS class applied to cells containing pending (unsaved) edits
 As with the default 'baseStyle' property, this style will have "Dark", "Over", "Selected", or "Disabled" appended to it according to the state of the cell.If this property is null (the default setting), cells with pending edits will pick up custom css text to be applied on top of the normal base style from this.editPendingCSSText.- Returns:
- Current editPendingBaseStyle value. Default value is null
- See Also:
 
- 
setEditPendingCSSTextCustom CSS text to be applied to cells with pending edits that have not yet been submitted.
 For further customization of styling for cells with pending edits usethis.editPendingBaseStyleinstead.Note : This is an advanced setting - Parameters:
- editPendingCSSText- New editPendingCSSText value. Default value is "color:#0066CC;"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEditPendingCSSTextCustom CSS text to be applied to cells with pending edits that have not yet been submitted.
 For further customization of styling for cells with pending edits usethis.editPendingBaseStyleinstead.- Returns:
- Current editPendingCSSText value. Default value is "color:#0066CC;"
- See Also:
 
- 
setEditPendingMarkerStyleThe name of a CSS class used to overlay regular cell styles with additional styling when a cell has unsaved edits - these styles are in addition to the styling applied byeditPendingCSSTextoreditPendingBaseStyle.You can use a custom class that overlays styling of your choosing, or use the default pendingMarker class which is present in modern skins and provides a small corner-marker in the top-left of unsaved cells. Once set, this styleName is automatically appended to the style-list for cells with unsaved edits. Note : This is an advanced setting - Parameters:
- editPendingMarkerStyle- New editPendingMarkerStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEditPendingMarkerStyleThe name of a CSS class used to overlay regular cell styles with additional styling when a cell has unsaved edits - these styles are in addition to the styling applied byeditPendingCSSTextoreditPendingBaseStyle.You can use a custom class that overlays styling of your choosing, or use the default pendingMarker class which is present in modern skins and provides a small corner-marker in the top-left of unsaved cells. Once set, this styleName is automatically appended to the style-list for cells with unsaved edits. - Returns:
- Current editPendingMarkerStyle value. Default value is null
- See Also:
 
- 
setEditProxyConstructorDefault class used to construct theEditProxyfor this component when the component isfirst placed into edit mode.- Overrides:
- setEditProxyConstructorin class- Layout
- Parameters:
- editProxyConstructor- New editProxyConstructor value. Default value is "GridEditProxy"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getEditProxyConstructorDefault class used to construct theEditProxyfor this component when the component isfirst placed into edit mode.- Overrides:
- getEditProxyConstructorin class- Layout
- Returns:
- Current editProxyConstructor value. Default value is "GridEditProxy"
- See Also:
 
- 
setEditSelectionTypeIfselectOnEditis true, what should be the edit-selection behavior be?Default setting of "single"will cause the edit row to be automatically selected and any other selection in the grid to be dropped.
 If set to"multiple", selection will be additive (as a record goes into edit mode, it is selected in addition to any pre-existant selection).If set to nullbehavior is as follows:- For grids with selectionTypeset to"simple"edit rows will be selected additively - this is the same behavior as if theeditSelectionTypewas"multiple"
- Otherwise edit rows will be selected singly - this is the same behavior as if the
 editSelectionTypewas"single"
 - Parameters:
- editSelectionType- New editSelectionType value. Default value is "single"
- Returns:
- ListGridinstance, for chaining setter calls
 
- For grids with 
- 
getEditSelectionTypeIfselectOnEditis true, what should be the edit-selection behavior be?Default setting of "single"will cause the edit row to be automatically selected and any other selection in the grid to be dropped.
 If set to"multiple", selection will be additive (as a record goes into edit mode, it is selected in addition to any pre-existant selection).If set to nullbehavior is as follows:- For grids with selectionTypeset to"simple"edit rows will be selected additively - this is the same behavior as if theeditSelectionTypewas"multiple"
- Otherwise edit rows will be selected singly - this is the same behavior as if the
 editSelectionTypewas"single"
 - Returns:
- Current editSelectionType value. Default value is "single"
 
- For grids with 
- 
setEmbeddedComponentIndentThis is the pixel-amount by which child components are offset within the grid-body, by default from the left, or from the right whenRTLis in effect. Forexpanding rows, this attribute is overridden byexpansionIndent.This setting overrides the general marginfor embedded-components, on the appropriate side.- Parameters:
- embeddedComponentIndent- New embeddedComponentIndent value. Default value is 25
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getEmbeddedComponentIndentThis is the pixel-amount by which child components are offset within the grid-body, by default from the left, or from the right whenRTLis in effect. Forexpanding rows, this attribute is overridden byexpansionIndent.This setting overrides the general marginfor embedded-components, on the appropriate side.- Returns:
- Current embeddedComponentIndent value. Default value is 25
 
- 
setEmbeddedComponentMarginThis is the space to apply as margin around child-components embedded in this grid. This value is overridden on one side forexpansion componentsbyexpansionIndentand in other scenarios byembeddedComponentIndent.- Parameters:
- embeddedComponentMargin- New embeddedComponentMargin value. Default value is 0
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getEmbeddedComponentMarginThis is the space to apply as margin around child-components embedded in this grid. This value is overridden on one side forexpansion componentsbyexpansionIndentand in other scenarios byembeddedComponentIndent.- Returns:
- Current embeddedComponentMargin value. Default value is 0
 
- 
setEmptyAIHoverContentsHover contents to use when the AI-generated hover text is empty.- Parameters:
- emptyAIHoverContents- New emptyAIHoverContents value. Default value is "(Empty)"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEmptyAIHoverContentsHover contents to use when the AI-generated hover text is empty.- Returns:
- Current emptyAIHoverContents value. Default value is "(Empty)"
- See Also:
 
- 
setEmptyCellValueThe value to display for cells whose value is null or the empty string after applyingformattingand valueMap (if any).This is the grid-wide attribute. You may also set the ListGridField.emptyCellValueon a per-field basis.- Parameters:
- emptyCellValue- New emptyCellValue value. Default value is " "
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEmptyCellValueThe value to display for cells whose value is null or the empty string after applyingformattingand valueMap (if any).This is the grid-wide attribute. You may also set the ListGridField.emptyCellValueon a per-field basis.- Returns:
- Current emptyCellValue value. Default value is " "
- See Also:
 
- 
setEmptyMessageThe string to display in the body of a listGrid with an empty data array, if showEmptyMessage is true.- Parameters:
- emptyMessage- New emptyMessage value. Default value is "No items to show."
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEmptyMessageThe string to display in the body of a listGrid with an empty data array, if showEmptyMessage is true.- Returns:
- Current emptyMessage value. Default value is "No items to show."
- See Also:
 
- 
setEmptyMessageStyleThe CSS style name applied to theemptyMessageif displayed.- Parameters:
- emptyMessageStyle- New emptyMessageStyle value. Default value is "emptyMessage"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEmptyMessageStyleThe CSS style name applied to theemptyMessageif displayed.- Returns:
- Current emptyMessageStyle value. Default value is "emptyMessage"
- See Also:
 
- 
setEmptyRowRangeDisplayValueRow range summary display valuewhen the grid is empty.- Parameters:
- emptyRowRangeDisplayValue- New emptyRowRangeDisplayValue value. Default value is " "
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getEmptyRowRangeDisplayValueRow range summary display valuewhen the grid is empty.- Returns:
- Current emptyRowRangeDisplayValue value. Default value is " "
 
- 
setEnforceVClippingFor performance reasons, even whenfixedRecordHeightsis set, vertical clipping is not enforced by default for some kinds of content (such as images) on all browsers. SetenforceVClipping:trueto enforce clipping for all types of content on all browsers.This additional setting is likely to be phased out as browsers improve. - Parameters:
- enforceVClipping- New enforceVClipping value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getEnforceVClippingFor performance reasons, even whenfixedRecordHeightsis set, vertical clipping is not enforced by default for some kinds of content (such as images) on all browsers. SetenforceVClipping:trueto enforce clipping for all types of content on all browsers.This additional setting is likely to be phased out as browsers improve. - Returns:
- Current enforceVClipping value. Default value is false
 
- 
setEnterKeyEditActionWhat to do when a user hits enter while editing a cell:- "nextCell": start editing the next editable cell in this record (or the first editable cell in the next record if focus is in the last editable cell in the row)
- "nextRow": start editing the same field in the next row (skipping any rows where that would be a non-editable cell.
- "nextRowStart": start editing the first editable cell in the next row.
- "done": hide the editor (editing is complete)
 - Parameters:
- enterKeyEditAction- New enterKeyEditAction value. Default value is "done"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEnterKeyEditActionWhat to do when a user hits enter while editing a cell:- "nextCell": start editing the next editable cell in this record (or the first editable cell in the next record if focus is in the last editable cell in the row)
- "nextRow": start editing the same field in the next row (skipping any rows where that would be a non-editable cell.
- "nextRowStart": start editing the first editable cell in the next row.
- "done": hide the editor (editing is complete)
 - Returns:
- Current enterKeyEditAction value. Default value is "done"
- See Also:
 
- 
setEnumCriteriaAsInitialValuespublic ListGrid setEnumCriteriaAsInitialValues(Boolean enumCriteriaAsInitialValues) throws IllegalStateException In a ListGrid that has a DataSource and has filter criteria that include values for fields declared astype "enum"in the DataSource, by default a newly edited row will use those filter criteria as initial values.For example, if a ListGrid is showing all Accounts that have status:"Active" and a new row is created, the new row will default to status:"Active" unless this flag is set to false. - Parameters:
- enumCriteriaAsInitialValues- New enumCriteriaAsInitialValues value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getEnumCriteriaAsInitialValuesIn a ListGrid that has a DataSource and has filter criteria that include values for fields declared astype "enum"in the DataSource, by default a newly edited row will use those filter criteria as initial values.For example, if a ListGrid is showing all Accounts that have status:"Active" and a new row is created, the new row will default to status:"Active" unless this flag is set to false. - Returns:
- Current enumCriteriaAsInitialValues value. Default value is true
- See Also:
 
- 
setErrorIconHeightHeight of the error icon, if we're showing icons when validation errors occur.- Parameters:
- errorIconHeight- New errorIconHeight value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getErrorIconHeightHeight of the error icon, if we're showing icons when validation errors occur.- Returns:
- Current errorIconHeight value. Default value is 16
 
- 
setErrorIconSrcSrc of the image to show as an error icon, if we're showing icons when validation errors occur.
- 
getErrorIconSrcSrc of the image to show as an error icon, if we're showing icons when validation errors occur.- Returns:
- Current errorIconSrc value. Default value is "[SKIN]/ListGrid/validation_error_icon.png"
- See Also:
 
- 
setErrorIconWidthHeight of the error icon, if we're showing icons when validation errors occur.- Parameters:
- errorIconWidth- New errorIconWidth value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getErrorIconWidthHeight of the error icon, if we're showing icons when validation errors occur.- Returns:
- Current errorIconWidth value. Default value is 16
 
- 
setEscapeKeyEditActionWhat to do when a user hits escape while editing a cell:- "cancel": close the editor and discard the current set of edit values
- "done": just close the editor (the edit is complete, but the edited values are retained).
 autoSaveEditsis true, this may cause a save of the current edit values- Parameters:
- escapeKeyEditAction- New escapeKeyEditAction value. Default value is "cancel"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getEscapeKeyEditActionWhat to do when a user hits escape while editing a cell:- "cancel": close the editor and discard the current set of edit values
- "done": just close the editor (the edit is complete, but the edited values are retained).
 autoSaveEditsis true, this may cause a save of the current edit values- Returns:
- Current escapeKeyEditAction value. Default value is "cancel"
- See Also:
 
- 
setExactRowCountFormatFormat for the string returned fromgetFormattedRowCount()whenrow count statusis"exact".The variable rowCountis available for evaluation within this string and will be set to thecurrent row countas alocale-formatted number.- Parameters:
- exactRowCountFormat- New exactRowCountFormat value. Default value is "${rowCount}"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getExactRowCountFormatFormat for the string returned fromgetFormattedRowCount()whenrow count statusis"exact".The variable rowCountis available for evaluation within this string and will be set to thecurrent row countas alocale-formatted number.- Returns:
- Current exactRowCountFormat value. Default value is "${rowCount}"
- See Also:
 
- 
setExpansionCanEditForexpansionModesthat show another grid or tree, is that component editable?The default value for this property is false.Note : This is an advanced setting - Parameters:
- expansionCanEdit- New expansionCanEdit value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getExpansionCanEditForexpansionModesthat show another grid or tree, is that component editable?The default value for this property is false.- Returns:
- Current expansionCanEdit value. Default value is null
 
- 
setExpansionComponentPoolingModepublic ListGrid setExpansionComponentPoolingMode(ExpansionComponentPoolingMode expansionComponentPoolingMode) The method ofcomponent-poolingto employ forexpansionComponents.The default mode is "destroy", which means that automatically created expansionComponents are destroyed when rows are collapsed. Note : This is an advanced setting - Parameters:
- expansionComponentPoolingMode- New expansionComponentPoolingMode value. Default value is "destroy"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getExpansionComponentPoolingModeThe method ofcomponent-poolingto employ forexpansionComponents.The default mode is "destroy", which means that automatically created expansionComponents are destroyed when rows are collapsed. - Returns:
- Current expansionComponentPoolingMode value. Default value is "destroy"
 
- 
getExpansionDetailFieldNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.Automatically generated HTMLFlowfor displaying the contents ofa specified fieldin a record's expanded section whenlistGrid.expansionModeisdetailField.This component is an com.smartgwt.client.types.AutoChildand as such may be customized vialistGrid.expansionDetailFieldPropertiesandlistGrid.expansionDetailFieldDefaults.Note, however, that this is a multi-instance component (potentially one per record), so it is created using createAutoChild() not addAutoChild(), and no default single instance is created by name on the grid. - Returns:
- null
 
- 
getExpansionDetailRelatedNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.Automatically generated HLayoutappearing in a record's expanded section whenlistGrid.expansionModeisdetailRelated. This component contains two other autoChild components, aDetailViewerfor viewing fields from the record which are not already present in the grid and a separate embeddedListGridfor displaying other data related to this record via record.detailDS. SeeexpansionDetailsandexpansionRelatedfor more information.This component is an com.smartgwt.client.types.AutoChildand as such may be customized vialistGrid.expansionDetailRelatedPropertiesandlistGrid.expansionDetailRelatedDefaults.Note, however, that this is a multi-instance component (potentially one per record), so it is created using createAutoChild() not addAutoChild(), and no default single instance is created by name on the grid. - Returns:
- null
 
- 
getExpansionDetailsNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.Automatically generated DetailViewerfor displaying the details of a record in its expanded section whenlistGrid.expansionModeisdetails. Note that only those fields which do not already appear in the grid are displayed in the expanded section.This component is an com.smartgwt.client.types.AutoChildand as such may be customized vialistGrid.expansionDetailsPropertiesandlistGrid.expansionDetailsDefaults.Note, however, that this is a multi-instance component (potentially one per record), so it is created using createAutoChild() not addAutoChild(), and no default single instance is created by name on the grid. - Returns:
- null
 
- 
getExpansionEditorNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.Automatically generated DynamicFormfor editing the details of a record in its expanded section whenlistGrid.expansionModeiseditor. Note that only those fields which do not already appear in the grid will appear in the expanded section.According to the value of showExpansionEditorSaveButton, a save button is shown beneath the editor. You can save the values in the editor by clicking this buttonThis component is an com.smartgwt.client.types.AutoChildand as such may be customized vialistGrid.expansionEditorPropertiesandlistGrid.expansionEditorDefaults.Note, however, that this is a multi-instance component (potentially one per record), so it is created using createAutoChild() not addAutoChild(), and no default single instance is created by name on the grid. - Returns:
- null
 
- 
getExpansionEditorCollapseOnSaveWhenExpansionModeis editor, should the row be collapsed following a save initiated by the expansion-component'ssave button.Note : This method should be called only after the widget has been rendered. - Returns:
- Current expansionEditorCollapseOnSave value. Default value is true
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
getExpansionEditorSaveButtonNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.Automatically generated IButtonfor saving the values in the expanded portion of a ListGrid row.This component is an com.smartgwt.client.types.AutoChildand as such may be customized vialistGrid.expansionEditorSaveButtonPropertiesandlistGrid.expansionEditorSaveButtonDefaults.Note, however, that this is a multi-instance component (potentially one per record), so it is created using createAutoChild() not addAutoChild(), and no default single instance is created by name on the grid. - Returns:
- null
 
- 
getExpansionEditorSaveButtonTitleThe title for theexpansionEditorSaveButton.Note : This method should be called only after the widget has been rendered. - Returns:
- Current expansionEditorSaveButtonTitle value. Default value is "Save"
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setExpansionEditorSaveDialogPromptpublic ListGrid setExpansionEditorSaveDialogPrompt(String expansionEditorSaveDialogPrompt) throws IllegalStateException WhencanExpandRecordsis true andexpansionModeis editor, the prompt to display in a dialog when an expanded row is collapsed while it's nested editor has changed values.- Parameters:
- expansionEditorSaveDialogPrompt- New expansionEditorSaveDialogPrompt value. Default value is "You have unsaved changes - do you want to save them now?"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getExpansionEditorSaveDialogPromptWhencanExpandRecordsis true andexpansionModeis editor, the prompt to display in a dialog when an expanded row is collapsed while it's nested editor has changed values.- Returns:
- Current expansionEditorSaveDialogPrompt value. Default value is "You have unsaved changes - do you want to save them now?"
 
- 
setExpansionEditorShowSaveDialogpublic ListGrid setExpansionEditorShowSaveDialog(Boolean expansionEditorShowSaveDialog) throws IllegalStateException WhencanExpandRecordsis true andexpansionModeis editor, whether a dialog should be displayed when an expanded row is collapsed while it's nested editor has changed values.- Parameters:
- expansionEditorShowSaveDialog- New expansionEditorShowSaveDialog value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getExpansionEditorShowSaveDialogWhencanExpandRecordsis true andexpansionModeis editor, whether a dialog should be displayed when an expanded row is collapsed while it's nested editor has changed values.- Returns:
- Current expansionEditorShowSaveDialog value. Default value is null
 
- 
getExpansionFieldThe field providing the facility to expand and collapse rows.This component is an AutoChild named "expansionField". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Returns the specially generated expansion field used when canExpandRecordsis true.Called during setFields(), this method can be overridden to add advanced dynamic defaults to the expansion field (call Super, modify the default field returned by Super, return the modified field). Normal customization can be handled by just settingcom.smartgwt.client.types.AutoChildproperties, as mentioned under the docs forexpansionField. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setExpansionFieldFalseImageIfcanExpandRecordsis set totrue, this property determines the image to display in the expansion field for collapsed rows. If unset, thebooleanFalseImagewill be used.Note : This is an advanced setting - Parameters:
- expansionFieldFalseImage- New expansionFieldFalseImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getExpansionFieldFalseImageIfcanExpandRecordsis set totrue, this property determines the image to display in the expansion field for collapsed rows. If unset, thebooleanFalseImagewill be used.- Returns:
- Current expansionFieldFalseImage value. Default value is null
- See Also:
 
- 
setExpansionFieldImageHeightpublic ListGrid setExpansionFieldImageHeight(Integer expansionFieldImageHeight) throws IllegalStateException IfcanExpandRecordsis set totrue, this property may be set to govern the height of the expansion image displayed to indicate whether a row is expanded. If unset, the expansionField image will be sized to match thebooleanImageHeightfor this grid.- Parameters:
- expansionFieldImageHeight- New expansionFieldImageHeight value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getExpansionFieldImageHeightIfcanExpandRecordsis set totrue, this property may be set to govern the height of the expansion image displayed to indicate whether a row is expanded. If unset, the expansionField image will be sized to match thebooleanImageHeightfor this grid.- Returns:
- Current expansionFieldImageHeight value. Default value is null
 
- 
setExpansionFieldImageShowRTLpublic ListGrid setExpansionFieldImageShowRTL(boolean expansionFieldImageShowRTL) throws IllegalStateException If this grid is in RTL mode, should an "_rtl" suffix be added to theexpansionFieldTrueImageandexpansionFieldFalseImageimage URLs? This should only be enabled if RTL media for the true and false expansion field images are available.If both this property and expansionFieldImageShowSelectedare true, and the grid is in RTL mode, both suffixes will be applied to selected rows' expansion field images (combined as "selected_rtl").Note : This is an advanced setting - Parameters:
- expansionFieldImageShowRTL- New expansionFieldImageShowRTL value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getExpansionFieldImageShowRTLpublic boolean getExpansionFieldImageShowRTL()If this grid is in RTL mode, should an "_rtl" suffix be added to theexpansionFieldTrueImageandexpansionFieldFalseImageimage URLs? This should only be enabled if RTL media for the true and false expansion field images are available.If both this property and expansionFieldImageShowSelectedare true, and the grid is in RTL mode, both suffixes will be applied to selected rows' expansion field images (combined as "selected_rtl").- Returns:
- Current expansionFieldImageShowRTL value. Default value is false
 
- 
setExpansionFieldImageShowSelectedpublic ListGrid setExpansionFieldImageShowSelected(boolean expansionFieldImageShowSelected) throws IllegalStateException Should a "_selected" suffix be added to theexpansionFieldTrueImageandexpansionFieldFalseImageimage URLs for selected rows?This allows developers to provide separate expansion field media for selected rows, in case the selected row style does not contrast well with the standard expansion field image media. If both this property and expansionFieldImageShowRTLare true, and the grid is in RTL mode, both suffixes will be applied to selected rows' expansion field image (combined as "selected_rtl")Note : This is an advanced setting - Parameters:
- expansionFieldImageShowSelected- New expansionFieldImageShowSelected value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getExpansionFieldImageShowSelectedpublic boolean getExpansionFieldImageShowSelected()Should a "_selected" suffix be added to theexpansionFieldTrueImageandexpansionFieldFalseImageimage URLs for selected rows?This allows developers to provide separate expansion field media for selected rows, in case the selected row style does not contrast well with the standard expansion field image media. If both this property and expansionFieldImageShowRTLare true, and the grid is in RTL mode, both suffixes will be applied to selected rows' expansion field image (combined as "selected_rtl")- Returns:
- Current expansionFieldImageShowSelected value. Default value is false
 
- 
setExpansionFieldImageStyleCustom style to apply to the image in theexpansionFielddisplayed in collapsible rows whencanExpandRecordsis true. Affects the icons provided byexpansionFieldTrueImageandexpansionFieldFalseImage.- Parameters:
- expansionFieldImageStyle- New expansionFieldImageStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getExpansionFieldImageStyleCustom style to apply to the image in theexpansionFielddisplayed in collapsible rows whencanExpandRecordsis true. Affects the icons provided byexpansionFieldTrueImageandexpansionFieldFalseImage.- Returns:
- Current expansionFieldImageStyle value. Default value is null
- See Also:
 
- 
setExpansionFieldImageWidthpublic ListGrid setExpansionFieldImageWidth(Integer expansionFieldImageWidth) throws IllegalStateException IfcanExpandRecordsis set totrue, this property may be set to govern the width of the expansion image displayed to indicate whether a row is expanded. If unset, the expansionField image will be sized to match thebooleanImageWidthfor this grid.- Parameters:
- expansionFieldImageWidth- New expansionFieldImageWidth value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getExpansionFieldImageWidthIfcanExpandRecordsis set totrue, this property may be set to govern the width of the expansion image displayed to indicate whether a row is expanded. If unset, the expansionField image will be sized to match thebooleanImageWidthfor this grid.- Returns:
- Current expansionFieldImageWidth value. Default value is null
 
- 
setExpansionFieldTrueImageIfcanExpandRecordsis set totrue, this property determines the image to display in the expansion field for expanded rows. If unset, thebooleanTrueImagewill be used.Note : This is an advanced setting - Parameters:
- expansionFieldTrueImage- New expansionFieldTrueImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getExpansionFieldTrueImageIfcanExpandRecordsis set totrue, this property determines the image to display in the expansion field for expanded rows. If unset, thebooleanTrueImagewill be used.- Returns:
- Current expansionFieldTrueImage value. Default value is null
- See Also:
 
- 
setExpansionIndentWhencanExpandRecordsis true, this is the pixel-amount by which child components are offset within the grid-body, by default from the left, or from the right whenRTLis in effect. If unset, assumes the width of theexpansionField, so that child components line up with the following field, according to RTL.This setting overrides the general indentfor embedded-components, on the appropriate side.- Parameters:
- expansionIndent- New expansionIndent value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getExpansionIndentWhencanExpandRecordsis true, this is the pixel-amount by which child components are offset within the grid-body, by default from the left, or from the right whenRTLis in effect. If unset, assumes the width of theexpansionField, so that child components line up with the following field, according to RTL.This setting overrides the general indentfor embedded-components, on the appropriate side.- Returns:
- Current expansionIndent value. Default value is null
 
- 
getExpansionLayoutNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.Automatically generated VLayoutwhich fills a record's expanded section and contains other builtinexpansion-components. You can also overridegetExpansionComponent()to provide components of your own specification.This component is an com.smartgwt.client.types.AutoChildand as such may be customized vialistGrid.expansionLayoutPropertiesandlistGrid.expansionLayoutDefaults.Note, however, that this is a multi-instance component (potentially one per record), so it is created using createAutoChild() not addAutoChild(), and no default single instance is created by name on the grid. - Returns:
- null
 
- 
setExpansionModeTheExpansionModefor records in this grid.If canExpandRecordsis true butexpansionModeis not set, it defaults to "detailRelated" ifdetailDSis set, or to "details" otherwise.- Parameters:
- expansionMode- New expansionMode value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getExpansionModeTheExpansionModefor records in this grid.If canExpandRecordsis true butexpansionModeis not set, it defaults to "detailRelated" ifdetailDSis set, or to "details" otherwise.- Returns:
- Current expansionMode value. Default value is null
 
- 
getExpansionRelatedNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.Automatically generated ListGridfor displaying data related to a record in its expanded section whenlistGrid.expansionModeisrelated. TheDataSourcecontaining the related data is provided bygetRelatedDataSource()which, by default, returns the DataSource referred to inListGridRecord.detailDS.This component is an com.smartgwt.client.types.AutoChildand as such may be customized vialistGrid.expansionRelatedPropertiesandlistGrid.expansionRelatedDefaults.Note, however, that this is a multi-instance component (potentially one per record), so it is created using createAutoChild() not addAutoChild(), and no default single instance is created by name on the grid. - Returns:
- null
 
- 
setExpansionScreenScreen to create (viacreateScreen()) in lieu of callinggetExpansionComponent().If this grid has a dataSource, the created screen is provided with aCanvas.dataContextthat includes the record being expanded. Be sure the expansion screen meets theserequirementsto utilize thedataContext.- Parameters:
- expansionScreen- New expansionScreen value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getExpansionScreenScreen to create (viacreateScreen()) in lieu of callinggetExpansionComponent().If this grid has a dataSource, the created screen is provided with aCanvas.dataContextthat includes the record being expanded. Be sure the expansion screen meets theserequirementsto utilize thedataContext.- Returns:
- Current expansionScreen value. Default value is null
 
- 
setExplicitFetchDelayIf we're showing the filterEditor (showFilterEditoris true), this property determines the delay in kicking off the filter request if the current filter values are submitted by clicking the filter button or hitting return. By default, this property is set to zero so that a filter request is immediately sent.Note : This is an advanced setting - Parameters:
- explicitFetchDelay- New explicitFetchDelay value. Default value is 0
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getExplicitFetchDelaypublic int getExplicitFetchDelay()If we're showing the filterEditor (showFilterEditoris true), this property determines the delay in kicking off the filter request if the current filter values are submitted by clicking the filter button or hitting return. By default, this property is set to zero so that a filter request is immediately sent.- Returns:
- Current explicitFetchDelay value. Default value is 0
- See Also:
 
- 
setExportAlternateRowBGColorpublic ListGrid setExportAlternateRowBGColor(String exportAlternateRowBGColor) throws IllegalStateException When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), background color to use for even-numbered rows, to create a "banded" or "ledger" effect. Odd-numbered rows will use theexportDefaultBGColor.See ExportBGColorfor an overview.- Parameters:
- exportAlternateRowBGColor- New exportAlternateRowBGColor value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getExportAlternateRowBGColorWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), background color to use for even-numbered rows, to create a "banded" or "ledger" effect. Odd-numbered rows will use theexportDefaultBGColor.See ExportBGColorfor an overview.- Returns:
- Current exportAlternateRowBGColor value. Default value is null
- See Also:
 
- 
setExportDefaultBGColorDefault background color to use when exporting data to Excel/OpenOffice format usingexportData()orexportClientData().If unset (the default), cells that are not provided a background color by more specific APIs will be the default background color used by the spreadsheet program where they are viewed. See ExportBGColorfor an overview.- Parameters:
- exportDefaultBGColor- New exportDefaultBGColor value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getExportDefaultBGColorDefault background color to use when exporting data to Excel/OpenOffice format usingexportData()orexportClientData().If unset (the default), cells that are not provided a background color by more specific APIs will be the default background color used by the spreadsheet program where they are viewed. See ExportBGColorfor an overview.- Returns:
- Current exportDefaultBGColor value. Default value is null
- See Also:
 
- 
setExportFieldAlignmentsWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether fieldhorizontal header alignmentsanddata value alignmentsshould be replicated in the resulting spreadsheet.If this attribute is not set, cells will be assigned a default alignment by the spreadsheet, which is typically right-aligned for numeric and date values, and left-aligned for everything else (including dates and numbers that have been exported as strings, as would be the case, for example, if DSRequest.exportDatesAsFormattedStringis set)- Parameters:
- exportFieldAlignments- New exportFieldAlignments value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getExportFieldAlignmentspublic boolean getExportFieldAlignments()When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether fieldhorizontal header alignmentsanddata value alignmentsshould be replicated in the resulting spreadsheet.If this attribute is not set, cells will be assigned a default alignment by the spreadsheet, which is typically right-aligned for numeric and date values, and left-aligned for everything else (including dates and numbers that have been exported as strings, as would be the case, for example, if DSRequest.exportDatesAsFormattedStringis set)- Returns:
- Current exportFieldAlignments value. Default value is false
 
- 
setExportFieldWidthsWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether widths of fields should be replicated in the resulting spreadsheet.Because Excel's unit of measurement for field widths is based on the default system font, there is no exact way to translate field widths in pixels to Excel column widths. The exportWidthScaleproperty can be set to adjust scaling; it's default value errs on the side of making Excel's columns slightly wider than the ListGrid field's actual width to avoid clipping.Note that you can switch off width export for individual fields with the ListGridField.exportFieldWidthflag.- Parameters:
- exportFieldWidths- New exportFieldWidths value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getExportFieldWidthspublic boolean getExportFieldWidths()When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether widths of fields should be replicated in the resulting spreadsheet.Because Excel's unit of measurement for field widths is based on the default system font, there is no exact way to translate field widths in pixels to Excel column widths. The exportWidthScaleproperty can be set to adjust scaling; it's default value errs on the side of making Excel's columns slightly wider than the ListGrid field's actual width to avoid clipping.Note that you can switch off width export for individual fields with the ListGridField.exportFieldWidthflag.- Returns:
- Current exportFieldWidths value. Default value is false
- See Also:
 
- 
setExportHeaderHeightsWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), causes theheaderHeightandheaderSpan heightsto be applied to the corresponding cells in the spreadsheet.- Parameters:
- exportHeaderHeights- New exportHeaderHeights value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getExportHeaderHeightspublic boolean getExportHeaderHeights()When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), causes theheaderHeightandheaderSpan heightsto be applied to the corresponding cells in the spreadsheet.- Returns:
- Current exportHeaderHeights value. Default value is false
 
- 
setExportHiddenFieldWidthWidth to size non-visible fields (which may be specified withexportFieldsorDSRequest.exportFields) duringexportData()orexportClientData(), if they have no defined numericwidth.- Parameters:
- exportHiddenFieldWidth- New exportHiddenFieldWidth value. Default value is 100
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getExportHiddenFieldWidthpublic int getExportHiddenFieldWidth()Width to size non-visible fields (which may be specified withexportFieldsorDSRequest.exportFields) duringexportData()orexportClientData(), if they have no defined numericwidth.- Returns:
- Current exportHiddenFieldWidth value. Default value is 100
- See Also:
 
- 
setExportRawNumbersDictates whether numeric values should be exported as raw numbers instead of formatted values when usingexportClientData().This property is only consulted if exportRawValuesis not set to true at thegridorfieldlevel. That property causes all values, including numeric values, to be exported unformatted.This is useful for cases where an explicit ListGrid formatter function simply displays the number as a formatted string for the user (for example "1,234"). Exporting that formatted string rather than the underlying numeric value causes spreadsheet applications such as Excel to lose some functionality. If this property is not explicitly set, numeric values will be exported as raw numbers for XLS and OOXML exportonly.May be overridden at the field level via ListGridField.exportRawNumbers.- Parameters:
- exportRawNumbers- New exportRawNumbers value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getExportRawNumbersDictates whether numeric values should be exported as raw numbers instead of formatted values when usingexportClientData().This property is only consulted if exportRawValuesis not set to true at thegridorfieldlevel. That property causes all values, including numeric values, to be exported unformatted.This is useful for cases where an explicit ListGrid formatter function simply displays the number as a formatted string for the user (for example "1,234"). Exporting that formatted string rather than the underlying numeric value causes spreadsheet applications such as Excel to lose some functionality. If this property is not explicitly set, numeric values will be exported as raw numbers for XLS and OOXML exportonly.May be overridden at the field level via ListGridField.exportRawNumbers.- Returns:
- Current exportRawNumbers value. Default value is null
 
- 
setExportRawValuesDictates whether the data in this grid should be exported raw byexportClientData(). If set to true, data will not be processed by field-formatters during exports. Decreases the time taken for large exports. This property can also be set at thefield level.- Parameters:
- exportRawValues- New exportRawValues value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getExportRawValuesDictates whether the data in this grid should be exported raw byexportClientData(). If set to true, data will not be processed by field-formatters during exports. Decreases the time taken for large exports. This property can also be set at thefield level.- Returns:
- Current exportRawValues value. Default value is null
 
- 
setExportWidthScaleScaling factor to translate from ListGrid field widths in pixels to Excel/OpenOffice units for field width, which are 1/256th of the width of the widest digit character in the default font for the spreadsheet. SeeexportFieldWidthsfor where this is used.- Parameters:
- exportWidthScale- New exportWidthScale value. Default value is 0.12
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getExportWidthScalepublic double getExportWidthScale()Scaling factor to translate from ListGrid field widths in pixels to Excel/OpenOffice units for field width, which are 1/256th of the width of the widest digit character in the default font for the spreadsheet. SeeexportFieldWidthsfor where this is used.- Returns:
- Current exportWidthScale value. Default value is 0.12
 
- 
setExportWrapHeaderTitlesWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether titles in theListGrid headerandheaderSpansshould be allowed to wrap.Excel will wrap at the column boundary automatically; for explicit control over wrapping, insert "<br>" tags into your titles. See also exportFieldWidthsfor replicating the widths of fields in the exported spreadsheet.- Parameters:
- exportWrapHeaderTitles- New exportWrapHeaderTitles value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getExportWrapHeaderTitlespublic boolean getExportWrapHeaderTitles()When exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), whether titles in theListGrid headerandheaderSpansshould be allowed to wrap.Excel will wrap at the column boundary automatically; for explicit control over wrapping, insert "<br>" tags into your titles. See also exportFieldWidthsfor replicating the widths of fields in the exported spreadsheet.- Returns:
- Current exportWrapHeaderTitles value. Default value is false
 
- 
setFastCellUpdatesNote: This property only has an effect in Internet ExplorerAdvanced property to improve performance for dynamic styling of gridRenderer cells in Internet Explorer, at the expense of slightly slower initial drawing, and some limitations on supported styling options. fastCellUpdatesspeeds up the dynamic styling system used by rollovers, selections, and custom styling that callsGridRenderer.refreshCellStyle(), at the cost of slightly slower draw() and redraw() times.Notes: - When this property is set, ListGrid cells may be styled using the 
 tallBaseStyle. SeegetBaseStyle()for more information.
- If any cell styles specify a a background image URL, the URL will be resolved relative to the page location rather than the location of the CSS stylesheet. This means cell styles with a background URL should either supply a fully qualified path, or the background image media should be made available at a second location for IE.
- fastCellUpdates will not work if the styles involved are in an external stylesheet loaded from a remote host. Either the stylesheet containing cell styles needs to be loaded from the same host as the main page, or the cell styles need to be inlined in the html of the bootstrap page.
- fastCellUpdates will not work if the css styles for cells are defined
 in     a .cssfile loaded via@import. Instead the.cssfile should be loaded via a<link ...>tag.
 
 If this method is called after the component has been drawn/initialized: Setter forGridRenderer.fastCellUpdates. Has no effect in browsers other than Internet Explorer.- Parameters:
- fastCellUpdates- whether to enable fastCellUpdates. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- When this property is set, ListGrid cells may be styled using the 
 
- 
setFetchDelayIf we're showing the filterEditor (showFilterEditoris true), andfilterByCellorfilterOnKeypressare enabled, this property is the delay in milliseconds between the user changing the filter and the filter request being sent to the server. If multiple changes are made to the filter within this fetch delay, only the most recent will actually cause a re-filterNote : This is an advanced setting - Parameters:
- fetchDelay- New fetchDelay value. Default value is 300
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFetchDelaypublic int getFetchDelay()If we're showing the filterEditor (showFilterEditoris true), andfilterByCellorfilterOnKeypressare enabled, this property is the delay in milliseconds between the user changing the filter and the filter request being sent to the server. If multiple changes are made to the filter within this fetch delay, only the most recent will actually cause a re-filter- Returns:
- Current fetchDelay value. Default value is 300
- See Also:
 
- 
setFetchFieldsFields that will be always requested from the server when the grid fetches data, even if they are not visible - may be either an array of fields or a CSV string.If fetchFieldshas been set, then aside from the declaredfetchFields, the full set of requested fields will always include the primary-key fields from the dataSource and any visible fields that are also DataSource fields - so if either aSavedSearchor thefieldsconfiguration includes fields not declared infetchFields, those fields will be requested from the server even if they are not included infetchFields.In addition, any fields that are referenced by declarative features, such as UserFormulaorListGridField.visibleWhen, will also be automatically included, even if not listed infetchFields. Also applies to declarativeexpansionandhovermodes, where fields required by those modes are also fetched.This means you can essentially set fetchFieldsto just fields that always need to be there, whether visible or not - such as fields that are required by custom grid logic (e.g. formatters, orcanEditCell()) or may be required when other components interact with the data (such as editing a record from the grid in a form viaDynamicForm.editSelectedData()).To enable the feature of causing just primary-keys, visible and declaratively required fields to be requested, without any specific additional fields, you can set fetchFieldsto the special value "*visible*". In order for application code to more easily build a list of fields, you may also include this special value in a compound string, such as "*visible*, field1, field2" - in this case, the special value is simply ignored, since visible fields are always requested iffetchFieldsis set to a value.If fetchFieldsincludes fields which do not appear in the dataSource, a warning is logged and those fields will not be requested from the server.Fields to be retrieved are communicated to the server via DSRequest.outputs.If a user dynamically shows additional fields (via the field picking menu, via Saved Search or another mechanism), and such fields are not currently loaded, the ListGrid will automatically invalidate the data cache and issue a new fetch with a different dsRequest.outputs setting in order to fetch the necessary data. If fetchFieldshas been set and outputs are also set via another mechanism (likefetchRequestProperties),fetchFieldswins.Note that since fetchFieldsultimately just setsDSRequest.outputs,DataSourceField.outputWhensettings will overridefetchFieldssettings. This also means that, currently,fetchFieldsis not supported by clientOnly DataSources, because they do not support dsRequest.outputs.Additionally, if OperationBinding.outputsis specified in a server-side .ds.xml file,fetchFieldswill only be able to request fields listed as valid server outputs. In general, client-specified outputs do not override server-specified outputs; client-specified outputs must be a subset of outputs listed on the server.- Parameters:
- fetchFields- New fetchFields value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFetchFieldsFields that will be always requested from the server when the grid fetches data, even if they are not visible - may be either an array of fields or a CSV string.If fetchFieldshas been set, then aside from the declaredfetchFields, the full set of requested fields will always include the primary-key fields from the dataSource and any visible fields that are also DataSource fields - so if either aSavedSearchor thefieldsconfiguration includes fields not declared infetchFields, those fields will be requested from the server even if they are not included infetchFields.In addition, any fields that are referenced by declarative features, such as UserFormulaorListGridField.visibleWhen, will also be automatically included, even if not listed infetchFields. Also applies to declarativeexpansionandhovermodes, where fields required by those modes are also fetched.This means you can essentially set fetchFieldsto just fields that always need to be there, whether visible or not - such as fields that are required by custom grid logic (e.g. formatters, orcanEditCell()) or may be required when other components interact with the data (such as editing a record from the grid in a form viaDynamicForm.editSelectedData()).To enable the feature of causing just primary-keys, visible and declaratively required fields to be requested, without any specific additional fields, you can set fetchFieldsto the special value "*visible*". In order for application code to more easily build a list of fields, you may also include this special value in a compound string, such as "*visible*, field1, field2" - in this case, the special value is simply ignored, since visible fields are always requested iffetchFieldsis set to a value.If fetchFieldsincludes fields which do not appear in the dataSource, a warning is logged and those fields will not be requested from the server.Fields to be retrieved are communicated to the server via DSRequest.outputs.If a user dynamically shows additional fields (via the field picking menu, via Saved Search or another mechanism), and such fields are not currently loaded, the ListGrid will automatically invalidate the data cache and issue a new fetch with a different dsRequest.outputs setting in order to fetch the necessary data. If fetchFieldshas been set and outputs are also set via another mechanism (likefetchRequestProperties),fetchFieldswins.Note that since fetchFieldsultimately just setsDSRequest.outputs,DataSourceField.outputWhensettings will overridefetchFieldssettings. This also means that, currently,fetchFieldsis not supported by clientOnly DataSources, because they do not support dsRequest.outputs.Additionally, if OperationBinding.outputsis specified in a server-side .ds.xml file,fetchFieldswill only be able to request fields listed as valid server outputs. In general, client-specified outputs do not override server-specified outputs; client-specified outputs must be a subset of outputs listed on the server.- Returns:
- Current fetchFields value. Default value is null
- See Also:
 
- 
setFetchFieldsFields that will be always requested from the server when the grid fetches data, even if they are not visible - may be either an array of fields or a CSV string.If fetchFieldshas been set, then aside from the declaredfetchFields, the full set of requested fields will always include the primary-key fields from the dataSource and any visible fields that are also DataSource fields - so if either aSavedSearchor thefieldsconfiguration includes fields not declared infetchFields, those fields will be requested from the server even if they are not included infetchFields.In addition, any fields that are referenced by declarative features, such as UserFormulaorListGridField.visibleWhen, will also be automatically included, even if not listed infetchFields. Also applies to declarativeexpansionandhovermodes, where fields required by those modes are also fetched.This means you can essentially set fetchFieldsto just fields that always need to be there, whether visible or not - such as fields that are required by custom grid logic (e.g. formatters, orcanEditCell()) or may be required when other components interact with the data (such as editing a record from the grid in a form viaDynamicForm.editSelectedData()).To enable the feature of causing just primary-keys, visible and declaratively required fields to be requested, without any specific additional fields, you can set fetchFieldsto the special value "*visible*". In order for application code to more easily build a list of fields, you may also include this special value in a compound string, such as "*visible*, field1, field2" - in this case, the special value is simply ignored, since visible fields are always requested iffetchFieldsis set to a value.If fetchFieldsincludes fields which do not appear in the dataSource, a warning is logged and those fields will not be requested from the server.Fields to be retrieved are communicated to the server via DSRequest.outputs.If a user dynamically shows additional fields (via the field picking menu, via Saved Search or another mechanism), and such fields are not currently loaded, the ListGrid will automatically invalidate the data cache and issue a new fetch with a different dsRequest.outputs setting in order to fetch the necessary data. If fetchFieldshas been set and outputs are also set via another mechanism (likefetchRequestProperties),fetchFieldswins.Note that since fetchFieldsultimately just setsDSRequest.outputs,DataSourceField.outputWhensettings will overridefetchFieldssettings. This also means that, currently,fetchFieldsis not supported by clientOnly DataSources, because they do not support dsRequest.outputs.Additionally, if OperationBinding.outputsis specified in a server-side .ds.xml file,fetchFieldswill only be able to request fields listed as valid server outputs. In general, client-specified outputs do not override server-specified outputs; client-specified outputs must be a subset of outputs listed on the server.- Parameters:
- fetchFields- New fetchFields value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFetchFieldsAsStringFields that will be always requested from the server when the grid fetches data, even if they are not visible - may be either an array of fields or a CSV string.If fetchFieldshas been set, then aside from the declaredfetchFields, the full set of requested fields will always include the primary-key fields from the dataSource and any visible fields that are also DataSource fields - so if either aSavedSearchor thefieldsconfiguration includes fields not declared infetchFields, those fields will be requested from the server even if they are not included infetchFields.In addition, any fields that are referenced by declarative features, such as UserFormulaorListGridField.visibleWhen, will also be automatically included, even if not listed infetchFields. Also applies to declarativeexpansionandhovermodes, where fields required by those modes are also fetched.This means you can essentially set fetchFieldsto just fields that always need to be there, whether visible or not - such as fields that are required by custom grid logic (e.g. formatters, orcanEditCell()) or may be required when other components interact with the data (such as editing a record from the grid in a form viaDynamicForm.editSelectedData()).To enable the feature of causing just primary-keys, visible and declaratively required fields to be requested, without any specific additional fields, you can set fetchFieldsto the special value "*visible*". In order for application code to more easily build a list of fields, you may also include this special value in a compound string, such as "*visible*, field1, field2" - in this case, the special value is simply ignored, since visible fields are always requested iffetchFieldsis set to a value.If fetchFieldsincludes fields which do not appear in the dataSource, a warning is logged and those fields will not be requested from the server.Fields to be retrieved are communicated to the server via DSRequest.outputs.If a user dynamically shows additional fields (via the field picking menu, via Saved Search or another mechanism), and such fields are not currently loaded, the ListGrid will automatically invalidate the data cache and issue a new fetch with a different dsRequest.outputs setting in order to fetch the necessary data. If fetchFieldshas been set and outputs are also set via another mechanism (likefetchRequestProperties),fetchFieldswins.Note that since fetchFieldsultimately just setsDSRequest.outputs,DataSourceField.outputWhensettings will overridefetchFieldssettings. This also means that, currently,fetchFieldsis not supported by clientOnly DataSources, because they do not support dsRequest.outputs.Additionally, if OperationBinding.outputsis specified in a server-side .ds.xml file,fetchFieldswill only be able to request fields listed as valid server outputs. In general, client-specified outputs do not override server-specified outputs; client-specified outputs must be a subset of outputs listed on the server.- Returns:
- Current fetchFields value. Default value is null
- See Also:
 
- 
setFetchRequestPropertiespublic ListGrid setFetchRequestProperties(DSRequest fetchRequestProperties) throws IllegalStateException IfautoFetchDataistrue, this attribute allows the developer to declaratively specifyDSRequestproperties for the initialfetchData()call.Note that any properties governing more specific request attributes for the initial fetch (such as autoFetchTextMatchStyleand initial sort specifiers) will be applied on top of this properties block.- Parameters:
- fetchRequestProperties- New fetchRequestProperties value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getFetchRequestPropertiesIfautoFetchDataistrue, this attribute allows the developer to declaratively specifyDSRequestproperties for the initialfetchData()call.Note that any properties governing more specific request attributes for the initial fetch (such as autoFetchTextMatchStyleand initial sort specifiers) will be applied on top of this properties block.- Returns:
- Current fetchRequestProperties value. Default value is null
- See Also:
 
- 
setFieldCriteriaTextThe field criteria prefix to show in filter editor field hover before the descriptive version of the field's criteria, if any. The descriptive text is formatted byDataSource.getAdvancedCriteriaDescription().- Parameters:
- fieldCriteriaText- New fieldCriteriaText value. Default value is "Field criteria:"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getFieldCriteriaTextThe field criteria prefix to show in filter editor field hover before the descriptive version of the field's criteria, if any. The descriptive text is formatted byDataSource.getAdvancedCriteriaDescription().- Returns:
- Current fieldCriteriaText value. Default value is "Field criteria:"
- See Also:
 
- 
setFieldPickerFieldPropertiespublic ListGrid setFieldPickerFieldProperties(String... fieldPickerFieldProperties) throws IllegalStateException Names of properties onListGridFieldfor which theFieldPickershould show an editing interface, for convenience.For example, specify ["frozen", "decimalPrecision"] to allow end users to modify ListGridField.frozenandListGridField.decimalPrecisionrespectively.- Parameters:
- fieldPickerFieldProperties- New fieldPickerFieldProperties value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getFieldPickerFieldPropertiesNames of properties onListGridFieldfor which theFieldPickershould show an editing interface, for convenience.For example, specify ["frozen", "decimalPrecision"] to allow end users to modify ListGridField.frozenandListGridField.decimalPrecisionrespectively.- Returns:
- Current fieldPickerFieldProperties value. Default value is null
 
- 
setFieldPickerShowSampleValuespublic ListGrid setFieldPickerShowSampleValues(Boolean fieldPickerShowSampleValues) throws IllegalStateException When set to false, sample values of the FieldPicker are never shown. This property applies to the entire FieldPicker.- Parameters:
- fieldPickerShowSampleValues- New fieldPickerShowSampleValues value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getFieldPickerShowSampleValuesWhen set to false, sample values of the FieldPicker are never shown. This property applies to the entire FieldPicker.- Returns:
- Current fieldPickerShowSampleValues value. Default value is true
 
- 
getFieldPickerWindowInstance ofFieldPickerWindowused ifuseAdvancedFieldPickeris set.This component is an AutoChild named "fieldPickerWindow". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current fieldPickerWindow value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setFieldsAn array of field objects, specifying the order, layout, formatting, and sorting behavior of each field in the listGrid object. In ListGrids, the fields array specifies columns. Each field in the fields array is a ListGridField object. Any listGrid that will display data should have at least one visible field.If dataSourceis also set, this value acts as a set of overrides as explained inDataBoundComponent.fields.Note: grids with useAllDataSourceFields:truewill render the full set of dataSource fields in the order in which they are defined in the dataSource - in this usage the component fields array is just a way to customize the appearance of individual fields.Grids with canPickOmittedFields:truewill only show the explicitly specified set of fields, but will similarly show them in the order in which they're defined within the dataSource.
 If this method is called after the component has been drawn/initialized: Sets the fields array and/or field widths to newFields and sizes, respectively.If newFields is specified, it is assumed that the new fields may have nothing in common with the old fields, and the component is substantially rebuilt. Furthermore, it's invalid to modify any of the existing ListGridFields after they've been passed to this function. Consider the following methods for more efficient, more incremental changes:resizeField(),reorderField(),showField(),hideField(), orsetFieldProperties().Two specific values of newFields have explicit meanings: - null - a newFields value of nullindicates there are no field overrides. All current fields are removed and, if the grid is bound to aDataSource, the "default binding" is used. (seeDataBoundComponent.fields).
- empty array - providing an empty array for the newFields indicates that no fields are desired even if a dataSource is provided.
 - Parameters:
- fields- array of fields to draw. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- null - a newFields value of 
- 
getFieldsAn array of field objects, specifying the order, layout, formatting, and sorting behavior of each field in the listGrid object. In ListGrids, the fields array specifies columns. Each field in the fields array is a ListGridField object. Any listGrid that will display data should have at least one visible field.If dataSourceis also set, this value acts as a set of overrides as explained inDataBoundComponent.fields.Note: grids with useAllDataSourceFields:truewill render the full set of dataSource fields in the order in which they are defined in the dataSource - in this usage the component fields array is just a way to customize the appearance of individual fields.Grids with canPickOmittedFields:truewill only show the explicitly specified set of fields, but will similarly show them in the order in which they're defined within the dataSource.- Returns:
- Get the array of all currently visible fields for this ListGrid. This list fields is only valid once the ListGrid has been drawnor oncesetFields()has been called explicitly. If called earlier, only the list of directly specified fields will be returned (the Array passed to create()).This Array should be treated as read-only. To modify the set of visible fields, use showField(),hideField()and related APIs. To update properties of individual fields, usesetFieldProperties()or more specific APIs such assetFieldTitle().To get the Array of all fields, including fields that are not currently visible or were specified implicitly, use getAllFields(). Default value is null
- See Also:
 
- 
setFieldStateInitialfield statefor the grid.ViewStatecan be used to initialize all view properties of the grid. When doing so,fieldStateis not needed becauseviewStateincludes it as well. If both are provided,fieldStatehas priority for field state.
 If this method is called after the component has been drawn/initialized: Sets some presentation properties (visibility, width, userFormula and userSummary) of the listGrid fields based on theListGridFieldStateobject passed in.
 Used to restore previous state retrieved from the grid by a call togetFieldState().The optional isSparseparameter may be passed to indicate whether the fieldState object is "sparse" - whether it includes explicit state information for hidden fields. In this case any fields defined on the component not explicitly included in the fieldState object will be hidden.
 IfisSparseis not explicitly passed as a parameter, sparseness will be assumed ifDataBoundComponent.sparseFieldStateis true.- Parameters:
- fieldState- state to apply to the listGrid's fields. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFieldStateInitialfield statefor the grid.ViewStatecan be used to initialize all view properties of the grid. When doing so,fieldStateis not needed becauseviewStateincludes it as well. If both are provided,fieldStatehas priority for field state.- Returns:
- Returns a snapshot of the current presentation of this listGrid's fields as a ListGridFieldStateobject.This object can later be passed to setFieldState()to reset this grid's fields to the current state.Note that the information stored includes the current width and visibility of each of this grid's fields, as well as any formulaorsummary fieldsadded by the user.The optional sparseparameter governs whether the returned field state should omit state information for hidden fields. If this parameter is not passed explicitly, field state will be sparse ifDataBoundComponent.sparseFieldStateis true.
 When applying sparse field state to a component viasetFieldState(), any explicitly defined fields on the component that were not captured in the stored state object will be hidden. Default value is null
- See Also:
 
- 
setFilterButtonPromptThe prompt to show when the mouse hovers over the Filter button in the FilterEditor.- Parameters:
- filterButtonPrompt- New filterButtonPrompt value. Default value is "Filter"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getFilterButtonPromptThe prompt to show when the mouse hovers over the Filter button in the FilterEditor.- Returns:
- Current filterButtonPrompt value. Default value is "Filter"
 
- 
setFilterButtonPropertiespublic ListGrid setFilterButtonProperties(Button filterButtonProperties) throws IllegalStateException IfshowFilterEditoris true, this attribute may be used to customize the filter button shown to the right of the filterEditor row.- Parameters:
- filterButtonProperties- New filterButtonProperties value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getFilterButtonPropertiesIfshowFilterEditoris true, this attribute may be used to customize the filter button shown to the right of the filterEditor row.- Returns:
- Current filterButtonProperties value. Default value is null
 
- 
setFilterByCellIf we're showing thefilterEditor, should this list be filtered every time the user changes edit values for particular cells rather than waiting for an Enter keypress or a click on the filterEditor submit button.Note that by default fields in the filter editor will be set to changeOnKeypress:false, so the grid will not filter as the user types in text-based items.
 To enable filtering as the user types in text fields, we recommend thefilterOnKeypressattribute. Also note thatfilterOnKeypress:trueimplies filtering will occur on change to edit values for cells, even iffilterByCellis not set to true.Note : This is an advanced setting - Parameters:
- filterByCell- New filterByCell value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFilterByCellpublic boolean getFilterByCell()If we're showing thefilterEditor, should this list be filtered every time the user changes edit values for particular cells rather than waiting for an Enter keypress or a click on the filterEditor submit button.Note that by default fields in the filter editor will be set to changeOnKeypress:false, so the grid will not filter as the user types in text-based items.
 To enable filtering as the user types in text fields, we recommend thefilterOnKeypressattribute. Also note thatfilterOnKeypress:trueimplies filtering will occur on change to edit values for cells, even iffilterByCellis not set to true.- Returns:
- Current filterByCell value. Default value is true
- See Also:
 
- 
getFilterEditorIfshowFilterEditoris set to true, thefilterEditoris automatically created as an AutoChild.The filterEditor autoChild is a RecordEditor- essentially it is a specialized listGrid in edit mode for editing a single set of values to be used as criteria. Once created, developers may access it and use standard listGrid APIs to interact with it. For example, given a listGridmyListGrid, live edit items could be accessed via
 myListGrid.getFilterEditor().getEditFormItem(someFieldName);Developers may configure the AutoChild using filterEditorProperties.This component is an AutoChild named "filterEditor". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current filterEditor value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
- See Also:
 
- 
setFilterEditorHeightHeight for the filterEditor, if shown.- Parameters:
- filterEditorHeight- New filterEditorHeight value. Default value is 22
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getFilterEditorHeightpublic int getFilterEditorHeight()Height for the filterEditor, if shown.- Returns:
- Current filterEditorHeight value. Default value is 22
 
- 
setFilterEditorPropertiespublic ListGrid setFilterEditorProperties(RecordEditor filterEditorProperties) throws IllegalStateException Properties to apply to the automatically generatedfilterEditorifshowFilterEditoris true.- Parameters:
- filterEditorProperties- New filterEditorProperties value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getFilterEditorPropertiesProperties to apply to the automatically generatedfilterEditorifshowFilterEditoris true.- Returns:
- Current filterEditorProperties value. Default value is null
 
- 
setFilterLocalDataCauses filtering to be performed against the local data set, even when adataSourceis provided.When using this mode, data must be provided to the grid via setData(), and must be provided as a RecordList.Note that a dataSourcemust be provided for filtering to occur even when filtering locally.If this property is set to true, the supplied data is applied as the complete datasetof aResultSet, which is then filtered according to the specified criteria, and the results displayed. If false, a normal databound fetch will occur, retrieving records that match the specified criteria from this component'sdataSource.filterLocalDataincludes both calls tofetchData()andfilterData()as well as automatic filtering when thefilterEditoris enabled.If this property is not explicitly set, default behavior will filter against the dataSource unless the grid has a specified dataPath, in which case filtering will occur locally.See also saveLocallyto cause saves to ignore the DataSource and affect the local data set only.Note : This is an advanced setting - Parameters:
- filterLocalData- New filterLocalData value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getFilterLocalDataCauses filtering to be performed against the local data set, even when adataSourceis provided.When using this mode, data must be provided to the grid via setData(), and must be provided as a RecordList.Note that a dataSourcemust be provided for filtering to occur even when filtering locally.If this property is set to true, the supplied data is applied as the complete datasetof aResultSet, which is then filtered according to the specified criteria, and the results displayed. If false, a normal databound fetch will occur, retrieving records that match the specified criteria from this component'sdataSource.filterLocalDataincludes both calls tofetchData()andfilterData()as well as automatic filtering when thefilterEditoris enabled.If this property is not explicitly set, default behavior will filter against the dataSource unless the grid has a specified dataPath, in which case filtering will occur locally.See also saveLocallyto cause saves to ignore the DataSource and affect the local data set only.- Returns:
- Current filterLocalData value. Default value is null
 
- 
setFilterOnKeypressWhen this attribute is true and this component has been assigned asearchFormor is showing thefilterEditor, data will be filtered automatically as users change values in those components.In the filterEditorcase, this is equivalent to settingFormItem.changeOnKeypressto true for each text-based field in theListGridField.filterEditorPropertieswhenfilterByCellis true.- Parameters:
- filterOnKeypress- New filterOnKeypress value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFilterOnKeypresspublic boolean getFilterOnKeypress()When this attribute is true and this component has been assigned asearchFormor is showing thefilterEditor, data will be filtered automatically as users change values in those components.In the filterEditorcase, this is equivalent to settingFormItem.changeOnKeypressto true for each text-based field in theListGridField.filterEditorPropertieswhenfilterByCellis true.- Returns:
- Current filterOnKeypress value. Default value is false
- See Also:
 
- 
setFilterUsingTextText for the menu item shown in theheaderContextMenuwhenallowFilterOperatorsis enabled.- Parameters:
- filterUsingText- New filterUsingText value. Default value is "Filter using"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getFilterUsingTextText for the menu item shown in theheaderContextMenuwhenallowFilterOperatorsis enabled.- Returns:
- Current filterUsingText value. Default value is "Filter using"
 
- 
setFilterViaAIModeIf filtering of the grid is enabled and AIis enabled, filtering-via-AI can be enabled by setting theAIServiceModeto use.- Parameters:
- filterViaAIMode- New filterViaAIMode value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getFilterViaAIModeIf filtering of the grid is enabled and AIis enabled, filtering-via-AI can be enabled by setting theAIServiceModeto use.- Returns:
- Current filterViaAIMode value. Default value is null
 
- 
setFilterViaAIPanelInstructionspublic ListGrid setFilterViaAIPanelInstructions(String filterViaAIPanelInstructions) throws IllegalStateException The instruction text to display above the "Filter via AI" text box.- Parameters:
- filterViaAIPanelInstructions- New filterViaAIPanelInstructions value. Default value is "Alternatively, you can use AI to help create a filter for you, by describing the criteria using natural language."
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getFilterViaAIPanelInstructionsThe instruction text to display above the "Filter via AI" text box.- Returns:
- Current filterViaAIPanelInstructions value. Default value is "Alternatively, you can use AI to help create a filter for you, by describing the criteria using natural language."
- See Also:
 
- 
setFilterViaAITextTitle for the menu-item displayed in this component's header context-menu whenAI-assisted filteringis allowed.- Parameters:
- filterViaAIText- New filterViaAIText value. Default value is "Filter via AI..."
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFilterViaAITextTitle for the menu-item displayed in this component's header context-menu whenAI-assisted filteringis allowed.- Returns:
- Current filterViaAIText value. Default value is "Filter via AI..."
- See Also:
 
- 
getFilterWindowInstance ofWindowused toshowtheFilterBuilder.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.By default the FilterBuildershows with the top operator selection as a radio group and allows switching between simple and advanced modes. These defaults can be changed usingautoChildfeatures such as settingfilterWindowFilterproperties on a grid instance or globally by changing theListGriddefaults.For example, to always use advanced mode on a single grid: FilterBuilder filterBuilderProperties = new FilterBuilder(); filterBuilderProperties.setTopOperatorAppearance(TopOperatorAppearance.BRACKET); filterBuilderProperties.setShowModeSwitcher(false); ListGrid listGrid = new ListGrid(); listGrid.setAutoChildProperties("filterWindowFilter", filterBuilderProperties);or to always use advanced mode:ListGrid.changeAutoChildDefaults("filterWindowFilter", filterBuilderProperties);This component is an AutoChild named "filterWindow". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current filterWindow value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setFilterWindowCriteriaAdvanced filtering criteria, eithersimpleoradvanced, that is combined with thefilter editor criteriaduring filtering.This criteria is normally configured via advanced filtering dialogshown because of theallowFilterWindowoption but can be assigned directly as well.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.
 If this method is called after the component has been drawn/initialized: Setter forfilterWindowCriteria.- Parameters:
- filterWindowCriteria- criteria for advanced filtering. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getFilterWindowCriteriaAdvanced filtering criteria, eithersimpleoradvanced, that is combined with thefilter editor criteriaduring filtering.This criteria is normally configured via advanced filtering dialogshown because of theallowFilterWindowoption but can be assigned directly as well.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.- Returns:
- Returns the current filterWindowCriteria. Default value is null
 
- 
getFilterWindowCriteriaIndicatorInstance ofCanvasused to show visual indicator thatfilterWindowCriteriais configured.showFilterWindowCriteriaIndicatormust be enabled to show indicator.This component is an AutoChild named "filterWindowCriteriaIndicator". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current filterWindowCriteriaIndicator value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
getFilterWindowFilterInstance ofFilterBuildershown infilterWindowbyshowFilterWindow(). SeefilterWindowfor more information on the filter defaults and changing them.This component is an AutoChild named "filterWindowFilter". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current filterWindowFilter value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setFilterWindowInstructionspublic ListGrid setFilterWindowInstructions(String filterWindowInstructions) throws IllegalStateException The instruction text to display at the top of thefilterWindow.- Parameters:
- filterWindowInstructions- New filterWindowInstructions value. Default value is "Enter criteria below. These criteria are <i>in addition to</i> any criteria entered in the filter immediately above column headers."
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getFilterWindowInstructionsThe instruction text to display at the top of thefilterWindow.- Returns:
- Current filterWindowInstructions value. Default value is "Enter criteria below. These criteria are <i>in addition to</i> any criteria entered in the filter immediately above column headers."
- See Also:
 
- 
setFilterWindowTitleThe title for theadvanced filtering window.- Parameters:
- filterWindowTitle- New filterWindowTitle value. Default value is "Advanced Filtering"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getFilterWindowTitleThe title for theadvanced filtering window.- Returns:
- Current filterWindowTitle value. Default value is "Advanced Filtering"
- See Also:
 
- 
setFirstCellStyleThe style to apply to the first cell in each row, whenstyledRowEndsis true. Note that this style is additional to the regular cell styling and should not introduce settings that change the layout or size of the cell, such as padding or font-size. The styling will work with any design, and is also applied correctly with or without frozen fields.If all you want to do is provide rounded-corners for records in this grid, it may be simpler to set recordRadiusto a CSS border-radius string that achieves the rounding you want.- Parameters:
- firstCellStyle- New firstCellStyle value. Default value is "gridFirstCell"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFirstCellStyleThe style to apply to the first cell in each row, whenstyledRowEndsis true. Note that this style is additional to the regular cell styling and should not introduce settings that change the layout or size of the cell, such as padding or font-size. The styling will work with any design, and is also applied correctly with or without frozen fields.If all you want to do is provide rounded-corners for records in this grid, it may be simpler to set recordRadiusto a CSS border-radius string that achieves the rounding you want.- Returns:
- Current firstCellStyle value. Default value is "gridFirstCell"
- See Also:
 
- 
setFixedFieldWidthsShould we horizontally clip cell contents, or allow columns to expand horizontally to show all contents?If we allow columns to expand, the column width is treated as a minimum. NOTE: the header does not automatically respond to expanded field widths. If your grid is showing a header we'd recommend developers consider setting autoFitFieldWidthsrather than using this attribute.Note : This is an advanced setting - Parameters:
- fixedFieldWidths- New fixedFieldWidths value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getFixedFieldWidthsShould we horizontally clip cell contents, or allow columns to expand horizontally to show all contents?If we allow columns to expand, the column width is treated as a minimum. NOTE: the header does not automatically respond to expanded field widths. If your grid is showing a header we'd recommend developers consider setting autoFitFieldWidthsrather than using this attribute.- Returns:
- Current fixedFieldWidths value. Default value is true
 
- 
setFixedRecordHeightsShould we vertically clip cell contents, or allow rows to expand vertically to show all contents?If we allow rows to expand, the row height as derived from getRowHeight()or the defaultcellHeightis treated as a minimum.Setting fixedRecordHeightsto false enables thevirtualScrollingsystem.NOTE: - Setting
 fixedRecordHeights to false for CubeGridis not supported, though a similar option for the row headers is available asCubeGrid.autoSizeHeaders.
- By default, for performance reasons, clipping is not enforced for some kinds of content
 (such as images) on all browsers.  Set enforceVClipping:trueto enforce clipping for all types of content on all browsers.
 
 If this method is called after the component has been drawn/initialized: Setter forfixedRecordHeightsNote : This is an advanced setting - Parameters:
- fixedRecordHeights- New fixedRecordHeights value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- Setting
 fixedRecordHeights to false for 
- 
getFixedRecordHeightsShould we vertically clip cell contents, or allow rows to expand vertically to show all contents?If we allow rows to expand, the row height as derived from getRowHeight()or the defaultcellHeightis treated as a minimum.Setting fixedRecordHeightsto false enables thevirtualScrollingsystem.NOTE: - Setting
 fixedRecordHeights to false for CubeGridis not supported, though a similar option for the row headers is available asCubeGrid.autoSizeHeaders.
- By default, for performance reasons, clipping is not enforced for some kinds of content
 (such as images) on all browsers.  Set enforceVClipping:trueto enforce clipping for all types of content on all browsers.
 - Returns:
- Current fixedRecordHeights value. Default value is true
- See Also:
 
- Setting
 fixedRecordHeights to false for 
- 
setFormulaBuilderSpanTitleSeparatorIf this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInFormulaBuilderis true, this string will be inserted between the headerSpan title(s) and the field title in the field chooser grid in the FormulaBuilder and SummaryBuilder.- Parameters:
- formulaBuilderSpanTitleSeparator- New formulaBuilderSpanTitleSeparator value. Default value is " - "
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getFormulaBuilderSpanTitleSeparatorIf this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInFormulaBuilderis true, this string will be inserted between the headerSpan title(s) and the field title in the field chooser grid in the FormulaBuilder and SummaryBuilder.- Returns:
- Current formulaBuilderSpanTitleSeparator value. Default value is " - "
 
- 
setFreezeFieldTextIf we're showing aheaderContextMenufor this grid andthis.canFreezeFieldsis true, this string will be shown as the title for the menu item to freeze a currently unfrozen field.This is a dynamic string - text within ${...}will be evaluated as JS code when the message is displayed, withtitleavailable as a variable containing the field title.Default value returns "Freeze " + the field's summary title. Note : This is an advanced setting - Parameters:
- freezeFieldText- New freezeFieldText value. Default value is "Freeze ${title}"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFreezeFieldTextIf we're showing aheaderContextMenufor this grid andthis.canFreezeFieldsis true, this string will be shown as the title for the menu item to freeze a currently unfrozen field.This is a dynamic string - text within ${...}will be evaluated as JS code when the message is displayed, withtitleavailable as a variable containing the field title.Default value returns "Freeze " + the field's summary title. - Returns:
- Current freezeFieldText value. Default value is "Freeze ${title}"
- See Also:
 
- 
setFrozenBaseStyleIf this listGrid contains any frozen fields, this property can be used to apply a custom baseStyle to all cells in those frozen fields. If unset, the standard base style will be used for both frozen and unfrozen cells.- Parameters:
- frozenBaseStyle- New frozenBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFrozenBaseStyleIf this listGrid contains any frozen fields, this property can be used to apply a custom baseStyle to all cells in those frozen fields. If unset, the standard base style will be used for both frozen and unfrozen cells.- Returns:
- Current frozenBaseStyle value. Default value is null
- See Also:
 
- 
setFrozenBodyStyleNameCSS style used for thefrozen-bodyof this grid. If applying a background-color to the body via a CSS style applied using this property, be sure to setbodyBackgroundColortonull.- Parameters:
- frozenBodyStyleName- New frozenBodyStyleName value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getFrozenBodyStyleNameCSS style used for thefrozen-bodyof this grid. If applying a background-color to the body via a CSS style applied using this property, be sure to setbodyBackgroundColortonull.- Returns:
- Current frozenBodyStyleName value. Default value is null
- See Also:
 
- 
setFrozenFieldsMaxWidthMaximum width available for anyfrozen fieldsshown in this grid. May be specified as a percentage or numeric pixel value.If the frozen fields' combined width exceeds this value, a horizontal scrollbar will be shown, allowing the frozen fields to be horizontally scrolled (independently from the unfrozen fields). 
 If this method is called after the component has been drawn/initialized: Setter for thefrozenFieldsMaxWidthattribute- Parameters:
- frozenFieldsMaxWidth- new maximum width for frozen fields. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getFrozenFieldsMaxWidthMaximum width available for anyfrozen fieldsshown in this grid. May be specified as a percentage or numeric pixel value.If the frozen fields' combined width exceeds this value, a horizontal scrollbar will be shown, allowing the frozen fields to be horizontally scrolled (independently from the unfrozen fields). - Returns:
- Current frozenFieldsMaxWidth value. Default value is null
 
- 
setFrozenFieldsMaxWidthMaximum width available for anyfrozen fieldsshown in this grid. May be specified as a percentage or numeric pixel value.If the frozen fields' combined width exceeds this value, a horizontal scrollbar will be shown, allowing the frozen fields to be horizontally scrolled (independently from the unfrozen fields). 
 If this method is called after the component has been drawn/initialized: Setter for thefrozenFieldsMaxWidthattribute- Parameters:
- frozenFieldsMaxWidth- new maximum width for frozen fields. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getFrozenFieldsMaxWidthAsIntMaximum width available for anyfrozen fieldsshown in this grid. May be specified as a percentage or numeric pixel value.If the frozen fields' combined width exceeds this value, a horizontal scrollbar will be shown, allowing the frozen fields to be horizontally scrolled (independently from the unfrozen fields). - Returns:
- Current frozenFieldsMaxWidth value. Default value is null
 
- 
setFrozenHeaderBaseStyleIf this listGrid contains any frozen fields, this property can be used to apply a custom headerBaseStyle to the frozen set of fields. If unset, the standard headerBaseStyle will be used for both frozen and unfrozen cells.- Parameters:
- frozenHeaderBaseStyle- New frozenHeaderBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getFrozenHeaderBaseStyleIf this listGrid contains any frozen fields, this property can be used to apply a custom headerBaseStyle to the frozen set of fields. If unset, the standard headerBaseStyle will be used for both frozen and unfrozen cells.- Returns:
- Current frozenHeaderBaseStyle value. Default value is null
- See Also:
 
- 
setFrozenHeaderTitleStylepublic ListGrid setFrozenHeaderTitleStyle(String frozenHeaderTitleStyle) throws IllegalStateException If this listGrid contains any frozen fields, this property can be used to apply a custom headerTitleStyle to the frozen set of fields. If unset, the standard headerTitleStyle will be used for both frozen and unfrozen cells.- Parameters:
- frozenHeaderTitleStyle- New frozenHeaderTitleStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getFrozenHeaderTitleStyleIf this listGrid contains any frozen fields, this property can be used to apply a custom headerTitleStyle to the frozen set of fields. If unset, the standard headerTitleStyle will be used for both frozen and unfrozen cells.- Returns:
- Current frozenHeaderTitleStyle value. Default value is null
- See Also:
 
- 
setFullRowRangeDisplayValueDynamic String specifying the format for therow range summary valuewhenRowRangeDisplayStyleis set to"full".The following variables are available for evaluation within this string: - rowRange: the- formatted row range
- rowCount: the- formatted row count
 - Parameters:
- fullRowRangeDisplayValue- New fullRowRangeDisplayValue value. Default value is "Showing ${rowRange} of ${rowCount} rows"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getFullRowRangeDisplayValueDynamic String specifying the format for therow range summary valuewhenRowRangeDisplayStyleis set to"full".The following variables are available for evaluation within this string: - rowRange: the- formatted row range
- rowCount: the- formatted row count
 - Returns:
- Current fullRowRangeDisplayValue value. Default value is "Showing ${rowRange} of ${rowCount} rows"
 
- 
setGenerateClickOnEnterIf true, when the user navigates to a cell using arrow keys and hits Enter, the cell will respond to a click event.Note : This is an advanced setting - Parameters:
- generateClickOnEnter- New generateClickOnEnter value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getGenerateClickOnEnterIf true, when the user navigates to a cell using arrow keys and hits Enter, the cell will respond to a click event.- Returns:
- Current generateClickOnEnter value. Default value is false
 
- 
setGenerateClickOnSpaceIf true, when the user navigates to a cell using arrow keys and hits space, the cell will respond to a click event.Note : This is an advanced setting - Parameters:
- generateClickOnSpace- New generateClickOnSpace value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getGenerateClickOnSpaceIf true, when the user navigates to a cell using arrow keys and hits space, the cell will respond to a click event.- Returns:
- Current generateClickOnSpace value. Default value is true
 
- 
setGenerateDoubleClickOnEnterIf true, when the user navigates to a cell using arrow keys and hits Enter, the cell will respond to a double click event.Note : This is an advanced setting - Parameters:
- generateDoubleClickOnEnter- New generateDoubleClickOnEnter value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getGenerateDoubleClickOnEnterIf true, when the user navigates to a cell using arrow keys and hits Enter, the cell will respond to a double click event.- Returns:
- Current generateDoubleClickOnEnter value. Default value is true
 
- 
setGenerateDoubleClickOnSpaceIf true, when the user navigates to a cell using arrow keys and hits Space, the cell will respond to a double click event.Note : This is an advanced setting - Parameters:
- generateDoubleClickOnSpace- New generateDoubleClickOnSpace value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getGenerateDoubleClickOnSpaceIf true, when the user navigates to a cell using arrow keys and hits Space, the cell will respond to a double click event.- Returns:
- Current generateDoubleClickOnSpace value. Default value is false
 
- 
setGridAdditionalCriteriaTextpublic ListGrid setGridAdditionalCriteriaText(String gridAdditionalCriteriaText) throws IllegalStateException The additional criteria prefix to show in filter editor field hover, the filter action button or the sorter button before the descriptive version of thefilterWindowCriteria, if any. The descriptive text is formatted byDataSource.getAdvancedCriteriaDescription().- Parameters:
- gridAdditionalCriteriaText- New gridAdditionalCriteriaText value. Default value is "Grid additional criteria:"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getGridAdditionalCriteriaTextThe additional criteria prefix to show in filter editor field hover, the filter action button or the sorter button before the descriptive version of thefilterWindowCriteria, if any. The descriptive text is formatted byDataSource.getAdvancedCriteriaDescription().- Returns:
- Current gridAdditionalCriteriaText value. Default value is "Grid additional criteria:"
- See Also:
 
- 
setGridComponentsArray of components that make up this grid. This array controls which standard and/or custom parts will be displayed within this ListGrid.ListGrid is a subclass of VLayoutand consists of a number of member components. The standard set of members are automatically generated by the grid, and include (for example) the header (a Toolbar of buttons for each field) and the body (a GridRenderer displaying the actual data contained in the grid).
 The default value ofgridComponentsis an Array ofListGridComponents listing the standard components in their default order:[ListGridComponent.FILTER_EDITOR, ListGridComponent.HEADER, ListGridComponent.BODY, ListGridComponent.SUMMARY_ROW]You can overridegridComponentsto change the order of standard components. You can also omit standard components this way, although it more efficient to use the related "show" property if available (egshowFilterEditor). Note that this array must contain an entry for the"body"- listGrids with no body showing are unsupported.
 Advanced note: The live components generated for each of these standardListGridComponenttypes may differ across different listGrids. For example if this grid has anyfrozen fields, the "body" entry will actually be created as an HLayout containing two GridRenderers (one for frozen fields, and one for unfrozen fields). This is really an implementation detail - the "body" entry in the gridComponents array simply specifies where the UI for the body should render within the ListGrid layout.By embedding a Canvas directly in this list you can add arbitrary additional components to the listGrid as members, and have them be displayed alongside the standard automatically generated parts of the ListGrid. Note that having added controls to gridComponents, you can still call APIs directly on those controls to change their appearance, and you can also show() and hide() them if they should not be shown in some circumstances. Tip: custom controls need to set layoutAlign:"center" to appear vertically centered. See this example of subclassing ListGrid and using gridComponents to add a tool bar with standard functions that you want throughout your application. - Parameters:
- gridComponents- New gridComponents value. Default value is (see below)
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getGridComponentsArray of components that make up this grid. This array controls which standard and/or custom parts will be displayed within this ListGrid.ListGrid is a subclass of VLayoutand consists of a number of member components. The standard set of members are automatically generated by the grid, and include (for example) the header (a Toolbar of buttons for each field) and the body (a GridRenderer displaying the actual data contained in the grid).
 The default value ofgridComponentsis an Array ofListGridComponents listing the standard components in their default order:[ListGridComponent.FILTER_EDITOR, ListGridComponent.HEADER, ListGridComponent.BODY, ListGridComponent.SUMMARY_ROW]You can overridegridComponentsto change the order of standard components. You can also omit standard components this way, although it more efficient to use the related "show" property if available (egshowFilterEditor). Note that this array must contain an entry for the"body"- listGrids with no body showing are unsupported.
 Advanced note: The live components generated for each of these standardListGridComponenttypes may differ across different listGrids. For example if this grid has anyfrozen fields, the "body" entry will actually be created as an HLayout containing two GridRenderers (one for frozen fields, and one for unfrozen fields). This is really an implementation detail - the "body" entry in the gridComponents array simply specifies where the UI for the body should render within the ListGrid layout.By embedding a Canvas directly in this list you can add arbitrary additional components to the listGrid as members, and have them be displayed alongside the standard automatically generated parts of the ListGrid. Note that having added controls to gridComponents, you can still call APIs directly on those controls to change their appearance, and you can also show() and hide() them if they should not be shown in some circumstances. Tip: custom controls need to set layoutAlign:"center" to appear vertically centered. See this example of subclassing ListGrid and using gridComponents to add a tool bar with standard functions that you want throughout your application. - Returns:
- Current gridComponents value. Default value is (see below)
 
- 
setGridComponentsArray of components that make up this grid. This array controls which standard and/or custom parts will be displayed within this ListGrid.ListGrid is a subclass of VLayoutand consists of a number of member components. The standard set of members are automatically generated by the grid, and include (for example) the header (a Toolbar of buttons for each field) and the body (a GridRenderer displaying the actual data contained in the grid).
 The default value ofgridComponentsis an Array ofListGridComponents listing the standard components in their default order:[ListGridComponent.FILTER_EDITOR, ListGridComponent.HEADER, ListGridComponent.BODY, ListGridComponent.SUMMARY_ROW]You can overridegridComponentsto change the order of standard components. You can also omit standard components this way, although it more efficient to use the related "show" property if available (egshowFilterEditor). Note that this array must contain an entry for the"body"- listGrids with no body showing are unsupported.
 Advanced note: The live components generated for each of these standardListGridComponenttypes may differ across different listGrids. For example if this grid has anyfrozen fields, the "body" entry will actually be created as an HLayout containing two GridRenderers (one for frozen fields, and one for unfrozen fields). This is really an implementation detail - the "body" entry in the gridComponents array simply specifies where the UI for the body should render within the ListGrid layout.By embedding a Canvas directly in this list you can add arbitrary additional components to the listGrid as members, and have them be displayed alongside the standard automatically generated parts of the ListGrid. Note that having added controls to gridComponents, you can still call APIs directly on those controls to change their appearance, and you can also show() and hide() them if they should not be shown in some circumstances. Tip: custom controls need to set layoutAlign:"center" to appear vertically centered. See this example of subclassing ListGrid and using gridComponents to add a tool bar with standard functions that you want throughout your application. - Parameters:
- gridComponents- New gridComponents value. Default value is (see below)
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
setGridSummaryRecordPropertyIfshowGridSummaryis true, this attribute will be set to true on the record object representing the grid summary row.- Parameters:
- gridSummaryRecordProperty- New gridSummaryRecordProperty value. Default value is "isGridSummary"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getGridSummaryRecordPropertyIfshowGridSummaryis true, this attribute will be set to true on the record object representing the grid summary row.- Returns:
- Current gridSummaryRecordProperty value. Default value is "isGridSummary"
 
- 
setGroupByAsyncThresholdWhen grouping is requested with this number of records or more, an asynchronous approach is used to avoid the browser showing a "script is running slowly.." message prompting the user to stop execution of JavaScript.Note that groupByMaxRecordsmust be set at least as high asgroupByAsyncThresholdor asynchronous grouping will never be used.During async grouping, interactivity is blocked and the asynchGroupingPromptis shown to the user, then hidden when grouping completes;ListGrid.groupByComplete()then fires.Note that this async processing covers grouping only - it does not cover whole grid or per-group summaries, client-side sort or filter, or other operations that may cause the browser to show the "script is running slowly" prompt when working with very large sets of records in a grid. At this time, there is no generally effective way to avoid this warning dialog appearing with very large datasets in Microsoft's Internet Explorer (IE). IE's severely flawed detection algorithm for runaway scripts has been shown to interrupt computations after only 0.2 seconds elapsed time even if the computation would have finished in 0.3 seconds. Optimizations that reduce execution time can sometimes trigger the "script running slowly" dialog sooner. Since not every operation can reasonably be made asynchronous, the current recommendation is to avoid working with overly large datasets until the affected versions of IE are obsoleted. - Parameters:
- groupByAsyncThreshold- New groupByAsyncThreshold value. Default value is 50
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getGroupByAsyncThresholdpublic int getGroupByAsyncThreshold()When grouping is requested with this number of records or more, an asynchronous approach is used to avoid the browser showing a "script is running slowly.." message prompting the user to stop execution of JavaScript.Note that groupByMaxRecordsmust be set at least as high asgroupByAsyncThresholdor asynchronous grouping will never be used.During async grouping, interactivity is blocked and the asynchGroupingPromptis shown to the user, then hidden when grouping completes;ListGrid.groupByComplete()then fires.Note that this async processing covers grouping only - it does not cover whole grid or per-group summaries, client-side sort or filter, or other operations that may cause the browser to show the "script is running slowly" prompt when working with very large sets of records in a grid. At this time, there is no generally effective way to avoid this warning dialog appearing with very large datasets in Microsoft's Internet Explorer (IE). IE's severely flawed detection algorithm for runaway scripts has been shown to interrupt computations after only 0.2 seconds elapsed time even if the computation would have finished in 0.3 seconds. Optimizations that reduce execution time can sometimes trigger the "script running slowly" dialog sooner. Since not every operation can reasonably be made asynchronous, the current recommendation is to avoid working with overly large datasets until the affected versions of IE are obsoleted. - Returns:
- Current groupByAsyncThreshold value. Default value is 50
 
- 
setGroupByFieldList of fields to group grid records. If only a single field is used, that field may be specified as a string. After initialization, usegroupBy()to update the grouping field list, instead of modifying groupByField directly.- Parameters:
- groupByField- New groupByField value. Default value is see below
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
setGroupByFieldList of fields to group grid records. If only a single field is used, that field may be specified as a string. After initialization, usegroupBy()to update the grouping field list, instead of modifying groupByField directly.- Parameters:
- groupByField- New groupByField value. Default value is see below
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
setGroupByFieldSummariesIf this grid isgrouped, andshowGroupSummaryis true, this attribute may be set to an array of groupBy field names for which group summaries should appear.This is particularly useful for listGrids grouped by more than one field as it allows developers to display the group summary for a particular nested group without showing a summary for every level of the tree. 
 If this method is called after the component has been drawn/initialized: Setter for thegroupByFieldSummariesattributeNote : This is an advanced setting - Parameters:
- groupByFieldSummaries- new value for this.groupByFieldSummaries. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getGroupByFieldSummariesIf this grid isgrouped, andshowGroupSummaryis true, this attribute may be set to an array of groupBy field names for which group summaries should appear.This is particularly useful for listGrids grouped by more than one field as it allows developers to display the group summary for a particular nested group without showing a summary for every level of the tree. - Returns:
- Current groupByFieldSummaries value. Default value is null
- See Also:
 
- 
setGroupByMaxRecordsMaximum number of records to which a groupBy can be applied. If there are more records, grouping will not be available via the default header context menu, and calls togroupBy()will be ignored.The maximum exists because ListGrid grouping is performed in-browser, hence requires loading of all records that match the current filter criteria before records can be grouped. The default maximum represents a number of records which are safe to load in legacy browsers such as Internet Explorer 8 (modern browsers can handle far more), and is also a good upper limit from the perspective of loading data from a database. Going beyond this limit can cause "script running slowly" errors from legacy browsers (as well as high database load). To build an interface for grouping that handles arbitrary data volume, use a TreeGrid with TreeGrid.loadDataOnDemandwith server-side grouping code.- Parameters:
- groupByMaxRecords- New groupByMaxRecords value. Default value is 1000
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getGroupByMaxRecordspublic int getGroupByMaxRecords()Maximum number of records to which a groupBy can be applied. If there are more records, grouping will not be available via the default header context menu, and calls togroupBy()will be ignored.The maximum exists because ListGrid grouping is performed in-browser, hence requires loading of all records that match the current filter criteria before records can be grouped. The default maximum represents a number of records which are safe to load in legacy browsers such as Internet Explorer 8 (modern browsers can handle far more), and is also a good upper limit from the perspective of loading data from a database. Going beyond this limit can cause "script running slowly" errors from legacy browsers (as well as high database load). To build an interface for grouping that handles arbitrary data volume, use a TreeGrid with TreeGrid.loadDataOnDemandwith server-side grouping code.- Returns:
- Current groupByMaxRecords value. Default value is 1000
- See Also:
 
- 
setGroupByMaxRecordsExceededMessageWarning shown to the user when a grouping attempt failed as the data set length exceedsgroupByMaxRecords.If defined, this prompt will be shown to the user in a warning dialogwhen the user attempts to group a data set that exceeds thegroupByMaxRecordsthreshold.This can occur if an already-grouped grid's filter criteria are modified such that a new set of records is loaded from the DataSource which exceeds the groupByMaxRecordsthreshold.It can also occur when a user attempts to group a grid with a partially loaded data set where the true size of the data set is not known due to progressiveLoading. In this case, the grouping logic will attempt to retrieve all the records in the data set and may get back a new total row count from the DataSource which exceedsgroupByMaxRecords.In either case the warning will be displayed to the user and the group by menu itemwill be disabled.See also disabledGroupByPrompt.- Parameters:
- groupByMaxRecordsExceededMessage- New groupByMaxRecordsExceededMessage value. Default value is "Grouping has been disabled. This data set is too large to apply grouping efficiently."
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getGroupByMaxRecordsExceededMessageWarning shown to the user when a grouping attempt failed as the data set length exceedsgroupByMaxRecords.If defined, this prompt will be shown to the user in a warning dialogwhen the user attempts to group a data set that exceeds thegroupByMaxRecordsthreshold.This can occur if an already-grouped grid's filter criteria are modified such that a new set of records is loaded from the DataSource which exceeds the groupByMaxRecordsthreshold.It can also occur when a user attempts to group a grid with a partially loaded data set where the true size of the data set is not known due to progressiveLoading. In this case, the grouping logic will attempt to retrieve all the records in the data set and may get back a new total row count from the DataSource which exceedsgroupByMaxRecords.In either case the warning will be displayed to the user and the group by menu itemwill be disabled.See also disabledGroupByPrompt.- Returns:
- Current groupByMaxRecordsExceededMessage value. Default value is "Grouping has been disabled. This data set is too large to apply grouping efficiently."
 
- 
setGroupByTextIf we're showing aheaderContextMenufor this grid andthis.canGroupByis true, this string will be shown as the title for the menu item to toggle the group by setting for a field.This is a dynamic string - text within ${...}will be evaluated as JS code when the message is displayed, withtitleavailable as a variable containing the field title.Default value returns "Group by " + the field's summary title. Note : This is an advanced setting - Parameters:
- groupByText- New groupByText value. Default value is "Group by ${title}"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getGroupByTextIf we're showing aheaderContextMenufor this grid andthis.canGroupByis true, this string will be shown as the title for the menu item to toggle the group by setting for a field.This is a dynamic string - text within ${...}will be evaluated as JS code when the message is displayed, withtitleavailable as a variable containing the field title.Default value returns "Group by " + the field's summary title. - Returns:
- If we're showing a headerContextMenufor this grid andthis.canGroupByis true, this string will be shown as the title for the menu item to toggle the group by setting for a field.
 Default implementation evaluates and returns the dynamicgroupByTextstring. Default value is "Group by ${title}"
- See Also:
 
- 
setGroupIconThe URL of the base icon for the group icons in this listGrid. Default value may be overridden by thecurrent skin.
- 
getGroupIconThe URL of the base icon for the group icons in this listGrid. Default value may be overridden by thecurrent skin.- Returns:
- Current groupIcon value. Default value is "[SKINIMG]/TreeGrid/opener.gif"
- See Also:
 
- 
setGroupIconSizeDefault width and height of group icons for this ListGrid.- Parameters:
- groupIconSize- New groupIconSize value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getGroupIconSizepublic int getGroupIconSize()Default width and height of group icons for this ListGrid.- Returns:
- Current groupIconSize value. Default value is 16
- See Also:
 
- 
setGroupIconStyleCustom style to apply to thegroupIcondisplayed in collapsible rows whencanGroupByis true.- Parameters:
- groupIconStyle- New groupIconStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getGroupIconStyleCustom style to apply to thegroupIcondisplayed in collapsible rows whencanGroupByis true.- Returns:
- Current groupIconStyle value. Default value is null
- See Also:
 
- 
setGroupIndentSizeDefault number of pixels by which to indent subgroups relative to parent group.- Parameters:
- groupIndentSize- New groupIndentSize value. Default value is 20
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
- 
- groupBy(java.lang.String...)
- com.smartgwt.client.widgets.grid.ListGrid#getGroupNodeHTML
 
 
- 
getGroupIndentSizepublic int getGroupIndentSize()Default number of pixels by which to indent subgroups relative to parent group.- Returns:
- Current groupIndentSize value. Default value is 20
- See Also:
- 
- groupBy(java.lang.String...)
- com.smartgwt.client.widgets.grid.ListGrid#getGroupNodeHTML
 
 
- 
setGroupLeadingIndentDefault number of pixels by which to indent all groups.- Parameters:
- groupLeadingIndent- New groupLeadingIndent value. Default value is 10
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
- 
- groupBy(java.lang.String...)
- com.smartgwt.client.widgets.grid.ListGrid#getGroupNodeHTML
 
 
- 
getGroupLeadingIndentpublic int getGroupLeadingIndent()Default number of pixels by which to indent all groups.- Returns:
- Current groupLeadingIndent value. Default value is 10
- See Also:
- 
- groupBy(java.lang.String...)
- com.smartgwt.client.widgets.grid.ListGrid#getGroupNodeHTML
 
 
- 
setGroupNodeBaseStyle- Parameters:
- groupNodeBaseStyle- New groupNodeBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getGroupNodeBaseStyle- Returns:
- Current groupNodeBaseStyle value. Default value is null
 
- 
setGroupNodeStyleThe CSS style thatgrouprows will have.Note that this is not a base style, so, if this property is set, group nodes will not show stateful styling (different styles forshowRollOver,alternateRecordStyles, etc). To enable stateful styling for groupNodes, set this property tonulland specify agroupNodeBaseStyle- Parameters:
- groupNodeStyle- New groupNodeStyle value. Default value is "groupNode"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getGroupNodeStyleThe CSS style thatgrouprows will have.Note that this is not a base style, so, if this property is set, group nodes will not show stateful styling (different styles forshowRollOver,alternateRecordStyles, etc). To enable stateful styling for groupNodes, set this property tonulland specify agroupNodeBaseStyle- Returns:
- Current groupNodeStyle value. Default value is "groupNode"
 
- 
setGroupSortDirectionWhensortByGroupFirstis active, the sorting direction applied for implicit sorting by the field(s) used for grouping. Default of null means that sort direction is based on the current direction of user-configured sort, or is "ascending" if the user has not sorted the data.- Parameters:
- groupSortDirection- New groupSortDirection value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getGroupSortDirectionWhensortByGroupFirstis active, the sorting direction applied for implicit sorting by the field(s) used for grouping. Default of null means that sort direction is based on the current direction of user-configured sort, or is "ascending" if the user has not sorted the data.- Returns:
- Current groupSortDirection value. Default value is null
- See Also:
 
- 
setGroupStateInitial group state for the grid.viewStatecan be used to initialize all view properties of the grid. When doing so,groupStateis not needed becauseviewStateincludes it as well. If both are provided,groupStatehas priority for group state.
 If this method is called after the component has been drawn/initialized: Reset this grid's grouping to match theListGridGroupStateobject passed in.
 Used to restore previous state retrieved from the grid by a call togetGroupState().- Parameters:
- groupState- Object describing the desired grouping state of the grid. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getGroupStateInitial group state for the grid.viewStatecan be used to initialize all view properties of the grid. When doing so,groupStateis not needed becauseviewStateincludes it as well. If both are provided,groupStatehas priority for group state.- Returns:
- Returns a snapshot of the current grouping state of this ListGrid.
 This object can be passed tosetGroupState()to reset this grid's grouping to the current state (assuming the same data / fields are present in the grid).
 . Default value is null
- See Also:
 
- 
setGroupSummaryRecordPropertyIfshowGroupSummaryis true, this attribute will be set to true on each record object representing a group-level summary row.- Parameters:
- groupSummaryRecordProperty- New groupSummaryRecordProperty value. Default value is "isGroupSummary"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getGroupSummaryRecordPropertyIfshowGroupSummaryis true, this attribute will be set to true on each record object representing a group-level summary row.- Returns:
- Current groupSummaryRecordProperty value. Default value is "isGroupSummary"
 
- 
setGroupSummaryStyleListGridRecord.customStylefor the group-level summary row displayed whenshowGroupSummaryis true.- Parameters:
- groupSummaryStyle- New groupSummaryStyle value. Default value is "gridSummaryCell"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getGroupSummaryStyleListGridRecord.customStylefor the group-level summary row displayed whenshowGroupSummaryis true.- Returns:
- Current groupSummaryStyle value. Default value is "gridSummaryCell"
- See Also:
 
- 
setGroupTitleColumnPropertiespublic ListGrid setGroupTitleColumnProperties(ListGridField groupTitleColumnProperties) throws IllegalStateException Custom properties for the automatically generatedgroupTitleColumn.See showGroupTitleColumnfor an overview of the groupTitleColumn.- Parameters:
- groupTitleColumnProperties- New groupTitleColumnProperties value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getGroupTitleColumnPropertiesCustom properties for the automatically generatedgroupTitleColumn.See showGroupTitleColumnfor an overview of the groupTitleColumn.- Returns:
- Current groupTitleColumnProperties value. Default value is null
 
- 
setGroupTitleFieldWhen a list grid isgrouped, each group shows under an auto generated header node. By default the title of the group will be shown, with a hanging indent in this node, and will span all columns in the grid. Setting this property causes the titles of auto-generated group nodes to appear as though they were values of the designated field instead of spanning all columns and record values in the designated groupTitleField will appear indented under the group title in a manner similar to how a TreeGrid shows a Tree.Note if showGroupSummaryInHeaderis true, the header nodes will not show a single spanning title value by default - instead they will show the summary values for each field. In this case, if groupTitleField is unset, agroupTitleColumncan be automatically generated to show the title for each group.- Parameters:
- groupTitleField- New groupTitleField value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getGroupTitleFieldWhen a list grid isgrouped, each group shows under an auto generated header node. By default the title of the group will be shown, with a hanging indent in this node, and will span all columns in the grid. Setting this property causes the titles of auto-generated group nodes to appear as though they were values of the designated field instead of spanning all columns and record values in the designated groupTitleField will appear indented under the group title in a manner similar to how a TreeGrid shows a Tree.Note if showGroupSummaryInHeaderis true, the header nodes will not show a single spanning title value by default - instead they will show the summary values for each field. In this case, if groupTitleField is unset, agroupTitleColumncan be automatically generated to show the title for each group.- Returns:
- Current groupTitleField value. Default value is null
- See Also:
 
- 
getGroupTreeThe data tree that results from a call togroupBy(). This will be aResultTreeifdataSourceis present, otherwise it will be aTree.This component is an AutoChild named "groupTree". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current groupTree value. Default value is null
- See Also:
 
- 
getHeaderA Toolbar used to manager the headers shown for each column of the grid.This component is an AutoChild named "header". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current header value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
- See Also:
 
- 
setHeaderAriaRole- Parameters:
- headerAriaRole- New headerAriaRole value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHeaderAriaRole- Returns:
- Returns the rolefor this listGrid'sheader.If headerAriaRoleis explicitly provided, it will be used.
 Otherwise default implementation returns"row"ifariaRoleis set to"grid". Default value is null
 
- 
setHeaderAutoFitEventEvent on a ListGrid header that triggers auto fitting to data and/or title.Note that if sorting is enabled for the field and the headerAutoFitEvent is "click", both sorting and autofit occur on a click. Only has an impact when canAutoFitFieldsorListGridField.canAutoFitWidthis set totrue.- Parameters:
- headerAutoFitEvent- New headerAutoFitEvent value. Default value is "doubleClick"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHeaderAutoFitEventEvent on a ListGrid header that triggers auto fitting to data and/or title.Note that if sorting is enabled for the field and the headerAutoFitEvent is "click", both sorting and autofit occur on a click. Only has an impact when canAutoFitFieldsorListGridField.canAutoFitWidthis set totrue.- Returns:
- Current headerAutoFitEvent value. Default value is "doubleClick"
 
- 
setHeaderBackgroundColorBackgroundColor for the header toolbar. Typically this is set to match the color of the header buttons.- Parameters:
- headerBackgroundColor- New headerBackgroundColor value. Default value is "#CCCCCC"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getHeaderBackgroundColorBackgroundColor for the header toolbar. Typically this is set to match the color of the header buttons.- Returns:
- Current headerBackgroundColor value. Default value is "#CCCCCC"
- See Also:
 
- 
setHeaderBarStyleSet the CSS style used for the header as a whole.- Parameters:
- headerBarStyle- New headerBarStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHeaderBarStyleSet the CSS style used for the header as a whole.- Returns:
- Current headerBarStyle value. Default value is null
- See Also:
 
- 
setHeaderBaseStyleButton.baseStyleto apply to the buttons in the header, and the sorter, for this ListGrid. Note that, depending on theClassof the header buttons, you may also need to setheaderTitleStyle.- Parameters:
- headerBaseStyle- New headerBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHeaderBaseStyleButton.baseStyleto apply to the buttons in the header, and the sorter, for this ListGrid. Note that, depending on theClassof the header buttons, you may also need to setheaderTitleStyle.- Returns:
- Current headerBaseStyle value. Default value is null
- See Also:
 
- 
setHeaderButtonAriaRole- Parameters:
- headerButtonAriaRole- New headerButtonAriaRole value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHeaderButtonAriaRole- Returns:
- Returns the rolefor this listGrid'sheader buttons.If ListGridField.headerButtonAriaRoleorheaderButtonAriaRoleis set, it will be used.
 Othewise, the default implementation returns"columnheader"ifariaRoleis set to"grid","button"otherwise. Default value is null
 
- 
setHeaderButtonAriaStateDefaultARIA stateforheader buttons. SeegetHeaderButtonAriaState().Note : This is an advanced setting - Parameters:
- headerButtonAriaState- New headerButtonAriaState value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHeaderButtonAriaState- Returns:
- Returns a map of WAI ARIA state attribute valuesto be written into header buttons for this grid.Default implementation returns an object with combined properties from any specified header button aria state default object, overlaid with anyListGridField.headerButtonAriaStateproperties specified on the field itself, plus the following attributes:- haspopup- true if the button should show the header context menu
- colindex- index of the column if- ariaRoleis- "grid"
- sort- "ascending", "descending" or "none" depending on the sort-state of the field
 
 
- 
setHeaderButtonPropertiespublic ListGrid setHeaderButtonProperties(Button headerButtonProperties) throws IllegalStateException Properties to apply to all header buttons. Overrides defaults applied viaheaderButtonDefaults.Note : This is an advanced setting - Parameters:
- headerButtonProperties- New headerButtonProperties value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHeaderButtonPropertiesProperties to apply to all header buttons. Overrides defaults applied viaheaderButtonDefaults.- Returns:
- Current headerButtonProperties value. Default value is null
- See Also:
 
- 
getHeaderContextMenuThe context menu displayed for column headers.This component is an AutoChild named "headerContextMenu". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current headerContextMenu value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
- See Also:
 
- 
setHeaderHeightThe height of this listGrid's header, in pixels.
 If this method is called after the component has been drawn/initialized: Modify the height of a listGrid. To hide the header set height to zero.- Parameters:
- headerHeight- new height for the header. Default value is 22
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getHeaderHeightpublic int getHeaderHeight()The height of this listGrid's header, in pixels.- Returns:
- Current headerHeight value. Default value is 22
- See Also:
 
- 
setHeaderHoverAlignThis property may be set to customize the alignment for the hover shown onListGrid.headerHover().- Parameters:
- headerHoverAlign- New headerHoverAlign value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHeaderHoverAlignThis property may be set to customize the alignment for the hover shown onListGrid.headerHover().- Returns:
- Current headerHoverAlign value. Default value is null
 
- 
setHeaderHoverHeightOptional default height for the hover shown onListGrid.headerHover().- Parameters:
- headerHoverHeight- New headerHoverHeight value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHeaderHoverHeightOptional default height for the hover shown onListGrid.headerHover().- Returns:
- Current headerHoverHeight value. Default value is null
 
- 
setHeaderHoverOpacityThis property may be set to customize the opacity for the hover shown onListGrid.headerHover().- Parameters:
- headerHoverOpacity- New headerHoverOpacity value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHeaderHoverOpacityThis property may be set to customize the opacity for the hover shown onListGrid.headerHover().- Returns:
- Current headerHoverOpacity value. Default value is null
 
- 
setHeaderHoverStyleThis property may be set to customize the css style for the hover shown onListGrid.headerHover().- Parameters:
- headerHoverStyle- New headerHoverStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getHeaderHoverStyleThis property may be set to customize the css style for the hover shown onListGrid.headerHover().- Returns:
- Current headerHoverStyle value. Default value is null
- See Also:
 
- 
setHeaderHoverVAlignThis property may be set to customize the vertical alignment for the hover shown onListGrid.headerHover().- Parameters:
- headerHoverVAlign- New headerHoverVAlign value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHeaderHoverVAlignThis property may be set to customize the vertical alignment for the hover shown onListGrid.headerHover().- Returns:
- Current headerHoverVAlign value. Default value is null
 
- 
setHeaderHoverWidthOptional default width for the hover shown onListGrid.headerHover().- Parameters:
- headerHoverWidth- New headerHoverWidth value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHeaderHoverWidthOptional default width for the hover shown onListGrid.headerHover().- Returns:
- Current headerHoverWidth value. Default value is null
 
- 
setHeaderHoverWrapThis property may be set to customize thewrapattribute for the hover shown onListGrid.headerHover().- Parameters:
- headerHoverWrap- New headerHoverWrap value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHeaderHoverWrapThis property may be set to customize thewrapattribute for the hover shown onListGrid.headerHover().- Returns:
- Current headerHoverWrap value. Default value is null
 
- 
getHeaderMenuButtonIfshowHeaderMenuButtonis true, when the user rolls over the header buttons in this grid the headerMenuButton will be shown over the header button in question. When clicked this button will display the standard header context menu (seedisplayHeaderContextMenu()).Several propertiesexist to customize the appearance of the headerMenuButton. Also see thecom.smartgwt.client.types.AutoChilddocumentation for information on how to make free-form modifications to autoChild widgetsThis component is an AutoChild named "headerMenuButton". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current headerMenuButton value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setHeaderMenuButtonHeightIfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonNote : This is an advanced setting - Parameters:
- headerMenuButtonHeight- New headerMenuButtonHeight value. Default value is "100%"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHeaderMenuButtonHeightpublic int getHeaderMenuButtonHeight()IfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButton- Returns:
- Current headerMenuButtonHeight value. Default value is "100%"
- See Also:
 
- 
setHeaderMenuButtonHeightpublic ListGrid setHeaderMenuButtonHeight(String headerMenuButtonHeight) throws IllegalStateException IfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonNote : This is an advanced setting - Parameters:
- headerMenuButtonHeight- New headerMenuButtonHeight value. Default value is "100%"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHeaderMenuButtonHeightAsStringIfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButton- Returns:
- Current headerMenuButtonHeight value. Default value is "100%"
- See Also:
 
- 
setHeaderMenuButtonIconIfshowHeaderMenuButtonis true, this property governs the icon shown on the auto-generatedheaderMenuButtonNote : This is an advanced setting - Parameters:
- headerMenuButtonIcon- New headerMenuButtonIcon value. Default value is "[SKIN]/ListGrid/headerMenuButton_icon.gif"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHeaderMenuButtonIconIfshowHeaderMenuButtonis true, this property governs the icon shown on the auto-generatedheaderMenuButton- Returns:
- Current headerMenuButtonIcon value. Default value is "[SKIN]/ListGrid/headerMenuButton_icon.gif"
- See Also:
 
- 
setHeaderMenuButtonIconHeightpublic ListGrid setHeaderMenuButtonIconHeight(int headerMenuButtonIconHeight) throws IllegalStateException IfshowHeaderMenuButtonis true, this property governs the height of the icon shown on the auto-generatedheaderMenuButtonNote : This is an advanced setting - Parameters:
- headerMenuButtonIconHeight- New headerMenuButtonIconHeight value. Default value is 7
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHeaderMenuButtonIconHeightpublic int getHeaderMenuButtonIconHeight()IfshowHeaderMenuButtonis true, this property governs the height of the icon shown on the auto-generatedheaderMenuButton- Returns:
- Current headerMenuButtonIconHeight value. Default value is 7
 
- 
setHeaderMenuButtonIconWidthpublic ListGrid setHeaderMenuButtonIconWidth(int headerMenuButtonIconWidth) throws IllegalStateException IfshowHeaderMenuButtonis true, this property governs the width of the icon shown on the auto-generatedheaderMenuButtonNote : This is an advanced setting - Parameters:
- headerMenuButtonIconWidth- New headerMenuButtonIconWidth value. Default value is 7
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHeaderMenuButtonIconWidthpublic int getHeaderMenuButtonIconWidth()IfshowHeaderMenuButtonis true, this property governs the width of the icon shown on the auto-generatedheaderMenuButton- Returns:
- Current headerMenuButtonIconWidth value. Default value is 7
 
- 
setHeaderMenuButtonSnapOffsetLeftOffset of the right edge of aheaderMenuButtonfrom the right edge of it's parent button.- Parameters:
- headerMenuButtonSnapOffsetLeft- New headerMenuButtonSnapOffsetLeft value. Default value is 0
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHeaderMenuButtonSnapOffsetLeftOffset of the right edge of aheaderMenuButtonfrom the right edge of it's parent button.- Returns:
- Current headerMenuButtonSnapOffsetLeft value. Default value is 0
 
- 
setHeaderMenuButtonWidthIfshowHeaderMenuButtonis true, this property governs the width of the auto-generatedheaderMenuButtonNote : This is an advanced setting - Parameters:
- headerMenuButtonWidth- New headerMenuButtonWidth value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHeaderMenuButtonWidthpublic int getHeaderMenuButtonWidth()IfshowHeaderMenuButtonis true, this property governs the width of the auto-generatedheaderMenuButton- Returns:
- Current headerMenuButtonWidth value. Default value is 16
- See Also:
 
- 
setHeaderRadiusWhen set to any valid CSS border-radius string, allows for a rounded header in this grid by applying a corner-radius to the left of theheader, and to the right of thecorner sort-buttonif it's visible, or the right of theheaderotherwise. This styling is applied on top of the regular header styles, so will work with any design, and is also applied correctly with or without frozen fields.
 If this method is called after the component has been drawn/initialized: Setter forheaderRadius, which provides rounded corners for this grid'sheader area.- Parameters:
- headerRadius- any CSS border-radius string, with 1 to 4 space-separated sizes. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHeaderRadiusWhen set to any valid CSS border-radius string, allows for a rounded header in this grid by applying a corner-radius to the left of theheader, and to the right of thecorner sort-buttonif it's visible, or the right of theheaderotherwise. This styling is applied on top of the regular header styles, so will work with any design, and is also applied correctly with or without frozen fields.- Returns:
- Current headerRadius value. Default value is null
 
- 
setHeaderShadowColorIfshowHeaderShadowis true, theCanvas.shadowColorfor the header shadow.Note : This is an advanced setting - Parameters:
- headerShadowColor- New headerShadowColor value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHeaderShadowColorIfshowHeaderShadowis true, theCanvas.shadowColorfor the header shadow.- Returns:
- Current headerShadowColor value. Default value is null
- See Also:
 
- 
setHeaderShadowHOffsetIfshowHeaderShadowis true, theCanvas.shadowHOffsetfor the header shadowNote : This is an advanced setting - Parameters:
- headerShadowHOffset- New headerShadowHOffset value. Default value is 0
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHeaderShadowHOffsetpublic int getHeaderShadowHOffset()IfshowHeaderShadowis true, theCanvas.shadowHOffsetfor the header shadow- Returns:
- Current headerShadowHOffset value. Default value is 0
 
- 
setHeaderShadowSoftnessIfshowHeaderShadowis true, theCanvas.shadowSoftnessfor the header shadowNote : This is an advanced setting - Parameters:
- headerShadowSoftness- New headerShadowSoftness value. Default value is 1
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHeaderShadowSoftnesspublic int getHeaderShadowSoftness()IfshowHeaderShadowis true, theCanvas.shadowSoftnessfor the header shadow- Returns:
- Current headerShadowSoftness value. Default value is 1
 
- 
setHeaderShadowVOffsetIfshowHeaderShadowis true, theCanvas.shadowVOffsetfor the header shadowNote : This is an advanced setting - Parameters:
- headerShadowVOffset- New headerShadowVOffset value. Default value is 1
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHeaderShadowVOffsetpublic int getHeaderShadowVOffset()IfshowHeaderShadowis true, theCanvas.shadowVOffsetfor the header shadow- Returns:
- Current headerShadowVOffset value. Default value is 1
 
- 
getHeaderSpanNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.headerSpansare created via thecom.smartgwt.client.types.AutoChildpattern, henceheaderSpanConstructor,headerSpanDefaultsandheaderSpanPropertiesare valid.- Returns:
- null
 
- 
setHeaderSpanHeightDefault height for aheaderSpanwith no height specified.If headerSpanHeightis not specified (the default), headerSpans will be 1/2 ofheaderHeight.- Parameters:
- headerSpanHeight- New headerSpanHeight value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHeaderSpanHeightDefault height for aheaderSpanwith no height specified.If headerSpanHeightis not specified (the default), headerSpans will be 1/2 ofheaderHeight.- Returns:
- Current headerSpanHeight value. Default value is null
 
- 
setHeaderSpansHeader spans are a second level of headers that appear above the normal ListGrid headers, spanning one or more listGrid fields in a manner similar to a column-spanning cell in an HTML table.A header span can be created by simply naming the fields the header should span. The example below creates a headerSpan that spans the first two fields of the ListGrid. ListGrid grid = new ListGrid(); grid.setHeaderHeight(40); grid.setFields(new ListGridField[] { new ListGridField("field1"), new ListGridField("field2"), new ListGridField("field3") }); grid.setHeaderSpans(new HeaderSpan[] { new HeaderSpan("Field 1 and 2", new String[] {"field1", "field2"}) });Header spans can be nested, allowing fields to be grouped by multiple levels of granularity. SeeHeaderSpan.spansfor further information on nesting spans.Header spans will automatically react to resizing of the headers they span, and will be hidden automatically when all of the spanned fields are hidden. Header spans appear in the headerarea of the ListGrid, sharing space with the existing headers, so it's typical to setheaderHeightto approximately double its normal height when using headerSpans, or if using nested header spans, the default header height multiplied by the number of levels of header spans to be shown.See HeaderSpanfor many properties that allow the control of the appearance of headerSpans.Neither headerSpans themselves nor the fields within them may be drag reordered, but other unspanned headers may be. A span can only span adjacent fields - if a span is defined and the spanned fields don't sit next to each other in the specified fields array, the fields array will be automatically reordered to match the order specified in the span's HeaderSpan.fieldsarray.Note that headerSpans primarily provide a visual cue for grouping multiple headers together. If you have an OLAP, data "cube" or multi-dimensional data model, the CubeGridcomponent is the right choice.
 If this method is called after the component has been drawn/initialized: Update the headerSpans configuration on the grid dynamically.- Parameters:
- headerSpans- same configuration block as that passed to- headerSpans. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
setHeaderTitleStyleStretchImgButton.titleStyleto apply to the buttons in the header, and the sorter, for this ListGrid. Note that this will typically only have an effect ifheaderButtonConstructoris set toStretchImgButtonor a subclass thereof.- Parameters:
- headerTitleStyle- New headerTitleStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHeaderTitleStyleStretchImgButton.titleStyleto apply to the buttons in the header, and the sorter, for this ListGrid. Note that this will typically only have an effect ifheaderButtonConstructoris set toStretchImgButtonor a subclass thereof.- Returns:
- Current headerTitleStyle value. Default value is null
- See Also:
 
- 
setHeaderTitleVAlignpublic ListGrid setHeaderTitleVAlign(VerticalAlignment headerTitleVAlign) throws IllegalStateException Specifies vertical alignment in the column headers: "top", "center", or "bottom". Can be overridden for individual fields by settingListGridField.valign.When using rotated titles, this attribute defaults to "bottom" if it remains unset.- Parameters:
- headerTitleVAlign- New headerTitleVAlign value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHeaderTitleVAlignSpecifies vertical alignment in the column headers: "top", "center", or "bottom". Can be overridden for individual fields by settingListGridField.valign.When using rotated titles, this attribute defaults to "bottom" if it remains unset.- Returns:
- Current headerTitleVAlign value. Default value is null
- See Also:
 
- 
setHideEmptySummaryRowIf true, causes thesummaryRowcomponent to be hidden if it has no data after summaries have been recalculated- Parameters:
- hideEmptySummaryRow- New hideEmptySummaryRow value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHideEmptySummaryRowIf true, causes thesummaryRowcomponent to be hidden if it has no data after summaries have been recalculated- Returns:
- Current hideEmptySummaryRow value. Default value is null
 
- 
setHideFilterEditorTitleWhencanShowFilterEditoris true, this is the title for the filterEditor show/hide menu-item, in theheaderContextmenu, when the filterEditor is visible.showFilterEditorTitleaffects the same menu-item when the filterEditor is hidden.- Parameters:
- hideFilterEditorTitle- New hideFilterEditorTitle value. Default value is "Hide Filter Row"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getHideFilterEditorTitleWhencanShowFilterEditoris true, this is the title for the filterEditor show/hide menu-item, in theheaderContextmenu, when the filterEditor is visible.showFilterEditorTitleaffects the same menu-item when the filterEditor is hidden.- Returns:
- Current hideFilterEditorTitle value. Default value is "Hide Filter Row"
- See Also:
 
- 
setHiliteCanReplaceValuepublic ListGrid setHiliteCanReplaceValue(Boolean hiliteCanReplaceValue) throws IllegalStateException If set, end users can create advanced hiliting rules that will use theHilite.replacementValuefeature to cause values in hilited cells to be replaced with a user-entered value. For example, a user could create a hilite rule that replaces numeric values ranging from 0.5 to 1.0 with the text "LOW".Specifically, when the "Add Advanced Rule" button is pressed and hiliteCanReplaceValueis true, the user will see a text entry field titled "Replace value with" (hiliteReplaceValueFieldTitle) and if they enter a value, that value will appear in the grid cell in lieu of the cell's original value.- Parameters:
- hiliteCanReplaceValue- New hiliteCanReplaceValue value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHiliteCanReplaceValueIf set, end users can create advanced hiliting rules that will use theHilite.replacementValuefeature to cause values in hilited cells to be replaced with a user-entered value. For example, a user could create a hilite rule that replaces numeric values ranging from 0.5 to 1.0 with the text "LOW".Specifically, when the "Add Advanced Rule" button is pressed and hiliteCanReplaceValueis true, the user will see a text entry field titled "Replace value with" (hiliteReplaceValueFieldTitle) and if they enter a value, that value will appear in the grid cell in lieu of the cell's original value.- Returns:
- Current hiliteCanReplaceValue value. Default value is null
- See Also:
 
- 
setHiliteEditorSpanTitleSeparatorIf this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInHiliteEditoris true, this string will be inserted between the headerSpan title and the field title in the hiliteEditor field chooser grid.- Parameters:
- hiliteEditorSpanTitleSeparator- New hiliteEditorSpanTitleSeparator value. Default value is " - "
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHiliteEditorSpanTitleSeparatorIf this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInHiliteEditoris true, this string will be inserted between the headerSpan title and the field title in the hiliteEditor field chooser grid.- Returns:
- Current hiliteEditorSpanTitleSeparator value. Default value is " - "
 
- 
setHiliteHTMLAfterFormatpublic ListGrid setHiliteHTMLAfterFormat(boolean hiliteHTMLAfterFormat) throws IllegalStateException If set to true, custom HTML applied as part of hiliting will be applied afterformattingfor each cell. If false, hilite HTML will be applied before formatting.This applies to the following hilite properties: May be overridden per field via ListGridField.hiliteHTMLAfterFormat- Parameters:
- hiliteHTMLAfterFormat- New hiliteHTMLAfterFormat value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHiliteHTMLAfterFormatpublic boolean getHiliteHTMLAfterFormat()If set to true, custom HTML applied as part of hiliting will be applied afterformattingfor each cell. If false, hilite HTML will be applied before formatting.This applies to the following hilite properties: May be overridden per field via ListGridField.hiliteHTMLAfterFormat- Returns:
- Current hiliteHTMLAfterFormat value. Default value is true
 
- 
setHiliteIconHeightHeight for hilite icons for this listGrid. OverrideshiliteIconSize. Can be overridden at the field level
- 
getHiliteIconHeightHeight for hilite icons for this listGrid. OverrideshiliteIconSize. Can be overridden at the field level- Returns:
- Current hiliteIconHeight value. Default value is null
- See Also:
 
- 
setHiliteIconLeftPaddingHow much padding should there be on the left ofhilite iconsby default? Can be overridden at the field level
- 
getHiliteIconLeftPaddingpublic int getHiliteIconLeftPadding()How much padding should there be on the left ofhilite iconsby default? Can be overridden at the field level- Returns:
- Current hiliteIconLeftPadding value. Default value is 2
- See Also:
 
- 
setHiliteIconPositionpublic ListGrid setHiliteIconPosition(HiliteIconPosition hiliteIconPosition) throws IllegalStateException WhenhiliteIconsare present, where the hilite icon will be placed relative to the field value. SeeHiliteIconPosition. Can be overridden at the field level.- Parameters:
- hiliteIconPosition- New hiliteIconPosition value. Default value is "before"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHiliteIconPositionWhenhiliteIconsare present, where the hilite icon will be placed relative to the field value. SeeHiliteIconPosition. Can be overridden at the field level.- Returns:
- Current hiliteIconPosition value. Default value is "before"
- See Also:
 
- 
setHiliteIconRightPaddingHow much padding should there be on the right ofhilite iconsby default? Can be overridden at the field level
- 
getHiliteIconRightPaddingpublic int getHiliteIconRightPadding()How much padding should there be on the right ofhilite iconsby default? Can be overridden at the field level- Returns:
- Current hiliteIconRightPadding value. Default value is 2
- See Also:
 
- 
setHiliteIconsSpecifies a list of icons that can be used inhilites.hiliteIconsshould be specified as an Array ofSCImgURL. When present, the hilite editing interface shown whenDataBoundComponent.editHilites()is called will offer the user a drop down for picking one of these icons when defining either a simple or advanced hilite rule.If the user picks an icon, the created hiliting rule will have Hilite.iconset to the chosen icon.DataBoundComponent.hiliteIconPositioncontrols where the icon will appear for that field -- the default is that it appears in front of the normal cell content. This can also be overridden at the field level.- Parameters:
- hiliteIcons- New hiliteIcons value. Default value is ["[SKINIMG]/Dialog/notify.png", "[SKINIMG]/Dialog/warn.png", "[SKINIMG]/actions/approve.png"]
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getHiliteIconsSpecifies a list of icons that can be used inhilites.hiliteIconsshould be specified as an Array ofSCImgURL. When present, the hilite editing interface shown whenDataBoundComponent.editHilites()is called will offer the user a drop down for picking one of these icons when defining either a simple or advanced hilite rule.If the user picks an icon, the created hiliting rule will have Hilite.iconset to the chosen icon.DataBoundComponent.hiliteIconPositioncontrols where the icon will appear for that field -- the default is that it appears in front of the normal cell content. This can also be overridden at the field level.- Returns:
- Current hiliteIcons value. Default value is ["[SKINIMG]/Dialog/notify.png", "[SKINIMG]/Dialog/warn.png", "[SKINIMG]/actions/approve.png"]
- See Also:
 
- 
setHiliteIconSizeDefault width and height ofhilite iconsfor this component. Can be overridden at the component level via explicithiliteIconWidthandhiliteIconHeight, or at the field level viahiliteIconSize,hiliteIconWidthandhiliteIconHeight- Parameters:
- hiliteIconSize- New hiliteIconSize value. Default value is 12
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getHiliteIconSizepublic int getHiliteIconSize()Default width and height ofhilite iconsfor this component. Can be overridden at the component level via explicithiliteIconWidthandhiliteIconHeight, or at the field level viahiliteIconSize,hiliteIconWidthandhiliteIconHeight- Returns:
- Current hiliteIconSize value. Default value is 12
- See Also:
 
- 
setHiliteIconWidthWidth for hilite icons for this component. OverrideshiliteIconSize. Can be overridden at the field level.
- 
getHiliteIconWidthWidth for hilite icons for this component. OverrideshiliteIconSize. Can be overridden at the field level.- Returns:
- Current hiliteIconWidth value. Default value is null
- See Also:
 
- 
setHiliteReplaceValueFieldTitlepublic ListGrid setHiliteReplaceValueFieldTitle(String hiliteReplaceValueFieldTitle) throws IllegalStateException Title used for the text box shown whenhiliteCanReplaceValueis set.- Parameters:
- hiliteReplaceValueFieldTitle- New hiliteReplaceValueFieldTitle value. Default value is "Replace value with"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHiliteReplaceValueFieldTitleTitle used for the text box shown whenhiliteCanReplaceValueis set.- Returns:
- Current hiliteReplaceValueFieldTitle value. Default value is "Replace value with"
 
- 
setHiliteRowOnFocusWhen the grid body gets keyboard focus, should we highlight the current focus row, using the rollover cell style?This property may be explicitly set to control this behavior independently of showRollOver. Otherwise (if this property is null), we will show the roll-over styling for the keyboard focus row ifshowRollOveris true.- Parameters:
- hiliteRowOnFocus- New hiliteRowOnFocus value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHiliteRowOnFocusWhen the grid body gets keyboard focus, should we highlight the current focus row, using the rollover cell style?This property may be explicitly set to control this behavior independently of showRollOver. Otherwise (if this property is null), we will show the roll-over styling for the keyboard focus row ifshowRollOveris true.- Returns:
- Current hiliteRowOnFocus value. Default value is null
 
- 
setHiliteViaAIModeWhencanHiliteViaAIistrue, the AI service mode to use.- Parameters:
- hiliteViaAIMode- New hiliteViaAIMode value. Default value is "hybrid"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHiliteViaAIModeWhencanHiliteViaAIistrue, the AI service mode to use.- Returns:
- Current hiliteViaAIMode value. Default value is "hybrid"
 
- 
setHiliteViaAITextTitle for the menu item displayed in this component's header context menu whenAI-assisted hilitingis allowed.- Parameters:
- hiliteViaAIText- New hiliteViaAIText value. Default value is "Hilite via AI..."
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getHiliteViaAITextTitle for the menu item displayed in this component's header context menu whenAI-assisted hilitingis allowed.- Returns:
- Current hiliteViaAIText value. Default value is "Hilite via AI..."
- See Also:
 
- 
setHoverModeWhenshowHoverComponentsis true, the builtin mode to use when automatically creating a hover component for rows in this grid.A number of builtin modes are provided - see HoverMode. You can also overridegetCellHoverComponent()to provide a custom hover widget - in that case, this attribute is ignored.If showHoverComponentsis true buthoverModeis not set, it defaults to "detailRelated" ifdetailDSis set, or to "details" otherwise. IfshowHoverComponentsis not set (ie, is null) andhoverModeis set,showHoverComponentsdefaults to true.- Parameters:
- hoverMode- New hoverMode value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getHoverModeWhenshowHoverComponentsis true, the builtin mode to use when automatically creating a hover component for rows in this grid.A number of builtin modes are provided - see HoverMode. You can also overridegetCellHoverComponent()to provide a custom hover widget - in that case, this attribute is ignored.If showHoverComponentsis true buthoverModeis not set, it defaults to "detailRelated" ifdetailDSis set, or to "details" otherwise. IfshowHoverComponentsis not set (ie, is null) andhoverModeis set,showHoverComponentsdefaults to true.- Returns:
- Current hoverMode value. Default value is null
 
- 
setHoverScreenScreen to create (viacreateScreen()) in lieu of callinggetHoverComponent()orgetCellHoverComponent().If this grid has a dataSource, the created screen is provided with aCanvas.dataContextthat includes the record being shown at the row.- Overrides:
- setHoverScreenin class- Canvas
- Parameters:
- hoverScreen- New hoverScreen value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getHoverScreenScreen to create (viacreateScreen()) in lieu of callinggetHoverComponent()orgetCellHoverComponent().If this grid has a dataSource, the created screen is provided with aCanvas.dataContextthat includes the record being shown at the row.- Overrides:
- getHoverScreenin class- Canvas
- Returns:
- Current hoverScreen value. Default value is null
 
- 
setHoverStyleStyle to apply to hovers shown over this grid.Note : This is an advanced setting - Overrides:
- setHoverStylein class- Canvas
- Parameters:
- hoverStyle- New hoverStyle value. Default value is "gridHover"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getHoverStyleStyle to apply to hovers shown over this grid.- Overrides:
- getHoverStylein class- Canvas
- Returns:
- Current hoverStyle value. Default value is "gridHover"
- See Also:
 
- 
setIconCursorDefault cursor to display when the user rolls over icons within cells of antype:iconfield.May be overridden by ListGridField.iconCursor.Note: Unlike the field-level ListGridField.iconCursorproperty, listGrid.iconCursor has no effect on the cursor displayed forvalueIcons.
 SeegetValueIconCursor()for more details.- Parameters:
- iconCursor- New iconCursor value. Default value is Canvas.POINTER
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getIconCursorDefault cursor to display when the user rolls over icons within cells of antype:iconfield.May be overridden by ListGridField.iconCursor.Note: Unlike the field-level ListGridField.iconCursorproperty, listGrid.iconCursor has no effect on the cursor displayed forvalueIcons.
 SeegetValueIconCursor()for more details.- Returns:
- Returns the cursor to display when the mouse pointer is over an iconin an"icon"type field.Default behavior will display the ListGridField.iconCursorif specified, otherwise the component leveliconCursor. Default value is Canvas.POINTER
- See Also:
 
- 
setIconPaddingWhen usingautoFitFieldWidths, padding in pixels left on each side of fields that show images.- Parameters:
- iconPadding- New iconPadding value. Default value is 2
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getIconPaddingWhen usingautoFitFieldWidths, padding in pixels left on each side of fields that show images.- Returns:
- Current iconPadding value. Default value is 2
 
- 
setImageSizeDefault size of thumbnails shown for fieldTypes image and imageFile. Overrideable on a per-field basis viaListGridField.imageSizeorListGridField.imageWidth/ListGridField.imageHeight- Parameters:
- imageSize- New imageSize value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getImageSizepublic int getImageSize()Default size of thumbnails shown for fieldTypes image and imageFile. Overrideable on a per-field basis viaListGridField.imageSizeorListGridField.imageWidth/ListGridField.imageHeight- Returns:
- Current imageSize value. Default value is 16
- See Also:
 
- 
setIncludeHilitesInSummaryFieldsWhen assembling a value for asummary field, if a referenced field is hilited, should the hilite HTML be included in the summary field value?To control hilites showing in group summaries, see showHilitesInGroupSummary.Note : This is an advanced setting - Parameters:
- includeHilitesInSummaryFields- New includeHilitesInSummaryFields value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getIncludeHilitesInSummaryFieldspublic boolean getIncludeHilitesInSummaryFields()When assembling a value for asummary field, if a referenced field is hilited, should the hilite HTML be included in the summary field value?To control hilites showing in group summaries, see showHilitesInGroupSummary.- Returns:
- Current includeHilitesInSummaryFields value. Default value is true
- See Also:
 
- 
setIncludeInSummaryPropertyProperty name on a record that will be checked to determine whether a record should be included when calculating totals for thegrid summary.- Parameters:
- includeInSummaryProperty- New includeInSummaryProperty value. Default value is "includeInSummary"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getIncludeInSummaryPropertyProperty name on a record that will be checked to determine whether a record should be included when calculating totals for thegrid summary.- Returns:
- Current includeInSummaryProperty value. Default value is "includeInSummary"
 
- 
setInitialSortAn array ofSortSpecifierobjects used to set up the initial sort configuration for this grid. If specified, this will be used instead of anysortFieldspecified.- Parameters:
- initialSort- New initialSort value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getInitialSortAn array ofSortSpecifierobjects used to set up the initial sort configuration for this grid. If specified, this will be used instead of anysortFieldspecified.- Returns:
- Current initialSort value. Default value is null
 
- 
setInstantScrollTrackRedrawIf true, if the user clicks on the scroll buttons at the end of the track or clicks once on the scroll track, there will be an instant redraw of the grid content so that the user doesn't see any blank space. For drag scrolling or other types of scrolling, thescrollRedrawDelayapplies.- Parameters:
- instantScrollTrackRedraw- New instantScrollTrackRedraw value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getInstantScrollTrackRedrawIf true, if the user clicks on the scroll buttons at the end of the track or clicks once on the scroll track, there will be an instant redraw of the grid content so that the user doesn't see any blank space. For drag scrolling or other types of scrolling, thescrollRedrawDelayapplies.- Returns:
- Current instantScrollTrackRedraw value. Default value is true
 
- 
setInvalidSummaryValueValue to display to the user if showing summary values (throughshowGridSummary,showGroupSummaryorlistGridFieldType:"summary"), and the summary function returns"null"(implying it was unable to calculate a valid summary value). This property will only be used in the default formatting behavior. If an explicit formatter has been specified - viasetCellFormatter()orformatGridSummary(), for example - this property has no effect.Note : This is an advanced setting - Parameters:
- invalidSummaryValue- New invalidSummaryValue value. Default value is " "
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getInvalidSummaryValueValue to display to the user if showing summary values (throughshowGridSummary,showGroupSummaryorlistGridFieldType:"summary"), and the summary function returns"null"(implying it was unable to calculate a valid summary value). This property will only be used in the default formatting behavior. If an explicit formatter has been specified - viasetCellFormatter()orformatGridSummary(), for example - this property has no effect.- Returns:
- Current invalidSummaryValue value. Default value is " "
 
- 
getIsGroupedTrue if this listGrid is grouped, false otherwiseNote : This method should be called only after the widget has been rendered. - Returns:
- Current isGrouped value. Default value is false
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
- See Also:
 
- 
setIsSeparatorPropertyIfrecord[this.isSeparatorProperty]is set for some record, the record will be displayed as a simple separator row.- Parameters:
- isSeparatorProperty- New isSeparatorProperty value. Default value is "isSeparator"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getIsSeparatorPropertyIfrecord[this.isSeparatorProperty]is set for some record, the record will be displayed as a simple separator row.- Returns:
- Current isSeparatorProperty value. Default value is "isSeparator"
 
- 
setLastCellStyleThe style to apply to the last cell in each row, whenstyledRowEndsis true. Note that this style is additional to the regular cell styling and should not introduce settings that change the layout or size of the cell, such as padding or font-size, but is ideal for setting a corner-radius or fading gradient. The styling will work with any design, and is also applied correctly with or without frozen fields.If all you want to do is provide rounded-corners for records in this grid, it may be simpler to set recordRadiusto a CSS border-radius string that achieves the rounding you want.- Parameters:
- lastCellStyle- New lastCellStyle value. Default value is "gridLastCell"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLastCellStyleThe style to apply to the last cell in each row, whenstyledRowEndsis true. Note that this style is additional to the regular cell styling and should not introduce settings that change the layout or size of the cell, such as padding or font-size, but is ideal for setting a corner-radius or fading gradient. The styling will work with any design, and is also applied correctly with or without frozen fields.If all you want to do is provide rounded-corners for records in this grid, it may be simpler to set recordRadiusto a CSS border-radius string that achieves the rounding you want.- Returns:
- Current lastCellStyle value. Default value is "gridLastCell"
- See Also:
 
- 
setLeaveHeaderMenuButtonSpaceIfshowHeaderMenuButtonis true, when auto-fitting fields to the title width viaautoFitFieldWidthsorListGridField.autoFitWidth, should the button be sized such that there is enough space for the header menu button to show without covering the field title?May be explicitly specified at the field levelor at thegrid level. If not explicitly specified space will be left for fields withListGridField.alignset to"left"or"right", but not for fields with align set to"center".Note : This is an advanced setting - Parameters:
- leaveHeaderMenuButtonSpace- New leaveHeaderMenuButtonSpace value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
setLeaveScrollbarGapWhether to leave a gap for the vertical scrollbar, even when it's not present.Note that if leaveScrollbarGap is false and vertical scrolling is introduced, fields will be resized to fit the smaller body area if possible, in order to avoid horizontal scrolling also being required. - Overrides:
- setLeaveScrollbarGapin class- Layout
- Parameters:
- leaveScrollbarGap- New leaveScrollbarGap value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLeaveScrollbarGapWhether to leave a gap for the vertical scrollbar, even when it's not present.Note that if leaveScrollbarGap is false and vertical scrolling is introduced, fields will be resized to fit the smaller body area if possible, in order to avoid horizontal scrolling also being required. - Overrides:
- getLeaveScrollbarGapin class- Layout
- Returns:
- Current leaveScrollbarGap value. Default value is true
- See Also:
 
- 
setLinkTextPropertyProperty name on a record that will hold the link text for that record.This property is configurable to avoid possible collision with data values in the record. Use ListGridField.linkTextPropertyif you have more than one link field and- Parameters:
- linkTextProperty- New linkTextProperty value. Default value is "linkText"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLinkTextPropertyProperty name on a record that will hold the link text for that record.This property is configurable to avoid possible collision with data values in the record. Use ListGridField.linkTextPropertyif you have more than one link field and- Returns:
- Current linkTextProperty value. Default value is "linkText"
- See Also:
 
- 
setListEndEditActionIf the user is editing the last record in this listGrid, and attempts to navigate beyond the last row either by tabbing off the last editable field, or using the down arrow key, this property determines what action to take:- "next": start editing a new record at the end of the list.
- "done": hide the editor
- "stop": leave focus in the cell being edited
- "none": no action
 See the Grid Editing overviewand also theEditing Unsaved Records overviewfor context about how newly added records behave.- Parameters:
- listEndEditAction- New listEndEditAction value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getListEndEditActionIf the user is editing the last record in this listGrid, and attempts to navigate beyond the last row either by tabbing off the last editable field, or using the down arrow key, this property determines what action to take:- "next": start editing a new record at the end of the list.
- "done": hide the editor
- "stop": leave focus in the cell being edited
- "none": no action
 See the Grid Editing overviewand also theEditing Unsaved Records overviewfor context about how newly added records behave.- Returns:
- Current listEndEditAction value. Default value is null
- See Also:
 
- 
setLoadingDataMessageThe string to display in the body of a listGrid while data is being loaded. Use"${loadingImage}"to includea loading image.- Parameters:
- loadingDataMessage- New loadingDataMessage value. Default value is "${loadingImage} Loading data..."
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLoadingDataMessageThe string to display in the body of a listGrid while data is being loaded. Use"${loadingImage}"to includea loading image.- Returns:
- Current loadingDataMessage value. Default value is "${loadingImage} Loading data..."
- See Also:
 
- 
setLoadingDataMessageStyleThe CSS style name applied to the loadingDataMessage string if displayed.- Parameters:
- loadingDataMessageStyle- New loadingDataMessageStyle value. Default value is "loadingDataMessage"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLoadingDataMessageStyleThe CSS style name applied to the loadingDataMessage string if displayed.- Returns:
- Current loadingDataMessageStyle value. Default value is "loadingDataMessage"
- See Also:
 
- 
setLoadingMessageIf you have a databound listGrid and you scroll out of the currently loaded dataset, by default you will see blank rows until the server returns the data for those rows. The loadingMessage attribute allows you to specify arbitrary html that will be shown in each such "blank" record while the data for that record is loading.- Parameters:
- loadingMessage- New loadingMessage value. Default value is " "
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getLoadingMessageIf you have a databound listGrid and you scroll out of the currently loaded dataset, by default you will see blank rows until the server returns the data for those rows. The loadingMessage attribute allows you to specify arbitrary html that will be shown in each such "blank" record while the data for that record is loading.- Returns:
- Current loadingMessage value. Default value is " "
 
- 
setLoadingRowCountDisplayIcoHeightHeight for theloadingRowCountDisplayIcon- Parameters:
- loadingRowCountDisplayIcoHeight- New loadingRowCountDisplayIcoHeight value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLoadingRowCountDisplayIcoHeightpublic int getLoadingRowCountDisplayIcoHeight()Height for theloadingRowCountDisplayIcon- Returns:
- Current loadingRowCountDisplayIcoHeight value. Default value is 16
- See Also:
 
- 
setLoadingRowCountDisplayIconThe URL of the icon to display as arow count valuewhen the row count is loading.- Parameters:
- loadingRowCountDisplayIcon- New loadingRowCountDisplayIcon value. Default value is "[SKINIMG]/loading_horizontal.gif"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLoadingRowCountDisplayIconThe URL of the icon to display as arow count valuewhen the row count is loading.- Returns:
- Current loadingRowCountDisplayIcon value. Default value is "[SKINIMG]/loading_horizontal.gif"
- See Also:
 
- 
setLoadingRowCountDisplayIconWidthWidth for theloadingRowCountDisplayIcon- Parameters:
- loadingRowCountDisplayIconWidth- New loadingRowCountDisplayIconWidth value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLoadingRowCountDisplayIconWidthpublic int getLoadingRowCountDisplayIconWidth()Width for theloadingRowCountDisplayIcon- Returns:
- Current loadingRowCountDisplayIconWidth value. Default value is 16
- See Also:
 
- 
setLocateColumnsByWhenAutoTest.getElement()is used to parse locator strings generated byAutoTest.getLocator()for a cell in this grid, how should the column be identified?
 Note that getLocator() will actually store all available information about the column in the generated string -- this attribute effects how a stored string will be parsed only.Valid options area: - "fieldName"Attempt to identify by fieldName.
- "index"Attempt to identify by colNum (index in the fields array).
 - Parameters:
- locateColumnsBy- New locateColumnsBy value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLocateColumnsByWhenAutoTest.getElement()is used to parse locator strings generated byAutoTest.getLocator()for a cell in this grid, how should the column be identified?
 Note that getLocator() will actually store all available information about the column in the generated string -- this attribute effects how a stored string will be parsed only.Valid options area: - "fieldName"Attempt to identify by fieldName.
- "index"Attempt to identify by colNum (index in the fields array).
 - Returns:
- Current locateColumnsBy value. Default value is null
- See Also:
 
- 
setLocateRowsByWhenAutoTest.getElement()is used to parse locator strings generated byAutoTest.getLocator()for a cell in this grid, how should the row be identified?
 Note that getLocator() will actually store all available information about the row in the generated string -- this attribute effects how a stored string will be parsed only.Valid options area: - "primaryKey"Only applies to databound grids: If the cell in question has a primary key cell value, use it to identify cells in autoTest locator strings.
- "titleField"If the cell in question has a value for the- titleField, use it to identify cells in autoTest locator strings
- "targetCellValue"Identify rows by storing the cell value for the target row / field in autoTest locator strings
- "cellValue"Use the value of a specific cell to identify the row. The- rowLocatorFieldattribute may be used to specify the field from which the cellValue should be retrieved.
- "index"The rowNum will be used to identify the row.
 AutoTest.getElement().If a primaryKey value was recorded (and this grid has a primary key field), it will be used to identify the target row. Otherwise the system will back off to use the titleField (if present in the locator), then the cell value (if present in the locator), and lastly the recorded index. - Parameters:
- locateRowsBy- New locateRowsBy value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLocateRowsByWhenAutoTest.getElement()is used to parse locator strings generated byAutoTest.getLocator()for a cell in this grid, how should the row be identified?
 Note that getLocator() will actually store all available information about the row in the generated string -- this attribute effects how a stored string will be parsed only.Valid options area: - "primaryKey"Only applies to databound grids: If the cell in question has a primary key cell value, use it to identify cells in autoTest locator strings.
- "titleField"If the cell in question has a value for the- titleField, use it to identify cells in autoTest locator strings
- "targetCellValue"Identify rows by storing the cell value for the target row / field in autoTest locator strings
- "cellValue"Use the value of a specific cell to identify the row. The- rowLocatorFieldattribute may be used to specify the field from which the cellValue should be retrieved.
- "index"The rowNum will be used to identify the row.
 AutoTest.getElement().If a primaryKey value was recorded (and this grid has a primary key field), it will be used to identify the target row. Otherwise the system will back off to use the titleField (if present in the locator), then the cell value (if present in the locator), and lastly the recorded index. - Returns:
- Current locateRowsBy value. Default value is null
- See Also:
 
- 
setLongTextEditorThresholdWhen the length of the field specified byDataSourceField.lengthexceeds this value, the ListGrid shows an edit field of typelongTextEditorTyperather than the standard text field when the field enters inline edit mode.- Parameters:
- longTextEditorThreshold- New longTextEditorThreshold value. Default value is 255
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLongTextEditorThresholdpublic int getLongTextEditorThreshold()When the length of the field specified byDataSourceField.lengthexceeds this value, the ListGrid shows an edit field of typelongTextEditorTyperather than the standard text field when the field enters inline edit mode.- Returns:
- Current longTextEditorThreshold value. Default value is 255
- See Also:
 
- 
setLongTextEditorTypeWhen the length of the field specified byDataSourceField.lengthexceedsthis.longTextEditorThresholdshow an edit field of this type rather than the standard text field when the field enters inline edit mode.- Parameters:
- longTextEditorType- New longTextEditorType value. Default value is "PopUpTextAreaItem"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getLongTextEditorTypeWhen the length of the field specified byDataSourceField.lengthexceedsthis.longTextEditorThresholdshow an edit field of this type rather than the standard text field when the field enters inline edit mode.- Returns:
- Current longTextEditorType value. Default value is "PopUpTextAreaItem"
- See Also:
 
- 
setMaxExpandedRecordsWhencanExpandRecordsandcanExpandMultipleRecordsare both true, this property dictates the number of records which can be expanded simultaneously. If the expanded record count hits the value of this property, further attempts to expand records will result in a popup warning (seemaxExpandedRecordsPrompt) and expansion will be cancelled.The default value is null, meaning there is no limit on the number of expanded records. - Parameters:
- maxExpandedRecords- New maxExpandedRecords value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getMaxExpandedRecordsWhencanExpandRecordsandcanExpandMultipleRecordsare both true, this property dictates the number of records which can be expanded simultaneously. If the expanded record count hits the value of this property, further attempts to expand records will result in a popup warning (seemaxExpandedRecordsPrompt) and expansion will be cancelled.The default value is null, meaning there is no limit on the number of expanded records. - Returns:
- Current maxExpandedRecords value. Default value is null
 
- 
setMaxExpandedRecordsPromptpublic ListGrid setMaxExpandedRecordsPrompt(String maxExpandedRecordsPrompt) throws IllegalStateException This is a dynamic string - text within${...}will be evaluated as JS code when the message is displayed. Note that the local variablecountwill be available and set to this.maxExpandedRecords. The string will be executed in the scope of the ListGrid sothismay also be used to determine other information about this grid.Default value returns This grid is limited to[simultaneously expanded records. Please collapse some expanded records and retry.maxExpandedRecords]- Parameters:
- maxExpandedRecordsPrompt- New maxExpandedRecordsPrompt value. Default value is "This grid is limited to ${count} simultaneously expanded records. Please collapse some expanded records and retry."
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getMaxExpandedRecordsPromptThis is a dynamic string - text within${...}will be evaluated as JS code when the message is displayed. Note that the local variablecountwill be available and set to this.maxExpandedRecords. The string will be executed in the scope of the ListGrid sothismay also be used to determine other information about this grid.Default value returns This grid is limited to[simultaneously expanded records. Please collapse some expanded records and retry.maxExpandedRecords]- Returns:
- Current maxExpandedRecordsPrompt value. Default value is "This grid is limited to ${count} simultaneously expanded records. Please collapse some expanded records and retry."
- See Also:
 
- 
setMaximumRowCountFormatFormat for the string returned fromgetFormattedRowCount()whenrow count statusis"maximum".The variable rowCountis available for evaluation within this string and will be set to thecurrent row countas alocale-formatted number.- Parameters:
- maximumRowCountFormat- New maximumRowCountFormat value. Default value is "-${rowCount}"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getMaximumRowCountFormatFormat for the string returned fromgetFormattedRowCount()whenrow count statusis"maximum".The variable rowCountis available for evaluation within this string and will be set to thecurrent row countas alocale-formatted number.- Returns:
- Current maximumRowCountFormat value. Default value is "-${rowCount}"
- See Also:
 
- 
setMaxSummaryRowRecordsIfshowGridSummaryis true, and summary records are being derived from a fetch against thesummaryRowDataSource, this property may be set to specify the maximum expected number of results from the fetch opeeration. If specified, theDSRequest.startRowfor the summary row fetch operation will be zero and theDSRequest.endRowwill be this value.This property has no effect unless summary row records are being retrieved from the summaryRowDataSource.Note : This is an advanced setting - Parameters:
- maxSummaryRowRecords- New maxSummaryRowRecords value. Default value is 1
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getMaxSummaryRowRecordsIfshowGridSummaryis true, and summary records are being derived from a fetch against thesummaryRowDataSource, this property may be set to specify the maximum expected number of results from the fetch opeeration. If specified, theDSRequest.startRowfor the summary row fetch operation will be zero and theDSRequest.endRowwill be this value.This property has no effect unless summary row records are being retrieved from the summaryRowDataSource.- Returns:
- Current maxSummaryRowRecords value. Default value is 1
 
- 
setMinFieldWidthMinimum size, in pixels, for ListGrid headers.
 If this method is called after the component has been drawn/initialized: UpdatesminFieldWidthand redraws any columns as needed.- Parameters:
- minFieldWidth- New minFieldWidth value. Default value is 15
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getMinFieldWidthpublic int getMinFieldWidth()Minimum size, in pixels, for ListGrid headers.- Returns:
- Current minFieldWidth value. Default value is 15
 
- 
setMinHeightSets theminimum heightfor the entire list (smaller than this doesn't tend to work very well). If not set, this value will be defaulted whendraw()is called to something reasonable based on whether we're showing thefilter editor,header,summary rows, and/or theempty message. Any top or bottom CSS padding specified byemptyMessageStylewill be taken into account, increasingminHeightso that the empty message can be shown without overflow.Note: Minimum sizes do not apply to all situations. See minimum sizing rulesfor details.- Overrides:
- setMinHeightin class- Canvas
- Parameters:
- minHeight- New minHeight value. Default value is varies
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getMinHeightpublic int getMinHeight()Sets theminimum heightfor the entire list (smaller than this doesn't tend to work very well). If not set, this value will be defaulted whendraw()is called to something reasonable based on whether we're showing thefilter editor,header,summary rows, and/or theempty message. Any top or bottom CSS padding specified byemptyMessageStylewill be taken into account, increasingminHeightso that the empty message can be shown without overflow.Note: Minimum sizes do not apply to all situations. See minimum sizing rulesfor details.- Overrides:
- getMinHeightin class- Canvas
- Returns:
- Current minHeight value. Default value is varies
- See Also:
 
- 
setMinimumCellHeightMinimum height for ListGrid cells, settable by the skin, based on the size of the checkbox media used for boolean fields plus minimal surrounding padding.minimumCellHeightis used byCanvas.resizeControls()to avoid shrinking ListGrid rows so much that correct display is impossible. Do not set minimumCellHeight on a per-instance basis - it's only for use in custom skins.- Parameters:
- minimumCellHeight- New minimumCellHeight value. Default value is 20
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getMinimumCellHeightpublic int getMinimumCellHeight()Minimum height for ListGrid cells, settable by the skin, based on the size of the checkbox media used for boolean fields plus minimal surrounding padding.minimumCellHeightis used byCanvas.resizeControls()to avoid shrinking ListGrid rows so much that correct display is impossible. Do not set minimumCellHeight on a per-instance basis - it's only for use in custom skins.- Returns:
- Current minimumCellHeight value. Default value is 20
 
- 
setMinimumRowCountFormatFormat for the string returned fromgetFormattedRowCount()whenrow count statusis"minimum".The variable rowCountis available for evaluation within this string and will be set to thecurrent row countas alocale-formatted number.- Parameters:
- minimumRowCountFormat- New minimumRowCountFormat value. Default value is "${rowCount}+"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getMinimumRowCountFormatFormat for the string returned fromgetFormattedRowCount()whenrow count statusis"minimum".The variable rowCountis available for evaluation within this string and will be set to thecurrent row countas alocale-formatted number.- Returns:
- Current minimumRowCountFormat value. Default value is "${rowCount}+"
- See Also:
 
- 
setMissingSummaryFieldValueIf a summary format string contains an invalid field reference, replace the reference with the missingSummaryFieldValue. The default value is "-".- Parameters:
- missingSummaryFieldValue- New missingSummaryFieldValue value. Default value is "-"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getMissingSummaryFieldValueIf a summary format string contains an invalid field reference, replace the reference with the missingSummaryFieldValue. The default value is "-".- Returns:
- Current missingSummaryFieldValue value. Default value is "-"
 
- 
setModalEditingIf this property is true, any mouse click outside of the open cell editors will end editing mode, hiding the cell editors and saving any changes to those cell values.Note : This is an advanced setting - Parameters:
- modalEditing- New modalEditing value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getModalEditingIf this property is true, any mouse click outside of the open cell editors will end editing mode, hiding the cell editors and saving any changes to those cell values.- Returns:
- Current modalEditing value. Default value is null
- See Also:
 
- 
setMultiGroupDialogDefaultspublic ListGrid setMultiGroupDialogDefaults(MultiGroupDialog multiGroupDialogDefaults) throws IllegalStateException Class-level defaults to apply to theMultiGroupDialogwhich gets automatically generated whenconfigureGrouping()is called.- Parameters:
- multiGroupDialogDefaults- New multiGroupDialogDefaults value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getMultiGroupDialogDefaultsClass-level defaults to apply to theMultiGroupDialogwhich gets automatically generated whenconfigureGrouping()is called.- Returns:
- Current multiGroupDialogDefaults value. Default value is null
 
- 
setMultiGroupDialogPropertiespublic ListGrid setMultiGroupDialogProperties(MultiGroupDialog multiGroupDialogProperties) throws IllegalStateException Properties to apply to theMultiGroupDialogwhich gets automatically generated whenconfigureGrouping()is called.- Parameters:
- multiGroupDialogProperties- New multiGroupDialogProperties value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getMultiGroupDialogPropertiesProperties to apply to theMultiGroupDialogwhich gets automatically generated whenconfigureGrouping()is called.- Returns:
- Current multiGroupDialogProperties value. Default value is null
 
- 
setNeverValidateIf true, validation will not occur as a result of cell editing for this grid.Note : This is an advanced setting - Parameters:
- neverValidate- New neverValidate value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getNeverValidateIf true, validation will not occur as a result of cell editing for this grid.- Returns:
- Current neverValidate value. Default value is null
- See Also:
 
- 
setNewRecordRowMessageIf this listGrid is showing the 'newRecordRow' (used for adding new rows to the end of the data), this property determines what message should be displayed in this row.- Parameters:
- newRecordRowMessage- New newRecordRowMessage value. Default value is "-- Add New Row --"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getNewRecordRowMessageIf this listGrid is showing the 'newRecordRow' (used for adding new rows to the end of the data), this property determines what message should be displayed in this row.- Returns:
- Current newRecordRowMessage value. Default value is "-- Add New Row --"
- See Also:
 
- 
setNewSearchTextText to show for saving the current view as a new "saved search".- Parameters:
- newSearchText- New newSearchText value. Default value is "Save View..."
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getNewSearchTextText to show for saving the current view as a new "saved search".- Returns:
- Current newSearchText value. Default value is "Save View..."
- See Also:
 
- 
setNormalBaseStyle"Normal" baseStyle for this listGrid. Only applies ifbaseStyleis set to null.If baseStyleis unset, this property will be used as a base cell style if the grid is showing fixed height rows, and the specified cellHeight matchesnormalCellHeight(and in Internet Explorer,fastCellUpdatesis false). OtherwisetallBaseStylewill be used.Having separate styles defined for fixed vs. variable height rows allows the developer to specify css which is designed to render at a specific height (typically using background images, which won't scale), without breaking support for styling rows of variable height. See CellStyleSuffixesfor details on how stateful suffixes are combined with the base style to generate stateful cell styles.- Parameters:
- normalBaseStyle- New normalBaseStyle value. Default value is "cell"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getNormalBaseStyle"Normal" baseStyle for this listGrid. Only applies ifbaseStyleis set to null.If baseStyleis unset, this property will be used as a base cell style if the grid is showing fixed height rows, and the specified cellHeight matchesnormalCellHeight(and in Internet Explorer,fastCellUpdatesis false). OtherwisetallBaseStylewill be used.Having separate styles defined for fixed vs. variable height rows allows the developer to specify css which is designed to render at a specific height (typically using background images, which won't scale), without breaking support for styling rows of variable height. See CellStyleSuffixesfor details on how stateful suffixes are combined with the base style to generate stateful cell styles.- Returns:
- Current normalBaseStyle value. Default value is "cell"
- See Also:
 
- 
setNormalCellHeightIfbaseStyleis unset, base style will be derived fromnormalBaseStyleif this grid has fixed row heights and the specifiedcellHeightmatches this value. OtherwisetallBaseStylewill be used.Note : This is an advanced setting - Parameters:
- normalCellHeight- New normalCellHeight value. Default value is 20
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getNormalCellHeightpublic int getNormalCellHeight()IfbaseStyleis unset, base style will be derived fromnormalBaseStyleif this grid has fixed row heights and the specifiedcellHeightmatches this value. OtherwisetallBaseStylewill be used.- Returns:
- Current normalCellHeight value. Default value is 20
 
- 
setNoSavedSearchesTextText to show in menu listing saved searches when there are no saved searches.- Parameters:
- noSavedSearchesText- New noSavedSearchesText value. Default value is "[None]"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getNoSavedSearchesTextText to show in menu listing saved searches when there are no saved searches.- Returns:
- Current noSavedSearchesText value. Default value is "[None]"
- See Also:
 
- 
setNullGroupTitleDefault alias to use for groups with no value- Parameters:
- nullGroupTitle- New nullGroupTitle value. Default value is '-none-'
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getNullGroupTitleDefault alias to use for groups with no value- Returns:
- Current nullGroupTitle value. Default value is '-none-'
- See Also:
 
- 
setOfflineMessageStyleThe CSS style name applied to theofflineMessageif displayed.- Parameters:
- offlineMessageStyle- New offlineMessageStyle value. Default value is "offlineMessage"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getOfflineMessageStyleThe CSS style name applied to theofflineMessageif displayed.- Returns:
- Current offlineMessageStyle value. Default value is "offlineMessage"
- See Also:
 
- 
getOperatorIconNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.Inline icon shown inside filter editorfields whenallowFilterOperatorsis enabled.- Returns:
- null
 
- 
setOriginBaseStyleName of a CSS Style to use as thebaseStylefor a cell that is currently a selection origin for shifted incremental cell selection. Only has an effect ifcanSelectCellsis true.- Parameters:
- originBaseStyle- New originBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getOriginBaseStyleName of a CSS Style to use as thebaseStylefor a cell that is currently a selection origin for shifted incremental cell selection. Only has an effect ifcanSelectCellsis true.- Returns:
- Current originBaseStyle value. Default value is null
- See Also:
 
- 
setOverflowSincebodyis configured with overflow: auto by default, no overflow is expected for theListGriditself so by default it has overflow: hidden.- Overrides:
- setOverflowin class- Layout
- Parameters:
- overflow- New overflow value. Default value is Canvas.HIDDEN
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getOverflowSincebodyis configured with overflow: auto by default, no overflow is expected for theListGriditself so by default it has overflow: hidden.- Overrides:
- getOverflowin class- Layout
- Returns:
- Current overflow value. Default value is Canvas.HIDDEN
- See Also:
 
- 
setPendingAsyncCellValueThe value to display for cells whose value is pending asynchronous computation.This is the grid-wide setting. ListGridField.pendingAsyncCellValuecan override the grid setting for a specific field.- Parameters:
- pendingAsyncCellValue- New pendingAsyncCellValue value. Default value is " "
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getPendingAsyncCellValueThe value to display for cells whose value is pending asynchronous computation.This is the grid-wide setting. ListGridField.pendingAsyncCellValuecan override the grid setting for a specific field.- Returns:
- Current pendingAsyncCellValue value. Default value is " "
- See Also:
 
- 
setPlaceholderAIHoverContentsMessage to show in the hover while AI-generated hover text is being retrieved for fields specifying anaiHoverRequest.- Parameters:
- placeholderAIHoverContents- New placeholderAIHoverContents value. Default value is "<b><i>Retrieving summary from AI...</i></b>"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getPlaceholderAIHoverContentsMessage to show in the hover while AI-generated hover text is being retrieved for fields specifying anaiHoverRequest.- Returns:
- Current placeholderAIHoverContents value. Default value is "<b><i>Retrieving summary from AI...</i></b>"
- See Also:
 
- 
setPoolComponentsPerColumnShould recycledrecord components, be pooled per column or per record. Only applies ifshowRecordComponentsByCellis true.When recordComponentPoolingModeis "recycle" and you have components of different types in different columns, set this property to true to ensure that components intended for one column are not recycled for use in another column that should have a different component.If no components applicable to a particular column are available in the pool, the system calls createRecordComponent.- Parameters:
- poolComponentsPerColumn- New poolComponentsPerColumn value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getPoolComponentsPerColumnShould recycledrecord components, be pooled per column or per record. Only applies ifshowRecordComponentsByCellis true.When recordComponentPoolingModeis "recycle" and you have components of different types in different columns, set this property to true to ensure that components intended for one column are not recycled for use in another column that should have a different component.If no components applicable to a particular column are available in the pool, the system calls createRecordComponent.- Returns:
- Current poolComponentsPerColumn value. Default value is true
 
- 
setPreserveFocusStylingOnMouseOutIfshowRollOverorhiliteRowOnFocusis true the current keyboard focus row for navigation via arrow keys, etc, will be hilighted with"Over"styling. This is particularly valuable to indicate which row has keyboard focus where there are multiple selected rows, or where the user is navigating without changing selection (seearrowKeyAction).
 However, note that as the user interacts with the rows using the mouse, the rollover styling will be updated to reflect the mouse position ifshowRollOveris true.When the user rolls the mouse off the grid, the default behavior is to re-style the current focus row with "Over"styling if the grid has keyboard focus. That way a user has a clear visual indication of where navigation would start. This may be disabled by settingpreserveFocusStylingOnMouseOutto false.Note : This is an advanced setting - Parameters:
- preserveFocusStylingOnMouseOut- New preserveFocusStylingOnMouseOut value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getPreserveFocusStylingOnMouseOutIfshowRollOverorhiliteRowOnFocusis true the current keyboard focus row for navigation via arrow keys, etc, will be hilighted with"Over"styling. This is particularly valuable to indicate which row has keyboard focus where there are multiple selected rows, or where the user is navigating without changing selection (seearrowKeyAction).
 However, note that as the user interacts with the rows using the mouse, the rollover styling will be updated to reflect the mouse position ifshowRollOveris true.When the user rolls the mouse off the grid, the default behavior is to re-style the current focus row with "Over"styling if the grid has keyboard focus. That way a user has a clear visual indication of where navigation would start. This may be disabled by settingpreserveFocusStylingOnMouseOutto false.- Returns:
- Current preserveFocusStylingOnMouseOut value. Default value is true
 
- 
setPreserveWhitespaceShould cells be written out with css that will preserve whitespace?If true, depending on the value of wrapCells, the css generated for cells will use the white-space property values ofpreorpre-wrap. This avoids collapsing sequences of whitespace without requiring special   characters.Note : This is an advanced setting - Parameters:
- preserveWhitespace- New preserveWhitespace value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getPreserveWhitespaceShould cells be written out with css that will preserve whitespace?If true, depending on the value of wrapCells, the css generated for cells will use the white-space property values ofpreorpre-wrap. This avoids collapsing sequences of whitespace without requiring special   characters.- Returns:
- Current preserveWhitespace value. Default value is false
 
- 
setPrintAutoFitWhether cell contents should wrap during printing. Equivalent toAutofit, but specific to printed output.
- 
getPrintAutoFitWhether cell contents should wrap during printing. Equivalent toAutofit, but specific to printed output.- Returns:
- Current printAutoFit value. Default value is true
- See Also:
 
- 
setPrintBaseStyleStyle for non-header cells in printed output. Defaults tobaseStyleif null.- Parameters:
- printBaseStyle- New printBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getPrintBaseStyleStyle for non-header cells in printed output. Defaults tobaseStyleif null.- Returns:
- Current printBaseStyle value. Default value is null
- See Also:
 
- 
setPrintBooleanBaseStyle- Parameters:
- printBooleanBaseStyle- New printBooleanBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getPrintBooleanBaseStyleIf set, thebooleanBaseStyleto use whenprinting.- Returns:
- Current printBooleanBaseStyle value. Default value is null
- See Also:
 
- 
setPrintBooleanFalseImageIf set, thebooleanFalseImageto use whenprinting.If this, printBooleanTrueImageandprintBooleanPartialImageare unset, this will be set to the defaultCheckboxItem.printUncheckedImage.Note : This is an advanced setting - Parameters:
- printBooleanFalseImage- New printBooleanFalseImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getPrintBooleanFalseImageIf set, thebooleanFalseImageto use whenprinting.If this, printBooleanTrueImageandprintBooleanPartialImageare unset, this will be set to the defaultCheckboxItem.printUncheckedImage.- Returns:
- Current printBooleanFalseImage value. Default value is null
- See Also:
 
- 
setPrintBooleanPartialImageIf set, thebooleanPartialImageto use whenprinting.If this, printBooleanTrueImageandprintBooleanFalseImageare unset, this will be set to the defaultCheckboxItem.printPartialSelectedImage.Note : This is an advanced setting - Parameters:
- printBooleanPartialImage- New printBooleanPartialImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getPrintBooleanPartialImageIf set, thebooleanPartialImageto use whenprinting.If this, printBooleanTrueImageandprintBooleanFalseImageare unset, this will be set to the defaultCheckboxItem.printPartialSelectedImage.- Returns:
- Current printBooleanPartialImage value. Default value is null
- See Also:
 
- 
setPrintBooleanTrueImageIf set, thebooleanTrueImageto use whenprinting.If this, printBooleanFalseImageandprintBooleanPartialImageare unset, this will be set to the defaultCheckboxItem.printCheckedImage.Note : This is an advanced setting - Parameters:
- printBooleanTrueImage- New printBooleanTrueImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getPrintBooleanTrueImageIf set, thebooleanTrueImageto use whenprinting.If this, printBooleanFalseImageandprintBooleanPartialImageare unset, this will be set to the defaultCheckboxItem.printCheckedImage.- Returns:
- Current printBooleanTrueImage value. Default value is null
- See Also:
 
- 
setPrintCheckboxFieldFalseImage- Parameters:
- printCheckboxFieldFalseImage- New printCheckboxFieldFalseImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getPrintCheckboxFieldFalseImageIf set, thecheckboxFieldFalseImageto use whenprinting.- Returns:
- Current printCheckboxFieldFalseImage value. Default value is null
- See Also:
 
- 
setPrintCheckboxFieldPartialImage- Parameters:
- printCheckboxFieldPartialImage- New printCheckboxFieldPartialImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getPrintCheckboxFieldPartialImageIf set, thecheckboxFieldPartialImageto use whenprinting.- Returns:
- Current printCheckboxFieldPartialImage value. Default value is null
- See Also:
 
- 
setPrintCheckboxFieldTrueImage- Parameters:
- printCheckboxFieldTrueImage- New printCheckboxFieldTrueImage value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getPrintCheckboxFieldTrueImageIf set, thecheckboxFieldTrueImageto use whenprinting.- Returns:
- Current printCheckboxFieldTrueImage value. Default value is null
- See Also:
 
- 
setPrintHeaderStyleStyle for header cells in printed output. Defaults toheaderBaseStyleif null.- Parameters:
- printHeaderStyle- New printHeaderStyle value. Default value is "printHeader"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getPrintHeaderStyleStyle for header cells in printed output. Defaults toheaderBaseStyleif null.- Returns:
- Current printHeaderStyle value. Default value is "printHeader"
- See Also:
 
- 
setPrintMaxRowsAdvanced property - when generating printHTML for a large ListGrid, rows are printed in batches in order to avoid triggering a native "script is running slowly" browser dialog.For grids with exceptional numbers of columns or complex formatting logic, this number might need to be adjusted downward. Note : This is an advanced setting 
- 
getPrintMaxRowspublic int getPrintMaxRows()Advanced property - when generating printHTML for a large ListGrid, rows are printed in batches in order to avoid triggering a native "script is running slowly" browser dialog.For grids with exceptional numbers of columns or complex formatting logic, this number might need to be adjusted downward. - Returns:
- Current printMaxRows value. Default value is 100
- See Also:
 
- 
setPrintWrapCellsWhether cell contents should wrap during printing. Equivalent towrapCells, but specific to printed output.
- 
getPrintWrapCellsWhether cell contents should wrap during printing. Equivalent towrapCells, but specific to printed output.- Returns:
- Current printWrapCells value. Default value is true
- See Also:
 
- 
setQuickDrawAheadRatioAlternative todrawAheadRatio, to be used when the user is rapidly changing the grids viewport (for example drag scrolling through the grid). If unspecifieddrawAheadRatiowill be used in all cases- Parameters:
- quickDrawAheadRatio- New quickDrawAheadRatio value. Default value is 2.0
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getQuickDrawAheadRatiopublic float getQuickDrawAheadRatio()Alternative todrawAheadRatio, to be used when the user is rapidly changing the grids viewport (for example drag scrolling through the grid). If unspecifieddrawAheadRatiowill be used in all cases- Returns:
- Current quickDrawAheadRatio value. Default value is 2.0
 
- 
setRangeRowCountFormatFormat for the string returned fromgetFormattedRowCount()whenrow count statusis"range".The following variables are available for evaluation within this string: - minRowCount: the lower bound of this row count value from- getRowCountRange()[0], as a- locale-formatted number.
- minRowCount: the upper bound of this row count value from- getRowCountRange()[1], as a- locale-formatted number.
 - Parameters:
- rangeRowCountFormat- New rangeRowCountFormat value. Default value is "${minRowCount}-${maxRowCount}"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRangeRowCountFormatFormat for the string returned fromgetFormattedRowCount()whenrow count statusis"range".The following variables are available for evaluation within this string: - minRowCount: the lower bound of this row count value from- getRowCountRange()[0], as a- locale-formatted number.
- minRowCount: the upper bound of this row count value from- getRowCountRange()[1], as a- locale-formatted number.
 - Returns:
- Current rangeRowCountFormat value. Default value is "${minRowCount}-${maxRowCount}"
- See Also:
 
- 
setRecordBaseStylePropertyThis attribute allows custom base styles to be displayed on a per-record basis. To specify a custom base-style for some record setrecord[listGrid.recordBaseStyleProperty]to the desired base style name - for example ifrecordBaseStylePropertyis"_baseStyle", setrecord._baseStyleto the custom base style name.Note : This is an advanced setting - Parameters:
- recordBaseStyleProperty- New recordBaseStyleProperty value. Default value is "_baseStyle"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRecordBaseStylePropertyThis attribute allows custom base styles to be displayed on a per-record basis. To specify a custom base-style for some record setrecord[listGrid.recordBaseStyleProperty]to the desired base style name - for example ifrecordBaseStylePropertyis"_baseStyle", setrecord._baseStyleto the custom base style name.- Returns:
- Current recordBaseStyleProperty value. Default value is "_baseStyle"
- See Also:
 
- 
setRecordCanRemovePropertypublic ListGrid setRecordCanRemoveProperty(String recordCanRemoveProperty) throws IllegalStateException If set to false on a record andcanRemoveRecordsis true, removal of that record is disallowed in the UI. The icon in the remove field is not shown.Note : This is an advanced setting - Parameters:
- recordCanRemoveProperty- New recordCanRemoveProperty value. Default value is "_canRemove"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getRecordCanRemovePropertyIf set to false on a record andcanRemoveRecordsis true, removal of that record is disallowed in the UI. The icon in the remove field is not shown.- Returns:
- Current recordCanRemoveProperty value. Default value is "_canRemove"
- See Also:
 
- 
setRecordCanSelectPropertypublic ListGrid setRecordCanSelectProperty(String recordCanSelectProperty) throws IllegalStateException If set to false on a record, selection of that record is disallowed.Note : This is an advanced setting - Parameters:
- recordCanSelectProperty- New recordCanSelectProperty value. Default value is "canSelect"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getRecordCanSelectPropertyIf set to false on a record, selection of that record is disallowed.- Returns:
- Current recordCanSelectProperty value. Default value is "canSelect"
 
- 
setRecordCellRolePropertyIf this property is set on a record it will designate the WAI ARIA role for cells within this records rowNote : This is an advanced setting - Parameters:
- recordCellRoleProperty- New recordCellRoleProperty value. Default value is "cellRole"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRecordCellRolePropertyIf this property is set on a record it will designate the WAI ARIA role for cells within this records row- Returns:
- Current recordCellRoleProperty value. Default value is "cellRole"
 
- 
setRecordComponentHeightIfshowRecordComponentsis true, this attribute may be used to specify a standard height for record components. If specified every row in the grid will be sized tall enough to accommodate a recordComponent of this size.Note that if this property is unset, the grid will not be able to know row heights in advance, and frozen fieldsare not currently supported in this case. If you are putting a recordComponent in every row, and they all have a consistent height, setrecordComponentHeightand you will then be able to use frozen fields and avoid the whitespace side-effect of virtual scrolling by settingvirtualScrolling:false.Similarly, if your recordComponents are never tall enough that they will expand the row beyond the cellHeight, setvirtualScrolling:false to avoid the whitespace side-effect ofvirtual scrollingand to allowfrozen fieldsto be used. In this mode, you can have recordComponents on some rows but not others, and recordComponents of different heights, so long as no recordComponent ever causes a row to grow beyondcellHeight(which would happen if the recordComponents height + 2*cellPaddingis larger thancellHeight).
 If this method is called after the component has been drawn/initialized: Setter for therecordComponentHeightNote : This is an advanced setting - Parameters:
- recordComponentHeight- recordComponent height. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRecordComponentHeightIfshowRecordComponentsis true, this attribute may be used to specify a standard height for record components. If specified every row in the grid will be sized tall enough to accommodate a recordComponent of this size.Note that if this property is unset, the grid will not be able to know row heights in advance, and frozen fieldsare not currently supported in this case. If you are putting a recordComponent in every row, and they all have a consistent height, setrecordComponentHeightand you will then be able to use frozen fields and avoid the whitespace side-effect of virtual scrolling by settingvirtualScrolling:false.Similarly, if your recordComponents are never tall enough that they will expand the row beyond the cellHeight, setvirtualScrolling:false to avoid the whitespace side-effect ofvirtual scrollingand to allowfrozen fieldsto be used. In this mode, you can have recordComponents on some rows but not others, and recordComponents of different heights, so long as no recordComponent ever causes a row to grow beyondcellHeight(which would happen if the recordComponents height + 2*cellPaddingis larger thancellHeight).- Returns:
- Current recordComponentHeight value. Default value is null
- See Also:
 
- 
setRecordComponentPoolingModepublic ListGrid setRecordComponentPoolingMode(RecordComponentPoolingMode recordComponentPoolingMode) The method ofcomponent-poolingto employ forrecordComponents.The default mode is "viewport", which means that recordComponents are destroyed as soon their record is no longer being rendered (scrolled out of the viewport, eliminated by search criteria, etc). For a large or dynamic data set where the components shown on different rows are similar, switch to "recycle" mode, which pools recordComponents by detaching them from records that are not visible and re-using them in other records. In this mode, you should implement updateRecordComponent()to apply any changes to make reused components applicable to the new record they appear in, if necessary. For example, if you have several controls in yourrecordComponents, and not all of the controls apply to every record, yourupdateRecordComponent()implementation could simply hide or disable inapplicable controls, and this would be much faster than creating a whole new set of controls every time a given record is scrolled into view.If you are using per-cell recordComponents, and you have components of different types in different columns and still want to take advantage of component recycling, you can setpoolComponentsPerColumnto ensure that components intended for one column are not recycled for use in another column that should have a different component.Note that, if different records have distinctly different components embedded in them, or multiple columns in each record embed different components, you should leave the recordComponentPoolingMode at "viewport" if your dataset is very large or use "data" otherwise. Note : This is an advanced setting - Parameters:
- recordComponentPoolingMode- New recordComponentPoolingMode value. Default value is "viewport"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRecordComponentPoolingModeThe method ofcomponent-poolingto employ forrecordComponents.The default mode is "viewport", which means that recordComponents are destroyed as soon their record is no longer being rendered (scrolled out of the viewport, eliminated by search criteria, etc). For a large or dynamic data set where the components shown on different rows are similar, switch to "recycle" mode, which pools recordComponents by detaching them from records that are not visible and re-using them in other records. In this mode, you should implement updateRecordComponent()to apply any changes to make reused components applicable to the new record they appear in, if necessary. For example, if you have several controls in yourrecordComponents, and not all of the controls apply to every record, yourupdateRecordComponent()implementation could simply hide or disable inapplicable controls, and this would be much faster than creating a whole new set of controls every time a given record is scrolled into view.If you are using per-cell recordComponents, and you have components of different types in different columns and still want to take advantage of component recycling, you can setpoolComponentsPerColumnto ensure that components intended for one column are not recycled for use in another column that should have a different component.Note that, if different records have distinctly different components embedded in them, or multiple columns in each record embed different components, you should leave the recordComponentPoolingMode at "viewport" if your dataset is very large or use "data" otherwise. - Returns:
- Current recordComponentPoolingMode value. Default value is "viewport"
 
- 
setRecordComponentPositionifshowRecordComponentsis true, how should the component appear within the cell. Valid options are- "within": the component will be rendered inside the record / cell.- Canvas.snapTomay be set to specify where the component should render within the row or cell, and- Canvas.snapOffsetTop/- Canvas.snapOffsetLeftmay be set to indent recordComponents within their parent cells. Note that if unset, the component will show up at the top/left edge for components embedded within an entire row, or for per-cell components, cell align and valign will be respected. Note also that, when rendering components "within" cells, specified component heights will be respected and will change the height of the row. However, if you want components to completely fill a cell at it's default height, set height: "100%" or rows will render at the default height of the component.
- "expand": the component will be written into the cell below the normal cell content, causing the cell to expand vertically to accommodate it.
- null: If this attribute is unset, we will default to showing recordComponents with position- "within"if- showRecordComponentsByCellis true, otherwise using- "expand"logic.
 - Parameters:
- recordComponentPosition- New recordComponentPosition value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRecordComponentPositionifshowRecordComponentsis true, how should the component appear within the cell. Valid options are- "within": the component will be rendered inside the record / cell.- Canvas.snapTomay be set to specify where the component should render within the row or cell, and- Canvas.snapOffsetTop/- Canvas.snapOffsetLeftmay be set to indent recordComponents within their parent cells. Note that if unset, the component will show up at the top/left edge for components embedded within an entire row, or for per-cell components, cell align and valign will be respected. Note also that, when rendering components "within" cells, specified component heights will be respected and will change the height of the row. However, if you want components to completely fill a cell at it's default height, set height: "100%" or rows will render at the default height of the component.
- "expand": the component will be written into the cell below the normal cell content, causing the cell to expand vertically to accommodate it.
- null: If this attribute is unset, we will default to showing recordComponents with position- "within"if- showRecordComponentsByCellis true, otherwise using- "expand"logic.
 - Returns:
- Current recordComponentPosition value. Default value is null
- See Also:
 
- 
setRecordDetailDSPropertyThe name of the ListGridRecord property that specifies the DataSource to use whenlistGrid.expansionModeis "related". The default isListGridRecord.detailDS. Note that you can set thedetailDSat the grid level instead if the same dataSource is to be used for all records.Note : This is an advanced setting - Parameters:
- recordDetailDSProperty- New recordDetailDSProperty value. Default value is "detailDS"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRecordDetailDSPropertyThe name of the ListGridRecord property that specifies the DataSource to use whenlistGrid.expansionModeis "related". The default isListGridRecord.detailDS. Note that you can set thedetailDSat the grid level instead if the same dataSource is to be used for all records.- Returns:
- Current recordDetailDSProperty value. Default value is "detailDS"
 
- 
setRecordDropAppearanceIfcanAcceptDroppedRecordsis true for this listGrid, this property governs whether the user can drop between, or over records within the grid. This controls whatRecordDropPositionis passed to therecordDrop()event handler.- Parameters:
- recordDropAppearance- New recordDropAppearance value. Default value is ListGrid.BETWEEN
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRecordDropAppearanceIfcanAcceptDroppedRecordsis true for this listGrid, this property governs whether the user can drop between, or over records within the grid. This controls whatRecordDropPositionis passed to therecordDrop()event handler.- Returns:
- Current recordDropAppearance value. Default value is ListGrid.BETWEEN
 
- 
setRecordEditPropertyProperty name on a record that should be checked to determine whether the record may be edited.
 This property is configurable to avoid possible collision with data values in record. With the default setting of "_canEdit", a record can be set non-editable by ensuring record._canEdit == false.
 For controlling editability for the entire grid or for a field, set grid.canEdit or field.canEdit.Note : This is an advanced setting - Parameters:
- recordEditProperty- New recordEditProperty value. Default value is "_canEdit"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRecordEditPropertyProperty name on a record that should be checked to determine whether the record may be edited.
 This property is configurable to avoid possible collision with data values in record. With the default setting of "_canEdit", a record can be set non-editable by ensuring record._canEdit == false.
 For controlling editability for the entire grid or for a field, set grid.canEdit or field.canEdit.- Returns:
- Current recordEditProperty value. Default value is "_canEdit"
- See Also:
 
- 
setRecordEnabledPropertyProperty name on a record that will be checked to determine whether a record is enabled.Setting this property on a record will effect the visual style and interactivity of the record. If set to falsethe record (row in aListGridorTreeGrid) will not highlight when the mouse moves over it, nor will it respond to mouse clicks.- Parameters:
- recordEnabledProperty- New recordEnabledProperty value. Default value is "enabled"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getRecordEnabledPropertyProperty name on a record that will be checked to determine whether a record is enabled.Setting this property on a record will effect the visual style and interactivity of the record. If set to falsethe record (row in aListGridorTreeGrid) will not highlight when the mouse moves over it, nor will it respond to mouse clicks.- Returns:
- Current recordEnabledProperty value. Default value is "enabled"
- See Also:
 
- 
setRecordRadiusWhen set to any valid CSS border-radius string, allows for rounded records in this grid by havinggetCellCSSText()apply a corner-radius to the first and last cells in each record. This styling is applied on top of the regular cell styles, so will work with any design, and is also applied correctly with or without frozen fields.If you need to apply more than just a radius to the ends of each record, you can set styledRowEndsto true and providefirstCellStyleandlastCellStyleclasses that achieve the design you need. Note that these two classes should not modify settings which may affect sizing, such as padding or font-sizes.Note that you can also provide your own implementation of getCellCSSText()orgetCellStyle(), if you want to do something more complex, like a gradient fade that spans the end two cells on each side of a record.
 If this method is called after the component has been drawn/initialized: Setter forrecordRadius, which provides rounded corners for rows in this grid.- Parameters:
- recordRadius- any CSS border-radius string, with 1 to 4 space-separated sizes. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRecordRadiusWhen set to any valid CSS border-radius string, allows for rounded records in this grid by havinggetCellCSSText()apply a corner-radius to the first and last cells in each record. This styling is applied on top of the regular cell styles, so will work with any design, and is also applied correctly with or without frozen fields.If you need to apply more than just a radius to the ends of each record, you can set styledRowEndsto true and providefirstCellStyleandlastCellStyleclasses that achieve the design you need. Note that these two classes should not modify settings which may affect sizing, such as padding or font-sizes.Note that you can also provide your own implementation of getCellCSSText()orgetCellStyle(), if you want to do something more complex, like a gradient fade that spans the end two cells on each side of a record.- Returns:
- Current recordRadius value. Default value is null
 
- 
setRecordRadiusTargetsArray ofRecordTypesthat should be rounded whenrecordRadiusis set to a valid CSS border-radius string.By default, group-headersand records showinggrouporgridsummaries are not rounded, because these records typically have a separator line to distinguish them from surrounding records.- Parameters:
- recordRadiusTargets- New recordRadiusTargets value. Default value is []
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRecordRadiusTargetsArray ofRecordTypesthat should be rounded whenrecordRadiusis set to a valid CSS border-radius string.By default, group-headersand records showinggrouporgridsummaries are not rounded, because these records typically have a separator line to distinguish them from surrounding records.- Returns:
- Current recordRadiusTargets value. Default value is []
 
- 
setRecordRowAriaStatePropertyIf this property is set on a record it will designate a mapping of WAI ARIA attribute names and values for this record's row.Note : This is an advanced setting - Parameters:
- recordRowAriaStateProperty- New recordRowAriaStateProperty value. Default value is "rowAriaState"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRecordRowAriaStatePropertyIf this property is set on a record it will designate a mapping of WAI ARIA attribute names and values for this record's row.- Returns:
- Current recordRowAriaStateProperty value. Default value is "rowAriaState"
 
- 
setRecordRowRolePropertyIf this property is set on a record it will designate the WAI ARIA role for this record's row.Note : This is an advanced setting - Parameters:
- recordRowRoleProperty- New recordRowRoleProperty value. Default value is "rowRole"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRecordRowRolePropertyIf this property is set on a record it will designate the WAI ARIA role for this record's row.- Returns:
- Current recordRowRoleProperty value. Default value is "rowRole"
 
- 
setRecordScreenScreen to create (viacreateScreen()) in lieu of callinggetRecordComponent().If this grid has a dataSource, the created screen is provided with aCanvas.dataContextthat includes the record being shown at the row. Be sure the record screen meets theserequirementsto utilize thedataContext.- Parameters:
- recordScreen- New recordScreen value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getRecordScreenScreen to create (viacreateScreen()) in lieu of callinggetRecordComponent().If this grid has a dataSource, the created screen is provided with aCanvas.dataContextthat includes the record being shown at the row. Be sure the record screen meets theserequirementsto utilize thedataContext.- Returns:
- Current recordScreen value. Default value is null
 
- 
setRecordShowRollOverPropertypublic ListGrid setRecordShowRollOverProperty(String recordShowRollOverProperty) throws IllegalStateException Name of the property that can be set on a per-record basis to disabled rollover for an individual record whenshowRollOveris true.- Parameters:
- recordShowRollOverProperty- New recordShowRollOverProperty value. Default value is "showRollOver"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getRecordShowRollOverPropertyName of the property that can be set on a per-record basis to disabled rollover for an individual record whenshowRollOveris true.- Returns:
- Current recordShowRollOverProperty value. Default value is "showRollOver"
- See Also:
 
- 
setRecordSummaryAttributePrefixpublic ListGrid setRecordSummaryAttributePrefix(String recordSummaryAttributePrefix) throws IllegalStateException Prefix prepended to the name of a"summary"typefield when accessing its value as record metadata. The Framework may write out this value to make rendering the cell values or calculating agrid summary roworgroup summary rowsmore efficient.Note : This is an advanced setting - Parameters:
- recordSummaryAttributePrefix- New recordSummaryAttributePrefix value. Default value is "_"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getRecordSummaryAttributePrefixPrefix prepended to the name of a"summary"typefield when accessing its value as record metadata. The Framework may write out this value to make rendering the cell values or calculating agrid summary roworgroup summary rowsmore efficient.- Returns:
- Current recordSummaryAttributePrefix value. Default value is "_"
- See Also:
 
- 
setRecordSummaryBaseStyleIf showing any record summary fields (IE: fields oftype:"summary"), this attribute specifies a custom base style to apply to cells in the summary fieldNote : This is an advanced setting - Parameters:
- recordSummaryBaseStyle- New recordSummaryBaseStyle value. Default value is "recordSummaryCell"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRecordSummaryBaseStyleIf showing any record summary fields (IE: fields oftype:"summary"), this attribute specifies a custom base style to apply to cells in the summary field- Returns:
- Current recordSummaryBaseStyle value. Default value is "recordSummaryCell"
- See Also:
 
- 
setRemovedCSSTextCustom CSS text to be applied to records that have beenmarked for removal.This CSS text will be applied on top of standard disabled styling for the cell. Note : This is an advanced setting - Parameters:
- removedCSSText- New removedCSSText value. Default value is "text-decoration:line-through;"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRemovedCSSTextCustom CSS text to be applied to records that have beenmarked for removal.This CSS text will be applied on top of standard disabled styling for the cell. - Returns:
- Current removedCSSText value. Default value is "text-decoration:line-through;"
- See Also:
 
- 
setRemoveFieldPropertiespublic ListGrid setRemoveFieldProperties(ListGridField removeFieldProperties) throws IllegalStateException Configuration properties for the "remove field" displayed whencanRemoveRecordsis enabled.- Parameters:
- removeFieldProperties- New removeFieldProperties value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getRemoveFieldPropertiesConfiguration properties for the "remove field" displayed whencanRemoveRecordsis enabled.- Returns:
- Current removeFieldProperties value. Default value is null
 
- 
setRemoveFieldTitleThe title to use for theremove field.By default this title is not displayed in the remove column header button as the removeFieldDefaultssetsListGridField.showTitletofalse.Note : This is an advanced setting - Parameters:
- removeFieldTitle- New removeFieldTitle value. Default value is " "
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRemoveFieldTitleThe title to use for theremove field.By default this title is not displayed in the remove column header button as the removeFieldDefaultssetsListGridField.showTitletofalse.- Returns:
- Current removeFieldTitle value. Default value is " "
 
- 
setRemoveIconWhencanRemoveRecordsis enabled, default icon to show in the auto-generated field that allows removing records.- Parameters:
- removeIcon- New removeIcon value. Default value is "[SKIN]/actions/remove.png"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getRemoveIconWhencanRemoveRecordsis enabled, default icon to show in the auto-generated field that allows removing records.- Returns:
- Current removeIcon value. Default value is "[SKIN]/actions/remove.png"
- See Also:
 
- 
setRemoveIconSizeDefault width and height ofremove iconsfor this ListGrid.- Parameters:
- removeIconSize- New removeIconSize value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRemoveIconSizepublic int getRemoveIconSize()Default width and height ofremove iconsfor this ListGrid.- Returns:
- Current removeIconSize value. Default value is 16
 
- 
setRemoveIconStyleCustom style to apply to the image in theremoveFielddisplayed in rows whencanRemoveRecordsis true. Affects the icons provided byremoveIconandunremoveIcon.- Parameters:
- removeIconStyle- New removeIconStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRemoveIconStyleCustom style to apply to the image in theremoveFielddisplayed in rows whencanRemoveRecordsis true. Affects the icons provided byremoveIconandunremoveIcon.- Returns:
- Current removeIconStyle value. Default value is null
- See Also:
 
- 
setReselectOnUpdateIf true, when an update operation occurs on a selected record in adataboundlistGrid, ensure the updated record is re-selected when the operation completes. ThereselectOnUpdateNotificationsattributes governs whetherListGrid.selectionUpdated()andListGrid.selectionChanged()will fire when this occurs.Note : This is an advanced setting - Parameters:
- reselectOnUpdate- New reselectOnUpdate value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getReselectOnUpdatepublic boolean getReselectOnUpdate()If true, when an update operation occurs on a selected record in adataboundlistGrid, ensure the updated record is re-selected when the operation completes. ThereselectOnUpdateNotificationsattributes governs whetherListGrid.selectionUpdated()andListGrid.selectionChanged()will fire when this occurs.- Returns:
- Current reselectOnUpdate value. Default value is true
 
- 
setReselectOnUpdateNotificationspublic ListGrid setReselectOnUpdateNotifications(SelectionNotificationType reselectOnUpdateNotifications) ifreselectOnUpdateis true, this property governs what selection changed notifications should be triggered when a selected record is edited then automatically reselected when the edited data is merged into the data set.Note : This is an advanced setting - Parameters:
- reselectOnUpdateNotifications- New reselectOnUpdateNotifications value. Default value is "selectionChanged"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getReselectOnUpdateNotificationsifreselectOnUpdateis true, this property governs what selection changed notifications should be triggered when a selected record is edited then automatically reselected when the edited data is merged into the data set.- Returns:
- Current reselectOnUpdateNotifications value. Default value is "selectionChanged"
 
- 
setResizeFieldsInRealTimeIftrue, the grid contents are redrawn in real time as fields are resized. This can be slow with a large grid and/or on some platforms. By default, this is enabled in modern desktop browsers. This is automatically switched off in mobile browsers.Note : This is an advanced setting - Parameters:
- resizeFieldsInRealTime- New resizeFieldsInRealTime value. Default value is see below
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getResizeFieldsInRealTimepublic boolean getResizeFieldsInRealTime()Iftrue, the grid contents are redrawn in real time as fields are resized. This can be slow with a large grid and/or on some platforms. By default, this is enabled in modern desktop browsers. This is automatically switched off in mobile browsers.- Returns:
- Current resizeFieldsInRealTime value. Default value is see below
 
- 
setReverseRTLAlignIf a page is rendered inRTL mode, should cell alignments specifiedListGridField.cellAlignbe reversed (so analign:"right"field will have content aligned on the left and vice versa)?This is true by default to match user expectation that text flows from start-to end and is aligned with the start of text flow (left in LTR mode, right in RTL mode) by default. May be set to false to have the specified alignments be taken literally in RTL mode. - Parameters:
- reverseRTLAlign- New reverseRTLAlign value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getReverseRTLAlignIf a page is rendered inRTL mode, should cell alignments specifiedListGridField.cellAlignbe reversed (so analign:"right"field will have content aligned on the left and vice versa)?This is true by default to match user expectation that text flows from start-to end and is aligned with the start of text flow (left in LTR mode, right in RTL mode) by default. May be set to false to have the specified alignments be taken literally in RTL mode. - Returns:
- Current reverseRTLAlign value. Default value is true
 
- 
setRotatedHeaderMenuButtonHeightpublic ListGrid setRotatedHeaderMenuButtonHeight(int rotatedHeaderMenuButtonHeight) throws IllegalStateException IfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonover arotatedheader button.Note : This is an advanced setting - Parameters:
- rotatedHeaderMenuButtonHeight- New rotatedHeaderMenuButtonHeight value. Default value is "100%"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getRotatedHeaderMenuButtonHeightpublic int getRotatedHeaderMenuButtonHeight()IfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonover arotatedheader button.- Returns:
- Current rotatedHeaderMenuButtonHeight value. Default value is "100%"
- See Also:
 
- 
setRotatedHeaderMenuButtonHeightpublic ListGrid setRotatedHeaderMenuButtonHeight(String rotatedHeaderMenuButtonHeight) throws IllegalStateException IfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonover arotatedheader button.Note : This is an advanced setting - Parameters:
- rotatedHeaderMenuButtonHeight- New rotatedHeaderMenuButtonHeight value. Default value is "100%"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getRotatedHeaderMenuButtonHeightAsStringIfshowHeaderMenuButtonis true, this property governs the height of the auto-generatedheaderMenuButtonover arotatedheader button.- Returns:
- Current rotatedHeaderMenuButtonHeight value. Default value is "100%"
- See Also:
 
- 
setRotatedHeaderMenuButtonWidthpublic ListGrid setRotatedHeaderMenuButtonWidth(int rotatedHeaderMenuButtonWidth) throws IllegalStateException IfshowHeaderMenuButtonis true, this property governs the width of the auto-generatedheaderMenuButtonover arotatedheader button.Note : This is an advanced setting - Parameters:
- rotatedHeaderMenuButtonWidth- New rotatedHeaderMenuButtonWidth value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getRotatedHeaderMenuButtonWidthpublic int getRotatedHeaderMenuButtonWidth()IfshowHeaderMenuButtonis true, this property governs the width of the auto-generatedheaderMenuButtonover arotatedheader button.- Returns:
- Current rotatedHeaderMenuButtonWidth value. Default value is 16
- See Also:
 
- 
setRotateHeaderTitlesWhether to rotate the field titles so they're rendered vertically from bottom to top. Can be overridden for individual fields by settingListGridField.rotateTitle.Note that you can manually set the header height and field widths as you please when using this feature, but it's not compatible with autoFitHeaderHeightsor autofitting of field widths in anyAutoFitWidthApproachother than "value".You can use headerTitleVAlignorListGridField.valignto control vertical positioning of the titles, andListGridField.alignto control the horizontal. You may also choose betweenclippingorwrapping, and setshowHeaderMenuButtonas you please (which reserves space in each header button for the header menu button).Note that this feature is incompatible with clipping via clipHeaderTitles:false, and may not work with older browsers, particular IE versions before IE10. The "TreeFrog" and "Basic"skinsare not supported for this feature.- Parameters:
- rotateHeaderTitles- New rotateHeaderTitles value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getRotateHeaderTitlesWhether to rotate the field titles so they're rendered vertically from bottom to top. Can be overridden for individual fields by settingListGridField.rotateTitle.Note that you can manually set the header height and field widths as you please when using this feature, but it's not compatible with autoFitHeaderHeightsor autofitting of field widths in anyAutoFitWidthApproachother than "value".You can use headerTitleVAlignorListGridField.valignto control vertical positioning of the titles, andListGridField.alignto control the horizontal. You may also choose betweenclippingorwrapping, and setshowHeaderMenuButtonas you please (which reserves space in each header button for the header menu button).Note that this feature is incompatible with clipping via clipHeaderTitles:false, and may not work with older browsers, particular IE versions before IE10. The "TreeFrog" and "Basic"skinsare not supported for this feature.- Returns:
- Current rotateHeaderTitles value. Default value is null
- See Also:
 
- 
setRowAriaStateReturns a mapping of default WAI ARIA attributes for rows within this listGrid. SeegetRowAriaState()Note : This is an advanced setting - Parameters:
- rowAriaState- New rowAriaState value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRowAriaStateReturns a mapping of default WAI ARIA attributes for rows within this listGrid. SeegetRowAriaState()- Returns:
- Returns a map of WAI ARIA state attribute valuesto be written into rows within this grid.Default implementation returns an object with combined properties from any specified row aria state default object, overlaid with anyrecordRowAriaStatePropertyproperties specified on the record itself, plus the following attributes:- setsize- total row count for the grid if- ariaRoleis set to- "list"
- posinset- index of the row if- ariaRoleis set to- "list"
- rowindex- index of the row if- ariaRoleis set to- "grid"
- selected- true if the record is- selected
- expanded- true for- expanded recordsor- open folders
 
 
- 
setRowCountDisplayPrecisionWhen an exactrow countis not known due to progressive loading, this attribute allows the formatted row count returned bygetFormattedRowCount()and ultimately displayed in therowRangeDisplay labelto be rounded to a multiple of the specified value. If not explicitly set, this value defaults to thepage sizefor the data.For example if the server reports a DSResponse.totalRowsof320while progressive loading is active (meaning this is not an exact row count), androwCountDisplayPrecisionis set to150, the formatted rowCount may display300+The precision will round either up or down depending on the row count status.- rowCountStatus:"exact"- this setting has no effect
- rowCountStatus:"minimum"- the reported row count will be rounded down to the previous multiple of this value.
- rowCountStatus:"maximum"- the reported row count will be rounded up to the next multiple of this value.
- rowCountStatus:"approximate"- the reported row count will be rounded either up or down to the nearest multiple of this value.
- rowCountStatus:"range"- the reported minimum row count will be rounded down to the next multiple of this value, and the reported maximum will be rounded up to the next multiple of this value.
 rowCountDisplayPrecision, the exact reported row count value will be displayed. This could typically only occur ifrowCountDisplayPrecisionis more than thepage sizefor the data.This value may be set to 1to effectively disable the rounding behavior altogether (the row count will not be displayed exactly as reported).Note that this is purely a formatting setting for the formatted row count string. It has no impact on the behavior of the grid in terms of the reported data length,totalRowsor scrollable area.- Parameters:
- rowCountDisplayPrecision- New rowCountDisplayPrecision value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRowCountDisplayPrecisionWhen an exactrow countis not known due to progressive loading, this attribute allows the formatted row count returned bygetFormattedRowCount()and ultimately displayed in therowRangeDisplay labelto be rounded to a multiple of the specified value. If not explicitly set, this value defaults to thepage sizefor the data.For example if the server reports a DSResponse.totalRowsof320while progressive loading is active (meaning this is not an exact row count), androwCountDisplayPrecisionis set to150, the formatted rowCount may display300+The precision will round either up or down depending on the row count status.- rowCountStatus:"exact"- this setting has no effect
- rowCountStatus:"minimum"- the reported row count will be rounded down to the previous multiple of this value.
- rowCountStatus:"maximum"- the reported row count will be rounded up to the next multiple of this value.
- rowCountStatus:"approximate"- the reported row count will be rounded either up or down to the nearest multiple of this value.
- rowCountStatus:"range"- the reported minimum row count will be rounded down to the next multiple of this value, and the reported maximum will be rounded up to the next multiple of this value.
 rowCountDisplayPrecision, the exact reported row count value will be displayed. This could typically only occur ifrowCountDisplayPrecisionis more than thepage sizefor the data.This value may be set to 1to effectively disable the rounding behavior altogether (the row count will not be displayed exactly as reported).Note that this is purely a formatting setting for the formatted row count string. It has no impact on the behavior of the grid in terms of the reported data length,totalRowsor scrollable area.- Returns:
- Current rowCountDisplayPrecision value. Default value is null
- See Also:
 
- 
setRowEndEditActionIf the user is editing a record in this listGrid, and attempts to navigate to a field beyond the end of the row, via tab (or shift-tab off the first editable field), this property determines what action to take:- "next": start editing the next (or previous) record in the list
- "same": put focus back into the first editable field of the same record.
- "done": hide the editor
- "stop": leave focus in the cell being edited
- "none": no action
 - Parameters:
- rowEndEditAction- New rowEndEditAction value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRowEndEditActionIf the user is editing a record in this listGrid, and attempts to navigate to a field beyond the end of the row, via tab (or shift-tab off the first editable field), this property determines what action to take:- "next": start editing the next (or previous) record in the list
- "same": put focus back into the first editable field of the same record.
- "done": hide the editor
- "stop": leave focus in the cell being edited
- "none": no action
 - Returns:
- Current rowEndEditAction value. Default value is null
- See Also:
 
- 
setRowLocatorFieldIflocateRowsByhas been set to "cellValue", this property may be used to specify which field's cell value to use.If set to an array, cell values from each field will be recorded as part of the locator and used to identify the record. - Parameters:
- rowLocatorField- New rowLocatorField value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRowLocatorFieldIflocateRowsByhas been set to "cellValue", this property may be used to specify which field's cell value to use.If set to an array, cell values from each field will be recorded as part of the locator and used to identify the record. - Returns:
- Current rowLocatorField value. Default value is null
- See Also:
 
- 
setRowLocatorFieldIflocateRowsByhas been set to "cellValue", this property may be used to specify which field's cell value to use.If set to an array, cell values from each field will be recorded as part of the locator and used to identify the record. - Parameters:
- rowLocatorField- New rowLocatorField value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRowLocatorFieldAsStringArrayIflocateRowsByhas been set to "cellValue", this property may be used to specify which field's cell value to use.If set to an array, cell values from each field will be recorded as part of the locator and used to identify the record. - Returns:
- Current rowLocatorField value. Default value is null
- See Also:
 
- 
getRowNumberFieldAn automatically generated field that displays the current row number whenshowRowNumbersis true.This component is an AutoChild named "rowNumberField". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current rowNumberField value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setRowNumberStartThe number to start the row-count from - default value is 1.Note : This is an advanced setting - Parameters:
- rowNumberStart- New rowNumberStart value. Default value is 1
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRowNumberStartpublic int getRowNumberStart()The number to start the row-count from - default value is 1.- Returns:
- Current rowNumberStart value. Default value is 1
 
- 
setRowNumberStyleThe CSS Style name for therowNumberField.Note : This is an advanced setting - Parameters:
- rowNumberStyle- New rowNumberStyle value. Default value is "specialCol"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRowNumberStyleThe CSS Style name for therowNumberField.- Returns:
- Current rowNumberStyle value. Default value is "specialCol"
- See Also:
 
- 
getRowRangeDisplayRowRangeDisplayautoChild, which may be retrieved by callinggetRowRangeDisplay().This component is an AutoChild named "rowRangeDisplay". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- This method will create and return a RowRangeDisplayautoChild withRowRangeDisplay.sourceGridset to this listGrid.Note that this method will only create one rowRangeDisplay instance. Calling it repeatedly will return the same canvas. Default value is null 
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
- See Also:
 
- 
setRowRangeDisplayStyleHow should thegetFormattedRowRange()format the row range and row count for display to the user?- Parameters:
- rowRangeDisplayStyle- New rowRangeDisplayStyle value. Default value is "full"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getRowRangeDisplayStyleHow should thegetFormattedRowRange()format the row range and row count for display to the user?- Returns:
- Current rowRangeDisplayStyle value. Default value is "full"
- See Also:
 
- 
setRowRangeFormatDynamic String specifying the format for thevisible row range.The following variables are available for evaluation within this string: - startRow: first visible row in the viewport as a- formatted string
- endRow: last visible row in the viewport as a- formatted string
 - Parameters:
- rowRangeFormat- New rowRangeFormat value. Default value is "${startRow}-${endRow}"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRowRangeFormatDynamic String specifying the format for thevisible row range.The following variables are available for evaluation within this string: - startRow: first visible row in the viewport as a- formatted string
- endRow: last visible row in the viewport as a- formatted string
 - Returns:
- Current rowRangeFormat value. Default value is "${startRow}-${endRow}"
 
- 
setRowRoleReturns the default WAI ARIA role for rows within this listGrid. SeegetRowRole()Note : This is an advanced setting - Parameters:
- rowRole- New rowRole value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRowRoleReturns the default WAI ARIA role for rows within this listGrid. SeegetRowRole()- Returns:
- Returns the WAI ARIA role for rows within this listGrid. If the record has a value for the recordRowRoleProperty, this will be respected.
 Otherwise ifrowRoleis specified, it will be used.If the property is not explicitly set, default implementation will return "separator"for separator rows,"listitem"for data rows if this listGrid hasrole:"list", or"row"for data rows if this listGrid hasariaRole:"grid". Default value is null
 
- 
setRowSpanEditModeIfallowRowSpanningis enabled, this property may be used to specify editing behavior for cells that span multiple rows.Note : This is an advanced setting - Parameters:
- rowSpanEditMode- New rowSpanEditMode value. Default value is "first"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getRowSpanEditModeIfallowRowSpanningis enabled, this property may be used to specify editing behavior for cells that span multiple rows.- Returns:
- Current rowSpanEditMode value. Default value is "first"
 
- 
setRowSpanSelectionModepublic ListGrid setRowSpanSelectionMode(RowSpanSelectionMode rowSpanSelectionMode) throws IllegalStateException Chooses the selection mode whenuseRowSpanStylingis enabled. SeeRowSpanSelectionMode.- Parameters:
- rowSpanSelectionMode- New rowSpanSelectionMode value. Default value is "forward"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getRowSpanSelectionModeChooses the selection mode whenuseRowSpanStylingis enabled. SeeRowSpanSelectionMode.- Returns:
- Current rowSpanSelectionMode value. Default value is "forward"
 
- 
setSaveByCellWhether edits should be saved whenever the user moves between cells in the current edit row.If unset, defaults to this.editByCell.To avoid automatic saving entirely, set autoSaveEdits:false.- Parameters:
- saveByCell- New saveByCell value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSaveByCellWhether edits should be saved whenever the user moves between cells in the current edit row.If unset, defaults to this.editByCell.To avoid automatic saving entirely, set autoSaveEdits:false.- Returns:
- Current saveByCell value. Default value is null
- See Also:
 
- 
setSaveCriteriaInViewStateShould the currentfilter-criteriabe included along with other details when saving this grid'sview-state?If true, the current criteria will be saved when calling getViewState()and will be applied to the grid via a filter when callingsetViewState().Notes - If this grid has never actually fetched data, criteria will not be included
- If this flag is set to false,setViewState()will not modify the grid's filter even if criteria were included when viewState was stored.
 - Parameters:
- saveCriteriaInViewState- New saveCriteriaInViewState value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSaveCriteriaInViewStateShould the currentfilter-criteriabe included along with other details when saving this grid'sview-state?If true, the current criteria will be saved when calling getViewState()and will be applied to the grid via a filter when callingsetViewState().Notes - If this grid has never actually fetched data, criteria will not be included
- If this flag is set to false,setViewState()will not modify the grid's filter even if criteria were included when viewState was stored.
 - Returns:
- Current saveCriteriaInViewState value. Default value is true
- See Also:
 
- 
setSaveDefaultSearchSaves the name of the default search to localStorage, under the key "sc_defaultSearch:" + minimal locator.See SavedSearches"Default Searches" for why this is stored separately from the search itself if there is no saved default search, but there is aSavedSearches.defaultField, the first user-specfic search marked default will be used, otherwise the first admn search marked defaultIf autoFetchDatais enabled, the autoFetch will be postponed as needed until a default search can be looked up and applied. If anything fails in the default search lookup, an autoFetch will still be performed (without any saved search information)- Parameters:
- saveDefaultSearch- New saveDefaultSearch value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getSaveDefaultSearchpublic boolean getSaveDefaultSearch()Saves the name of the default search to localStorage, under the key "sc_defaultSearch:" + minimal locator.See SavedSearches"Default Searches" for why this is stored separately from the search itself if there is no saved default search, but there is aSavedSearches.defaultField, the first user-specfic search marked default will be used, otherwise the first admn search marked defaultIf autoFetchDatais enabled, the autoFetch will be postponed as needed until a default search can be looked up and applied. If anything fails in the default search lookup, an autoFetch will still be performed (without any saved search information)- Returns:
- Current saveDefaultSearch value. Default value is true
 
- 
setSavedSearchAdminRoleOverride ofSavedSearches.adminRolefor this component.- Parameters:
- savedSearchAdminRole- New savedSearchAdminRole value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getSavedSearchAdminRoleOverride ofSavedSearches.adminRolefor this component.- Returns:
- Current savedSearchAdminRole value. Default value is null
 
- 
getSavedSearchAdminSeparatorProperties for the separator record between locally saved and admin searches.This component is an AutoChild named "savedSearchAdminSeparator". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current savedSearchAdminSeparator value. Default value is {isSeparator:true}
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setSavedSearchDSOverride ofSavedSearches.defaultDataSourcefor this component.- Parameters:
- savedSearchDS- New savedSearchDS value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getSavedSearchDSOverride ofSavedSearches.defaultDataSourcefor this component.- Returns:
- Current savedSearchDS value. Default value is null
 
- 
setSavedSearchStoredStatepublic ListGrid setSavedSearchStoredState(SavedSearchStoredState savedSearchStoredState) throws IllegalStateException Set to "criteria" if you want only criteria to be stored for ListGrids and TreeGrids instead of the full viewState of the component.- Parameters:
- savedSearchStoredState- New savedSearchStoredState value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getSavedSearchStoredStateSet to "criteria" if you want only criteria to be stored for ListGrids and TreeGrids instead of the full viewState of the component.- Returns:
- Current savedSearchStoredState value. Default value is null
- See Also:
 
- 
setSavedSearchTextText to show for the saved searches submenu.- Parameters:
- savedSearchText- New savedSearchText value. Default value is "Saved views"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getSavedSearchTextText to show for the saved searches submenu.- Returns:
- Current savedSearchText value. Default value is "Saved views"
- See Also:
 
- 
setSaveLocallyFor grids with a specifieddataSource, this property can be set totrueto cause the grid directly update its local data set instead of performing an operation against it's configured DataSource.When using this mode, data must be provided to the grid via setData(), and must be provided as a RecordList. SettingsaveLocallyis invalid if eitherfetchData()is called or if aResultSetis provided as the data model.saveLocallymode includes changes made viainline editing, record removal viacanRemoveRecords, as well as programmatic calls toupdateData(),addData()andremoveData(). This also causes saves to be performed synchronously (unlike normal DataSource operations).Note that using this mode also disables the automatic cache synchronization provided by the DataSource system - changes made to this grid are saved only to this grid's data set. See also filterLocalDatato allow filtering, such as filtering performed by thefilterEditor, to also work only with the local data set.If saveLocally is unset, and filterLocalDatais true, the saveLocally behavior is enabled by defaultNote : This is an advanced setting - Parameters:
- saveLocally- New saveLocally value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getSaveLocallyFor grids with a specifieddataSource, this property can be set totrueto cause the grid directly update its local data set instead of performing an operation against it's configured DataSource.When using this mode, data must be provided to the grid via setData(), and must be provided as a RecordList. SettingsaveLocallyis invalid if eitherfetchData()is called or if aResultSetis provided as the data model.saveLocallymode includes changes made viainline editing, record removal viacanRemoveRecords, as well as programmatic calls toupdateData(),addData()andremoveData(). This also causes saves to be performed synchronously (unlike normal DataSource operations).Note that using this mode also disables the automatic cache synchronization provided by the DataSource system - changes made to this grid are saved only to this grid's data set. See also filterLocalDatato allow filtering, such as filtering performed by thefilterEditor, to also work only with the local data set.If saveLocally is unset, and filterLocalDatais true, the saveLocally behavior is enabled by default- Returns:
- Current saveLocally value. Default value is null
- See Also:
 
- 
setSaveRequestPropertiesFor editable grids with a specifieddataSource, wheresaveLocallyis false, this attribute may be used to specify standard DSRequest properties to apply to all save operations performed by this grid (whether triggered by user interaction, or explicit saveEdits or saveAllEdits call).An example usage would be to customize the prompt displayed while saving is in progress if waitForSaveis true.Note that for more advanced customization of save operations, DataBoundComponent.addOperationandDataBoundComponent.updateOperationare available to developers, allowing specification of an explicitOperationBindingfor the add / update operation performed on save.Note : This is an advanced setting - Parameters:
- saveRequestProperties- New saveRequestProperties value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSaveRequestPropertiesFor editable grids with a specifieddataSource, wheresaveLocallyis false, this attribute may be used to specify standard DSRequest properties to apply to all save operations performed by this grid (whether triggered by user interaction, or explicit saveEdits or saveAllEdits call).An example usage would be to customize the prompt displayed while saving is in progress if waitForSaveis true.Note that for more advanced customization of save operations, DataBoundComponent.addOperationandDataBoundComponent.updateOperationare available to developers, allowing specification of an explicitOperationBindingfor the add / update operation performed on save.- Returns:
- Current saveRequestProperties value. Default value is null
- See Also:
 
- 
setScreenReaderCellSeparatorpublic ListGrid setScreenReaderCellSeparator(String screenReaderCellSeparator) throws IllegalStateException Special cell-separator that may be inserted between cell values when screen-readers are reading the content of a row. Only applies when screen-reader mode is enabled, and for ListGrids withariaRole:"list".When screen reader modeis enabled, for ListGrids withariaRoleset to"list", each row in the grid will be rendered as HTML with role"listItem".
 In this mode, thescreenReaderCellSeparatorproperty, (along withscreenReaderIncludeFieldTitlesandscreenReaderRowSeparator), gives developers a way to customize how screen readers read the row's text value in a way that may be helpful for grids with multiple columns.
 Instead of just picking up the value of each cell in the row strung together, readers will instead pick up the field title, the cell value and then the cellSeparator for each cell, and then the rowSeparator to mark the end of the row. Most screenreaders will also read the row index and total row count - something like "3 of 20".Note that screen readers vary widely on which punctuation symbols are read aloud, and sometimes it depends on the context of the punctuation. However, the widely-used JAWS, NVDA, and VoiceOver screen readers all read the forward slash '/' as "slash". See Why Don?t Screen Readers Always Read What?s on the Screen? Part 1: Punctuation and Typographic Symbols for a table of findings on which punctuation symbols are read aloud by JAWS, NVDA, and VoiceOver. Implementation notes: the generated row HTML makes use of the aria-labelledby property to achieve this - pointing the screenReader to the title button for the column, the cell content, and a special hidden element containing the cellSeparator. 
 Note that this aria-labelledby setting is applied in addition to other aria state specified bygetRowAriaState().To entirely disable this feature, developers may set screenReaderWriteRowLabelledBytofalse. In this case other row aria attributes will still be picked up fromgetRowAriaState(), including thesetsizeandposinsetattributes that tell the screen reader where they currently are in the list.See ariaRolefor more information on the ARIA attributes generated by ListGrids.Note : This is an advanced setting - Parameters:
- screenReaderCellSeparator- New screenReaderCellSeparator value. Default value is "/"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getScreenReaderCellSeparatorSpecial cell-separator that may be inserted between cell values when screen-readers are reading the content of a row. Only applies when screen-reader mode is enabled, and for ListGrids withariaRole:"list".When screen reader modeis enabled, for ListGrids withariaRoleset to"list", each row in the grid will be rendered as HTML with role"listItem".
 In this mode, thescreenReaderCellSeparatorproperty, (along withscreenReaderIncludeFieldTitlesandscreenReaderRowSeparator), gives developers a way to customize how screen readers read the row's text value in a way that may be helpful for grids with multiple columns.
 Instead of just picking up the value of each cell in the row strung together, readers will instead pick up the field title, the cell value and then the cellSeparator for each cell, and then the rowSeparator to mark the end of the row. Most screenreaders will also read the row index and total row count - something like "3 of 20".Note that screen readers vary widely on which punctuation symbols are read aloud, and sometimes it depends on the context of the punctuation. However, the widely-used JAWS, NVDA, and VoiceOver screen readers all read the forward slash '/' as "slash". See Why Don?t Screen Readers Always Read What?s on the Screen? Part 1: Punctuation and Typographic Symbols for a table of findings on which punctuation symbols are read aloud by JAWS, NVDA, and VoiceOver. Implementation notes: the generated row HTML makes use of the aria-labelledby property to achieve this - pointing the screenReader to the title button for the column, the cell content, and a special hidden element containing the cellSeparator. 
 Note that this aria-labelledby setting is applied in addition to other aria state specified bygetRowAriaState().To entirely disable this feature, developers may set screenReaderWriteRowLabelledBytofalse. In this case other row aria attributes will still be picked up fromgetRowAriaState(), including thesetsizeandposinsetattributes that tell the screen reader where they currently are in the list.See ariaRolefor more information on the ARIA attributes generated by ListGrids.- Returns:
- Current screenReaderCellSeparator value. Default value is "/"
- See Also:
 
- 
setScreenReaderIncludeFieldTitlespublic ListGrid setScreenReaderIncludeFieldTitles(Boolean screenReaderIncludeFieldTitles) throws IllegalStateException Should column titles be read along with cell values when screen-readers are reading the content of a row? Only applies when screen-reader mode is enabled, and for ListGrids withariaRole:"list".Has no effect if showHeaderis false.See the documentation for screenReaderCellSeparatorfor implementation details on how the header values, cell separators and row separators are picked up by screenreaders in this mode.For more information on the ARIA attributes generated by ListGrids, see ariaRole.Note : This is an advanced setting - Parameters:
- screenReaderIncludeFieldTitles- New screenReaderIncludeFieldTitles value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getScreenReaderIncludeFieldTitlesShould column titles be read along with cell values when screen-readers are reading the content of a row? Only applies when screen-reader mode is enabled, and for ListGrids withariaRole:"list".Has no effect if showHeaderis false.See the documentation for screenReaderCellSeparatorfor implementation details on how the header values, cell separators and row separators are picked up by screenreaders in this mode.For more information on the ARIA attributes generated by ListGrids, see ariaRole.- Returns:
- Current screenReaderIncludeFieldTitles value. Default value is true
- See Also:
 
- 
setScreenReaderRowSeparatorpublic ListGrid setScreenReaderRowSeparator(String screenReaderRowSeparator) throws IllegalStateException Special row-separator that may be inserted at the end of the row value when screen-readers are reading the content of a row. Only applies when screen-reader mode is enabled, and for ListGrids withariaRole:"list".See the documentation for screenReaderCellSeparatorfor details on how the header values, cell separators and row separators are picked up by screenreaders in this mode.For more information on the ARIA attributes generated by ListGrids, see ariaRole.Note : This is an advanced setting - Parameters:
- screenReaderRowSeparator- New screenReaderRowSeparator value. Default value is ","
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getScreenReaderRowSeparatorSpecial row-separator that may be inserted at the end of the row value when screen-readers are reading the content of a row. Only applies when screen-reader mode is enabled, and for ListGrids withariaRole:"list".See the documentation for screenReaderCellSeparatorfor details on how the header values, cell separators and row separators are picked up by screenreaders in this mode.For more information on the ARIA attributes generated by ListGrids, see ariaRole.- Returns:
- Current screenReaderRowSeparator value. Default value is ","
- See Also:
 
- 
setScreenReaderWriteRowLabelledBypublic ListGrid setScreenReaderWriteRowLabelledBy(Boolean screenReaderWriteRowLabelledBy) throws IllegalStateException Whenscreen reader modeis enabled, for grids withariaRoleset to"list", should a custom aria-labelledby attribute be written out in addition to any otherrow aria propertiesto ensure thecolumn titles,screenReaderCellSeparatorandscreenReaderRowSeparatorare read out along with cell content when reading rows?Setting this property to false will disable the writing out of this labelled-byattribute. See the documentation forscreenReaderCellSeparatorfor more on how the header values, cell separators and row separators are picked up by screenreaders in this mode.For more information on the ARIA attributes generated by ListGrids, see ariaRole.Note : This is an advanced setting - Parameters:
- screenReaderWriteRowLabelledBy- New screenReaderWriteRowLabelledBy value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getScreenReaderWriteRowLabelledByWhenscreen reader modeis enabled, for grids withariaRoleset to"list", should a custom aria-labelledby attribute be written out in addition to any otherrow aria propertiesto ensure thecolumn titles,screenReaderCellSeparatorandscreenReaderRowSeparatorare read out along with cell content when reading rows?Setting this property to false will disable the writing out of this labelled-byattribute. See the documentation forscreenReaderCellSeparatorfor more on how the header values, cell separators and row separators are picked up by screenreaders in this mode.For more information on the ARIA attributes generated by ListGrids, see ariaRole.- Returns:
- Current screenReaderWriteRowLabelledBy value. Default value is true
- See Also:
 
- 
setScrollRedrawDelayWhile drag scrolling in an incrementally rendered grid, time in milliseconds to wait before redrawing, after the last mouse movement by the user. This delay may be separately customized for mouse-wheel scrolling viascrollWheelRedrawDelay.See also GridRenderer.instantScrollTrackRedrawfor cases where this delay is skipped.NOTE: In touch browsers,touchScrollRedrawDelayis used instead.- Parameters:
- scrollRedrawDelay- New scrollRedrawDelay value. Default value is 0
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getScrollRedrawDelaypublic int getScrollRedrawDelay()While drag scrolling in an incrementally rendered grid, time in milliseconds to wait before redrawing, after the last mouse movement by the user. This delay may be separately customized for mouse-wheel scrolling viascrollWheelRedrawDelay.See also GridRenderer.instantScrollTrackRedrawfor cases where this delay is skipped.NOTE: In touch browsers,touchScrollRedrawDelayis used instead.- Returns:
- Current scrollRedrawDelay value. Default value is 0
 
- 
setScrollToCellXPositionWhen scrollToCell is called, this is used as defaults if xPosition weren't explicitly passed into the method.- Parameters:
- scrollToCellXPosition- New scrollToCellXPosition value. Default value is "center"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getScrollToCellXPositionWhen scrollToCell is called, this is used as defaults if xPosition weren't explicitly passed into the method.- Returns:
- Current scrollToCellXPosition value. Default value is "center"
 
- 
setScrollToCellYPositionWhen scrollToCell is called, this is used as defaults if yPosition weren't explicitly passed into the method.- Parameters:
- scrollToCellYPosition- New scrollToCellYPosition value. Default value is "center"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getScrollToCellYPositionWhen scrollToCell is called, this is used as defaults if yPosition weren't explicitly passed into the method.- Returns:
- Current scrollToCellYPosition value. Default value is "center"
 
- 
setScrollWheelRedrawDelayWhile scrolling an incrementally rendered grid, using the mouseWheel, time in milliseconds to wait before redrawing, after the last mouseWheel movement by the user. If not specifiedscrollRedrawDelaywill be used as a default for both drag scrolling and mouseWheel scrolling.Note that if specified, this value will typically be larger than scrollRedrawDelay. From experimentation, the default setting of250is typically enough time for a user to rapidly scroll through a grid (rotating the scroll wheel with repeated flicks), without redrawing between rotations, but this will differ depending on how long the redraw takes. A larger delay may be warranted for grids with large numbers of columns, heavy custom formatting, etc.See also GridRenderer.instantScrollTrackRedrawfor cases where this delay is skipped.- Parameters:
- scrollWheelRedrawDelay- New scrollWheelRedrawDelay value. Default value is 0
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getScrollWheelRedrawDelayWhile scrolling an incrementally rendered grid, using the mouseWheel, time in milliseconds to wait before redrawing, after the last mouseWheel movement by the user. If not specifiedscrollRedrawDelaywill be used as a default for both drag scrolling and mouseWheel scrolling.Note that if specified, this value will typically be larger than scrollRedrawDelay. From experimentation, the default setting of250is typically enough time for a user to rapidly scroll through a grid (rotating the scroll wheel with repeated flicks), without redrawing between rotations, but this will differ depending on how long the redraw takes. A larger delay may be warranted for grids with large numbers of columns, heavy custom formatting, etc.See also GridRenderer.instantScrollTrackRedrawfor cases where this delay is skipped.- Returns:
- Current scrollWheelRedrawDelay value. Default value is 0
 
- 
setSearchFormWhen declared, the specified form is automatically used as a search form for this grid, that is,form.getValuesAsCriteria()is called and the criteria returned are additive with any criteria present in theFilterEditororFilter Window.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.This is similar to the effect of adding a ListGrid.filterEditorSubmit()override that pulls in criteria from the external form, and having the external form callfilterByEditor()instead offetchData(), as shown in the +exampleLink{additiveFilter} example.In particular, the grid will automatically filter when the search()orsubmit()events fire on the form (happens if aSubmitItemis present and is pressed), and will automatically trigger filtering if Enter is pressed in the form, as thoughsearchOnEnterorsaveOnEnterhad been set.If the FilterEditor is enabled and listGrid.filterOnKeypress is set, the grid will automatically watch for SearchForm.criteriaChanged(), and filter whenever that method fires. For the purposes of this behavior, the FilterEditor is considered to be enabled even if it is not currently visible butcanShowFilterEditoris true (as otherwise filtering behavior in the form would change when the FilterEditor appears).The criteria from the specified searchFormwill only be shown and edited in the external form; they will neither be shown nor editable in the FilterEditor, even if the FilterEditor also allows criteria on the same fields. That is, they are treated much likeimplicitCriteria.Note: when using listGrid.searchFormdon't add your own logic to call fetchData() or the criteria you specify will appear in the FilterEditor and be editable there, potentially creating user confusion, especially if some of the criteria in your form cannot be displayed and edited in the FilterEditor.- Parameters:
- searchForm- New searchForm value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSearchFormWhen declared, the specified form is automatically used as a search form for this grid, that is,form.getValuesAsCriteria()is called and the criteria returned are additive with any criteria present in theFilterEditororFilter Window.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.This is similar to the effect of adding a ListGrid.filterEditorSubmit()override that pulls in criteria from the external form, and having the external form callfilterByEditor()instead offetchData(), as shown in the +exampleLink{additiveFilter} example.In particular, the grid will automatically filter when the search()orsubmit()events fire on the form (happens if aSubmitItemis present and is pressed), and will automatically trigger filtering if Enter is pressed in the form, as thoughsearchOnEnterorsaveOnEnterhad been set.If the FilterEditor is enabled and listGrid.filterOnKeypress is set, the grid will automatically watch for SearchForm.criteriaChanged(), and filter whenever that method fires. For the purposes of this behavior, the FilterEditor is considered to be enabled even if it is not currently visible butcanShowFilterEditoris true (as otherwise filtering behavior in the form would change when the FilterEditor appears).The criteria from the specified searchFormwill only be shown and edited in the external form; they will neither be shown nor editable in the FilterEditor, even if the FilterEditor also allows criteria on the same fields. That is, they are treated much likeimplicitCriteria.Note: when using listGrid.searchFormdon't add your own logic to call fetchData() or the criteria you specify will appear in the FilterEditor and be editable there, potentially creating user confusion, especially if some of the criteria in your form cannot be displayed and edited in the FilterEditor.- Returns:
- Current searchForm value. Default value is null
 
- 
setSearchFormWhen declared, the specified form is automatically used as a search form for this grid, that is,form.getValuesAsCriteria()is called and the criteria returned are additive with any criteria present in theFilterEditororFilter Window.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.This is similar to the effect of adding a ListGrid.filterEditorSubmit()override that pulls in criteria from the external form, and having the external form callfilterByEditor()instead offetchData(), as shown in the +exampleLink{additiveFilter} example.In particular, the grid will automatically filter when the search()orsubmit()events fire on the form (happens if aSubmitItemis present and is pressed), and will automatically trigger filtering if Enter is pressed in the form, as thoughsearchOnEnterorsaveOnEnterhad been set.If the FilterEditor is enabled and listGrid.filterOnKeypress is set, the grid will automatically watch for SearchForm.criteriaChanged(), and filter whenever that method fires. For the purposes of this behavior, the FilterEditor is considered to be enabled even if it is not currently visible butcanShowFilterEditoris true (as otherwise filtering behavior in the form would change when the FilterEditor appears).The criteria from the specified searchFormwill only be shown and edited in the external form; they will neither be shown nor editable in the FilterEditor, even if the FilterEditor also allows criteria on the same fields. That is, they are treated much likeimplicitCriteria.Note: when using listGrid.searchFormdon't add your own logic to call fetchData() or the criteria you specify will appear in the FilterEditor and be editable there, potentially creating user confusion, especially if some of the criteria in your form cannot be displayed and edited in the FilterEditor.- Parameters:
- searchForm- New searchForm value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSearchFormAsValuesManagerWhen declared, the specified form is automatically used as a search form for this grid, that is,form.getValuesAsCriteria()is called and the criteria returned are additive with any criteria present in theFilterEditororFilter Window.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.This is similar to the effect of adding a ListGrid.filterEditorSubmit()override that pulls in criteria from the external form, and having the external form callfilterByEditor()instead offetchData(), as shown in the +exampleLink{additiveFilter} example.In particular, the grid will automatically filter when the search()orsubmit()events fire on the form (happens if aSubmitItemis present and is pressed), and will automatically trigger filtering if Enter is pressed in the form, as thoughsearchOnEnterorsaveOnEnterhad been set.If the FilterEditor is enabled and listGrid.filterOnKeypress is set, the grid will automatically watch for SearchForm.criteriaChanged(), and filter whenever that method fires. For the purposes of this behavior, the FilterEditor is considered to be enabled even if it is not currently visible butcanShowFilterEditoris true (as otherwise filtering behavior in the form would change when the FilterEditor appears).The criteria from the specified searchFormwill only be shown and edited in the external form; they will neither be shown nor editable in the FilterEditor, even if the FilterEditor also allows criteria on the same fields. That is, they are treated much likeimplicitCriteria.Note: when using listGrid.searchFormdon't add your own logic to call fetchData() or the criteria you specify will appear in the FilterEditor and be editable there, potentially creating user confusion, especially if some of the criteria in your form cannot be displayed and edited in the FilterEditor.- Returns:
- Current searchForm value. Default value is null
 
- 
setSelectCellTextOnClickIf this property is set to true, clicking on a cell will natively select the cell's content, ready to be copied to the browser clipboard.For control of this behavior at the field level, ListGridField.selectCellTextOnClickmay be used. These properties interact as follows:listGrid.selectCellTextOnClick value listGridField.selectCellTextOnClick value Behavior trueunset or trueCell contents will be natively selected on click. falseCell contents will not be natively selected on click. unset trueCell contents will be natively selected on click. unset or falseCell contents will not be natively selected on click. falsetrue,falseor unsetCell contents will not be natively selected on click. This is related to the canDragSelectTextattribute which enables native text selection of grid content by standard browser interactions (drag selecting or double-click selecting).Note that developers may also be interested in the related formItem properties FormItem.selectOnClickandFormItem.selectOnFocus.- Parameters:
- selectCellTextOnClick- New selectCellTextOnClick value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSelectCellTextOnClickIf this property is set to true, clicking on a cell will natively select the cell's content, ready to be copied to the browser clipboard.For control of this behavior at the field level, ListGridField.selectCellTextOnClickmay be used. These properties interact as follows:listGrid.selectCellTextOnClick value listGridField.selectCellTextOnClick value Behavior trueunset or trueCell contents will be natively selected on click. falseCell contents will not be natively selected on click. unset trueCell contents will be natively selected on click. unset or falseCell contents will not be natively selected on click. falsetrue,falseor unsetCell contents will not be natively selected on click. This is related to the canDragSelectTextattribute which enables native text selection of grid content by standard browser interactions (drag selecting or double-click selecting).Note that developers may also be interested in the related formItem properties FormItem.selectOnClickandFormItem.selectOnFocus.- Returns:
- Current selectCellTextOnClick value. Default value is null
 
- 
setSelectedStateReturns a snapshot of the current selection within this listGrid as aListGridSelectedStateobject.
 This object can be passed tosetSelectedState()to reset this grid's selection the current state (assuming the same data is present in the grid).
 
 If this method is called after the component has been drawn/initialized: Reset this grid's selection to match theListGridSelectedStateobject passed in.
 Used to restore previous state retrieved from the grid by a call togetSelectedState().- Parameters:
- selectedState- Object describing the desired selection state of the grid. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSelectedStateReturns a snapshot of the current selection within this listGrid as aListGridSelectedStateobject.
 This object can be passed tosetSelectedState()to reset this grid's selection the current state (assuming the same data is present in the grid).- Returns:
- For components bound to a dataSourcewith records identified by uniqueprimaryKeys, this method returns a snapshot of the component's current selection, as aListGridSelectedStateobject.
 This object can be passed tosetSelectedState()to reset this grid's current selection state (assuming the same data is present in the grid).
 Selected state is not supported if the component has no dataSource, or the dataSource has no primaryKey fields. Default value is null
- See Also:
 
- 
setSelectHeaderOnSortIf true, show the field-header for the sorted field (or the first field in amulti-sortgrid) in the selected state.- Parameters:
- selectHeaderOnSort- New selectHeaderOnSort value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSelectHeaderOnSortIf true, show the field-header for the sorted field (or the first field in amulti-sortgrid) in the selected state.- Returns:
- Current selectHeaderOnSort value. Default value is true
 
- 
setSelectionAppearanceHow selection of rows should be presented to the user.For selectionAppearance:"checkbox"with multiple selection allowed, you would typically useselectionType:"simple" (the default). BecauseselectionTypeandselectionAppearanceare unrelated, the combination ofselectionAppearance:"checkbox"andselectionType:"multiple"results in a grid where multiple selection can only be achieved via shift-click or ctrl-click.If using "checkbox"for aListGrid, see alsocheckboxFieldfor customization APIs.If using "checkbox"for aTreeGrid, an extra icon,TreeGrid.getExtraIcon()is not supported. Additionally onlyselectionType:"simple" and "single" are supported. You can also toggle the display of a disabled checkbox on a treeGrid, displayed when the node can't be selected, viaTreeGrid.showDisabledSelectionCheckbox.Note that the default behavior when you enable checkbox selection is to continue to show the selected style. This can be changed by setting showSelectedStyleto false.
 If this method is called after the component has been drawn/initialized: Changes selectionAppearance on the fly.
- 
getSelectionAppearanceHow selection of rows should be presented to the user.For selectionAppearance:"checkbox"with multiple selection allowed, you would typically useselectionType:"simple" (the default). BecauseselectionTypeandselectionAppearanceare unrelated, the combination ofselectionAppearance:"checkbox"andselectionType:"multiple"results in a grid where multiple selection can only be achieved via shift-click or ctrl-click.If using "checkbox"for aListGrid, see alsocheckboxFieldfor customization APIs.If using "checkbox"for aTreeGrid, an extra icon,TreeGrid.getExtraIcon()is not supported. Additionally onlyselectionType:"simple" and "single" are supported. You can also toggle the display of a disabled checkbox on a treeGrid, displayed when the node can't be selected, viaTreeGrid.showDisabledSelectionCheckbox.Note that the default behavior when you enable checkbox selection is to continue to show the selected style. This can be changed by setting showSelectedStyleto false.- Returns:
- Current selectionAppearance value. Default value is "rowStyle"
- See Also:
 
- 
setSelectionPropertyIf specified, the selection object for this list will use this property to mark records as selected. In other words, if this attribute were set to"isSelected"any records in the listGrid data where"isSelected"istruewill show up as selected in the grid. Similarly if records are selected within the grid after the grid has been created, this property will be set to true on the selected records.Note : This is an advanced setting - Parameters:
- selectionProperty- New selectionProperty value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getSelectionPropertyIf specified, the selection object for this list will use this property to mark records as selected. In other words, if this attribute were set to"isSelected"any records in the listGrid data where"isSelected"istruewill show up as selected in the grid. Similarly if records are selected within the grid after the grid has been created, this property will be set to true on the selected records.- Returns:
- Current selectionProperty value. Default value is null
- See Also:
 
- 
setSelectionTypeDefines a listGrid's clickable-selection behavior.The default selection appearance is governed by selectionAppearance: if selectionAppearance is "checkbox", this will be "simple", otherwise, this will be "multiple".
 If this method is called after the component has been drawn/initialized: Changes selectionType on the fly.- Parameters:
- selectionType- New selection style. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSelectionTypeDefines a listGrid's clickable-selection behavior.The default selection appearance is governed by selectionAppearance: if selectionAppearance is "checkbox", this will be "simple", otherwise, this will be "multiple".- Returns:
- Current selectionType value. Default value is null
- See Also:
 
- 
setSelectOnEditWhen the user starts editing a row, should the row also be selected?See editSelectionTypefor how edit-selection behaves.Note : This is an advanced setting - Parameters:
- selectOnEdit- New selectOnEdit value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSelectOnEditWhen the user starts editing a row, should the row also be selected?See editSelectionTypefor how edit-selection behaves.- Returns:
- Current selectOnEdit value. Default value is true
- See Also:
 
- 
setSelectOnExpandRecordWhen set to false, clicking a record'sexpansion fieldwill not add the record to the current selection.- Parameters:
- selectOnExpandRecord- New selectOnExpandRecord value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSelectOnExpandRecordpublic boolean getSelectOnExpandRecord()When set to false, clicking a record'sexpansion fieldwill not add the record to the current selection.- Returns:
- Current selectOnExpandRecord value. Default value is true
 
- 
setSeparatorRowStyleCSS class to apply to rows marked asseparatorsin this grid. The default behavior is to draw a line by rendering an <HR> tag, and the class applied to this attribute may be used to style that tag, for example by applying a border-top setting.- Parameters:
- separatorRowStyle- New separatorRowStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSeparatorRowStyleCSS class to apply to rows marked asseparatorsin this grid. The default behavior is to draw a line by rendering an <HR> tag, and the class applied to this attribute may be used to style that tag, for example by applying a border-top setting.- Returns:
- Current separatorRowStyle value. Default value is null
- See Also:
 
- 
setShowAllColumnsWhether all columns should be drawn all at once, or only columns visible in the viewport.Drawing all columns causes longer initial rendering time, but allows smoother horizontal scrolling. With a very large number of columns, showAllColumns will become too slow. - Parameters:
- showAllColumns- New showAllColumns value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getShowAllColumnsWhether all columns should be drawn all at once, or only columns visible in the viewport.Drawing all columns causes longer initial rendering time, but allows smoother horizontal scrolling. With a very large number of columns, showAllColumns will become too slow. - Returns:
- Current showAllColumns value. Default value is false
 
- 
setShowAllRecordsWhether all records should be drawn all at once, or only records visible in the viewport.Drawing all records causes longer initial rendering time, but allows smoother vertical scrolling. With a very large number of records, showAllRecords will become too slow. This setting is incompatible with dataFetchMode: "paged" as it requires all records matching the criteria to be fetched from the server at once.- Parameters:
- showAllRecords- New showAllRecords value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowAllRecordsWhether all records should be drawn all at once, or only records visible in the viewport.Drawing all records causes longer initial rendering time, but allows smoother vertical scrolling. With a very large number of records, showAllRecords will become too slow. This setting is incompatible with dataFetchMode: "paged" as it requires all records matching the criteria to be fetched from the server at once.- Returns:
- Current showAllRecords value. Default value is false
- See Also:
 
- 
setShowAsynchGroupingPromptpublic ListGrid setShowAsynchGroupingPrompt(Boolean showAsynchGroupingPrompt) throws IllegalStateException If set to false, do not show theasynchGroupingPromptdialog duringasynchronous grouping.- Parameters:
- showAsynchGroupingPrompt- New showAsynchGroupingPrompt value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getShowAsynchGroupingPromptIf set to false, do not show theasynchGroupingPromptdialog duringasynchronous grouping.- Returns:
- Current showAsynchGroupingPrompt value. Default value is null
 
- 
setShowBackgroundComponentsIftruethis grid will create and show per-row backgroundComponents as detailedhere.- Parameters:
- showBackgroundComponents- New showBackgroundComponents value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowBackgroundComponentsIftruethis grid will create and show per-row backgroundComponents as detailedhere.- Returns:
- Current showBackgroundComponents value. Default value is false
 
- 
setShowCellContextMenusWhether to show a context menu with standard items for all context clicks on rows in the body.- Parameters:
- showCellContextMenus- New showCellContextMenus value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowCellContextMenusWhether to show a context menu with standard items for all context clicks on rows in the body.- Returns:
- Current showCellContextMenus value. Default value is false
 
- 
setShowClippedHeaderTitlesOnHoverpublic ListGrid setShowClippedHeaderTitlesOnHover(boolean showClippedHeaderTitlesOnHover) throws IllegalStateException If true and a header button's title is clipped, then a hover containing the full field title is enabled.Note : This is an advanced setting - Parameters:
- showClippedHeaderTitlesOnHover- New showClippedHeaderTitlesOnHover value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getShowClippedHeaderTitlesOnHoverpublic boolean getShowClippedHeaderTitlesOnHover()If true and a header button's title is clipped, then a hover containing the full field title is enabled.- Returns:
- Current showClippedHeaderTitlesOnHover value. Default value is true
- See Also:
 
- 
setShowClippedValuesOnHoverpublic ListGrid setShowClippedValuesOnHover(Boolean showClippedValuesOnHover) throws IllegalStateException If true and a cell's value is clipped, then a hover containing the full cell value is enabled.Note that standard cell hovers override clipped value hovers. Thus, to enable clipped value hovers, canHovermust be unset or null and the corresponding field must haveshowHoverunset or null as well.Note : This is an advanced setting - Parameters:
- showClippedValuesOnHover- New showClippedValuesOnHover value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getShowClippedValuesOnHoverIf true and a cell's value is clipped, then a hover containing the full cell value is enabled.Note that standard cell hovers override clipped value hovers. Thus, to enable clipped value hovers, canHovermust be unset or null and the corresponding field must haveshowHoverunset or null as well.- Returns:
- Current showClippedValuesOnHover value. Default value is null
- See Also:
 
- 
setShowCollapsedGroupSummaryShould group summaries be visible when the group is collapsed?This property only applies to groupedgrids showinggroup summary rows. When set to true, the group summary row(s) for each group will show up under the group header nodes when the group is collapsed, or at then end of the grouped set of data if the group is expanded.This property has no effect if showGroupSummaryInHeaderis true.
 If this method is called after the component has been drawn/initialized: Setter forshowCollapsedGroupSummary- Parameters:
- showCollapsedGroupSummary- new showCollapsedGroupSummary value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowCollapsedGroupSummaryShould group summaries be visible when the group is collapsed?This property only applies to groupedgrids showinggroup summary rows. When set to true, the group summary row(s) for each group will show up under the group header nodes when the group is collapsed, or at then end of the grouped set of data if the group is expanded.This property has no effect if showGroupSummaryInHeaderis true.- Returns:
- Current showCollapsedGroupSummary value. Default value is false
- See Also:
 
- 
setShowDetailFieldsWhether to include fields markeddetail:truefrom this component'sDataSource.When this property is true, theListGridwill include all detail fields unless fields have been specifically declared using thefieldsarray.Any field which has been included directly in the fieldsarray will be included regardless of the fieldsdetailattribute.Detail fields included will initially be hidden but the user may show these fields via the default header context menu ( showHeaderContextMenu).The field's visibility can also be overridden programatically using the standard showField(),hideField()andListGridField.showIf()APIs, for example, set showIf:"true" to show a detail field initially.Setting this property to false will completely exclude all detail fields from the list grid's fields array, such that they cannot be shown by the user or programmatically. - Specified by:
- setShowDetailFieldsin interface- DataBoundComponent
- Parameters:
- showDetailFields- New showDetailFields value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getShowDetailFieldsWhether to include fields markeddetail:truefrom this component'sDataSource.When this property is true, theListGridwill include all detail fields unless fields have been specifically declared using thefieldsarray.Any field which has been included directly in the fieldsarray will be included regardless of the fieldsdetailattribute.Detail fields included will initially be hidden but the user may show these fields via the default header context menu ( showHeaderContextMenu).The field's visibility can also be overridden programatically using the standard showField(),hideField()andListGridField.showIf()APIs, for example, set showIf:"true" to show a detail field initially.Setting this property to false will completely exclude all detail fields from the list grid's fields array, such that they cannot be shown by the user or programmatically. - Specified by:
- getShowDetailFieldsin interface- DataBoundComponent
- Returns:
- Current showDetailFields value. Default value is true
- See Also:
 
- 
setShowDropLinesControls whether to show a drop-indicator during a drag and drop operation.- Overrides:
- setShowDropLinesin class- Layout
- Parameters:
- showDropLines- New showDropLines value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowDropLinesControls whether to show a drop-indicator during a drag and drop operation.- Overrides:
- getShowDropLinesin class- Layout
- Returns:
- Current showDropLines value. Default value is true
- See Also:
 
- 
setShowEllipsisWhenClippedShould ellipses be displayed when cell content is clipped? May be overridden at the field level viaListGridField.showEllipsisWhenClipped- Parameters:
- showEllipsisWhenClipped- New showEllipsisWhenClipped value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowEllipsisWhenClippedpublic boolean getShowEllipsisWhenClipped()Should ellipses be displayed when cell content is clipped? May be overridden at the field level viaListGridField.showEllipsisWhenClipped- Returns:
- Current showEllipsisWhenClipped value. Default value is true
 
- 
setShowEmptyMessageIndicates whether the text of the emptyMessage property should be displayed if no data is available.- Parameters:
- showEmptyMessage- New showEmptyMessage value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowEmptyMessageIndicates whether the text of the emptyMessage property should be displayed if no data is available.- Returns:
- Current showEmptyMessage value. Default value is true
- See Also:
 
- 
setShowErrorIconsIf this grid is editable, and an edit has caused validation failure for some cell, should we show an icon to indicate validation failure?- Parameters:
- showErrorIcons- New showErrorIcons value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowErrorIconspublic boolean getShowErrorIcons()If this grid is editable, and an edit has caused validation failure for some cell, should we show an icon to indicate validation failure?- Returns:
- Current showErrorIcons value. Default value is true
 
- 
getShowExpansionEditorSaveButtonWhenExpansionModeis editor, should a Save button be shown below the the expanded editor?Note that if an expanded-row containing an editor is collapsed while changes are outstanding, changes will be either be automatically updated to the grid, or will first show a confirmation dialog, according to the value of expansionEditorShowSaveDialog.Note : This method should be called only after the widget has been rendered. - Returns:
- Current showExpansionEditorSaveButton value. Default value is true
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setShowFilterEditorShould this listGrid display a filter row. If true, this ListGrid will be drawn with a single editable row, (separate from the body) with a filter button.Values entered into this row are used as filter criteria to filter this List's data. The filterByCellandfilterOnKeypressattributes allow developers to configure whether filtering occurs automatically on change or requires an enter-keypress or filter button click.
 autoFetchTextMatchStyledetermines the textMatchStyle for the request passed tofetchData().The default search operatorfor an item in the filterEditor can be set viaListGridField.filterOperator. Whenfield.filterOperatorhas been set calls to retrieve the criteria from the grid returnAdvancedCriteria. See alsoallowFilterOperatorsfor a UI that allows end users to change the search operator on the flyNote that if filterData()orfetchData()is called directly while the filter editor is showing, the filter editor values will be updated to reflect the new set of criteria. If you wish to retain the user entered filter criteria and modify a subset of field values programmatically, this can be achieved by copying the existing set of criteria and adding other changes - something like this:
 In this example code we're usingCriteria newCriteria = myListGrid.getFilterEditorCriteria(); newCriteria = DataSource.combineCriteria(newCriteria, new Criteria("field1", "new value1") ); myListGrid.setCriteria(newCriteria);getFilterEditorCriteria()rather thangetCriteria()- this ensures that if the user has typed a new value into the filter editor, but not yet clicked the filter button, we pick up the value the user entered. This sample code usesDataSource.combineCriteria()to combine the existing filterEditorCriteria with some new custom criteria. This technique is applicable to both simple and advanced criteria.If you call filterData()and pass in criteria for dataSource fields that are not present in the ListGrid, these criteria will continue to be applied along with the user-visible criteria.filterEditor and advanced criteria: If a developer calls filterData()on a ListGrid and passes inAdvancedCriteria, expected behavior of the filter editor becomes ambiguous, since AdvancedCriteria has far more complex filter expression support than the ordinary filterEditor can represent.Default behavior for AdvancedCriteria will combine the AdvancedCriteria with the values in the filter editor as follows: - If the top level criteria has operator of type "and":
 Each field in the top level criteria array for which a 'canFilter' true field is shown in the listGrid will show up if the specified operator matches the default filter behavior (based on theautoFetchTextMatchStyle).
 If the user enters values in the filter editor, these will be combined with the existing AdvancedCriteria by either replacing or adding field level criteria at the top level.
- If the top level criteria is a single field-criteria:
 If the field shows up in the listGrid and is canFilter:true, it will be displayed to the user (if the operator matches the default filter behavior for the field).
 If the user enters new filter criteria in the filterEditor, they will be combined with this existing criterion via a top level "and" operator, or if the user modifies the field for which the criterion already existed, it will be replaced.
- Otherwise, if there are multiple top level criteria combined with an "or" operator, these will not be shown in the filter editor. Any filter parameters the user enters will be added to the existing criteria via an additional top level "and" operator, meaning the user will essentially filter a subset of the existing criteria
 
 If this method is called after the component has been drawn/initialized: Setter for theshowFilterEditorproperty. Allows the filter editor to be shown or hidden at runtime.By default, hiding the filterEditorwill also clear any user-criteria it specified and refetch the data. To prevent this behavior, you can setclearCriteriaOnFilterEditorHideto false.- Parameters:
- showFilterEditor- true if the filter editor should be shown, false if it should be hidden. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- If the top level criteria has operator of type "and":
- 
getShowFilterEditorpublic boolean getShowFilterEditor()Should this listGrid display a filter row. If true, this ListGrid will be drawn with a single editable row, (separate from the body) with a filter button.Values entered into this row are used as filter criteria to filter this List's data. The filterByCellandfilterOnKeypressattributes allow developers to configure whether filtering occurs automatically on change or requires an enter-keypress or filter button click.
 autoFetchTextMatchStyledetermines the textMatchStyle for the request passed tofetchData().The default search operatorfor an item in the filterEditor can be set viaListGridField.filterOperator. Whenfield.filterOperatorhas been set calls to retrieve the criteria from the grid returnAdvancedCriteria. See alsoallowFilterOperatorsfor a UI that allows end users to change the search operator on the flyNote that if filterData()orfetchData()is called directly while the filter editor is showing, the filter editor values will be updated to reflect the new set of criteria. If you wish to retain the user entered filter criteria and modify a subset of field values programmatically, this can be achieved by copying the existing set of criteria and adding other changes - something like this:
 In this example code we're usingCriteria newCriteria = myListGrid.getFilterEditorCriteria(); newCriteria = DataSource.combineCriteria(newCriteria, new Criteria("field1", "new value1") ); myListGrid.setCriteria(newCriteria);getFilterEditorCriteria()rather thangetCriteria()- this ensures that if the user has typed a new value into the filter editor, but not yet clicked the filter button, we pick up the value the user entered. This sample code usesDataSource.combineCriteria()to combine the existing filterEditorCriteria with some new custom criteria. This technique is applicable to both simple and advanced criteria.If you call filterData()and pass in criteria for dataSource fields that are not present in the ListGrid, these criteria will continue to be applied along with the user-visible criteria.filterEditor and advanced criteria: If a developer calls filterData()on a ListGrid and passes inAdvancedCriteria, expected behavior of the filter editor becomes ambiguous, since AdvancedCriteria has far more complex filter expression support than the ordinary filterEditor can represent.Default behavior for AdvancedCriteria will combine the AdvancedCriteria with the values in the filter editor as follows: - If the top level criteria has operator of type "and":
 Each field in the top level criteria array for which a 'canFilter' true field is shown in the listGrid will show up if the specified operator matches the default filter behavior (based on theautoFetchTextMatchStyle).
 If the user enters values in the filter editor, these will be combined with the existing AdvancedCriteria by either replacing or adding field level criteria at the top level.
- If the top level criteria is a single field-criteria:
 If the field shows up in the listGrid and is canFilter:true, it will be displayed to the user (if the operator matches the default filter behavior for the field).
 If the user enters new filter criteria in the filterEditor, they will be combined with this existing criterion via a top level "and" operator, or if the user modifies the field for which the criterion already existed, it will be replaced.
- Otherwise, if there are multiple top level criteria combined with an "or" operator, these will not be shown in the filter editor. Any filter parameters the user enters will be added to the existing criteria via an additional top level "and" operator, meaning the user will essentially filter a subset of the existing criteria
 - Returns:
- Current showFilterEditor value. Default value is false
- See Also:
 
- If the top level criteria has operator of type "and":
- 
setShowFilterEditorHoverspublic ListGrid setShowFilterEditorHovers(Boolean showFilterEditorHovers) throws IllegalStateException When set to false, no hover is shown for the filter editor fields. Otherwise, a hover shows the current field's criteria description along with thefilterWindowCriteriadescription if configured.Hovers can also be disabled for individual fields using ListGridField.showFilterEditorHovers.The descriptive text for criteria is formatted by DataSource.getAdvancedCriteriaDescription().- Parameters:
- showFilterEditorHovers- New showFilterEditorHovers value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getShowFilterEditorHoversWhen set to false, no hover is shown for the filter editor fields. Otherwise, a hover shows the current field's criteria description along with thefilterWindowCriteriadescription if configured.Hovers can also be disabled for individual fields using ListGridField.showFilterEditorHovers.The descriptive text for criteria is formatted by DataSource.getAdvancedCriteriaDescription().- Returns:
- Current showFilterEditorHovers value. Default value is null
- See Also:
 
- 
setShowFilterEditorTitleWhencanShowFilterEditoris true, this is the title for the filterEditor show/hide menu-item, in theheaderContextmenu, when the filterEditor is hidden.hideFilterEditorTitleaffects the same menu-item when the filterEditor is visible.- Parameters:
- showFilterEditorTitle- New showFilterEditorTitle value. Default value is "Show Filter Row"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowFilterEditorTitleWhencanShowFilterEditoris true, this is the title for the filterEditor show/hide menu-item, in theheaderContextmenu, when the filterEditor is hidden.hideFilterEditorTitleaffects the same menu-item when the filterEditor is visible.- Returns:
- Current showFilterEditorTitle value. Default value is "Show Filter Row"
- See Also:
 
- 
setShowFilterWindowCriteriaIndicatorpublic ListGrid setShowFilterWindowCriteriaIndicator(Boolean showFilterWindowCriteriaIndicator) throws IllegalStateException Should an indicator be shown to indicate thatfilterWindowCriteriais configured? The indicator is a small triangle shown in the top-right of the grid header or filter.- Parameters:
- showFilterWindowCriteriaIndicator- New showFilterWindowCriteriaIndicator value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getShowFilterWindowCriteriaIndicatorShould an indicator be shown to indicate thatfilterWindowCriteriais configured? The indicator is a small triangle shown in the top-right of the grid header or filter.- Returns:
- Current showFilterWindowCriteriaIndicator value. Default value is true
 
- 
setShowGridSummaryShould this ListGrid show a summary row beneath the last record of the grid. This summary row will contain per-field summary information. SeeListGridField.showGridSummaryandgetGridSummaryFunction()for details on how the summary value to be displayed for each column will be calculated.Note that the summaryRow autoChildwill be created to actually display the summary row.
 If this method is called after the component has been drawn/initialized: Setter for theshowGridSummaryattribute- Parameters:
- showGridSummary- new value for this.showGridSummary. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowGridSummaryShould this ListGrid show a summary row beneath the last record of the grid. This summary row will contain per-field summary information. SeeListGridField.showGridSummaryandgetGridSummaryFunction()for details on how the summary value to be displayed for each column will be calculated.Note that the summaryRow autoChildwill be created to actually display the summary row.- Returns:
- Current showGridSummary value. Default value is false
 
- 
setShowGroupSummaryIf this listGrid supportsgrouping, setting this property will cause the grid to render an extra row at the end of each group when grouped, containing summary information for the fields. Summary information will be calculated by theListGridField.getGroupSummary()method if specified, otherwise via the specifiedListGridField.summaryFunction.
 If this method is called after the component has been drawn/initialized: Setter for theshowGroupSummaryattribute- Parameters:
- showGroupSummary- new value for this.showGroupSummary. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowGroupSummaryIf this listGrid supportsgrouping, setting this property will cause the grid to render an extra row at the end of each group when grouped, containing summary information for the fields. Summary information will be calculated by theListGridField.getGroupSummary()method if specified, otherwise via the specifiedListGridField.summaryFunction.- Returns:
- Current showGroupSummary value. Default value is false
- See Also:
 
- 
setShowGroupSummaryInHeaderIf this grid isgrouped, andshowGroupSummaryis true, setting this property causes field summary values for each group to be displayed directly in the group header node, rather than showing up at the bottom of each expanded group.Note that this means the group header node will be showing multiple field values rather than the default display of a single cell spanning all columns containing the group title. Developers may specify an explicit groupTitleField, or rely on the automatically generatedgroupTitleColumnto have group titles be visible as well as the summary values.Also note that multi-line group summaries are not supported when showing the group summary in the group header. If multiple field summary functionsare defined for some field only the first will be displayed when this property is set to true.
 If this method is called after the component has been drawn/initialized: Setter forshowGroupSummaryInHeader- Parameters:
- showGroupSummaryInHeader- new showGroupSummaryInHeader state. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowGroupSummaryInHeaderIf this grid isgrouped, andshowGroupSummaryis true, setting this property causes field summary values for each group to be displayed directly in the group header node, rather than showing up at the bottom of each expanded group.Note that this means the group header node will be showing multiple field values rather than the default display of a single cell spanning all columns containing the group title. Developers may specify an explicit groupTitleField, or rely on the automatically generatedgroupTitleColumnto have group titles be visible as well as the summary values.Also note that multi-line group summaries are not supported when showing the group summary in the group header. If multiple field summary functionsare defined for some field only the first will be displayed when this property is set to true.- Returns:
- Current showGroupSummaryInHeader value. Default value is false
- See Also:
 
- 
setShowGroupTitleColumnIf this grid isgroupedandshowGroupSummaryInHeaderis true, instead of group header nodes showing up with a single cell value spanning the full set of columns, summaries for each field will show up in the appropriate columns of the header node.In this case there are 2 options for where the group title will show up. Developers may specify an existing field to put the title values into via groupTitleField. If no groupTitleField is specified, this property may be set totruewhich causes agroupTitleColumnto be automatically generated. Each group header will show the group title in this column (records within the group will not show a value for this column). The column appears in the leftmost position within the grid (unlessshowRowNumbersis true, in which case this column shows up in the second-leftmost position), and by default will auto-fit to its data.To customize this field, developers may modify groupTitleColumnProperties- Parameters:
- showGroupTitleColumn- New showGroupTitleColumn value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getShowGroupTitleColumnIf this grid isgroupedandshowGroupSummaryInHeaderis true, instead of group header nodes showing up with a single cell value spanning the full set of columns, summaries for each field will show up in the appropriate columns of the header node.In this case there are 2 options for where the group title will show up. Developers may specify an existing field to put the title values into via groupTitleField. If no groupTitleField is specified, this property may be set totruewhich causes agroupTitleColumnto be automatically generated. Each group header will show the group title in this column (records within the group will not show a value for this column). The column appears in the leftmost position within the grid (unlessshowRowNumbersis true, in which case this column shows up in the second-leftmost position), and by default will auto-fit to its data.To customize this field, developers may modify groupTitleColumnProperties- Returns:
- Current showGroupTitleColumn value. Default value is true
 
- 
setShowGroupTitleInFrozenBodyIf this isgroupedand hasfrozen fields, should the group title show in the frozen or unfrozen body?Setting this property to false will cause the group title to show in the unfrozen body in this case, meaning it will appear to the right of the frozen fields, and scroll horizontally as the user scrolls the unfrozen fields. This can be useful for grids where there isn't enough available space to show the group title text in the frozen body. Note that if groupTitleFieldis explicitly set, orshowGroupSummaryInHeaderis true, this property has no effect. In this case rather than the group title showing in a single cell spanning multiple other fields, it will be rendered into a specific column.Note : This is an advanced setting - Parameters:
- showGroupTitleInFrozenBody- New showGroupTitleInFrozenBody value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowGroupTitleInFrozenBodypublic boolean getShowGroupTitleInFrozenBody()If this isgroupedand hasfrozen fields, should the group title show in the frozen or unfrozen body?Setting this property to false will cause the group title to show in the unfrozen body in this case, meaning it will appear to the right of the frozen fields, and scroll horizontally as the user scrolls the unfrozen fields. This can be useful for grids where there isn't enough available space to show the group title text in the frozen body. Note that if groupTitleFieldis explicitly set, orshowGroupSummaryInHeaderis true, this property has no effect. In this case rather than the group title showing in a single cell spanning multiple other fields, it will be rendered into a specific column.- Returns:
- Current showGroupTitleInFrozenBody value. Default value is true
 
- 
setShowHeaderShould we show the header for this ListGrid?
 If this method is called after the component has been drawn/initialized: Show or hide the ListGrid header.- Parameters:
- showHeader- true to show the header, false to hide it. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowHeaderShould we show the header for this ListGrid?- Returns:
- Current showHeader value. Default value is true
- See Also:
 
- 
setShowHeaderContextMenupublic ListGrid setShowHeaderContextMenu(Boolean showHeaderContextMenu) throws IllegalStateException Whether to show a context menu on the header with standard items for showing and hiding fields. Not supported forCubeGrid.- Parameters:
- showHeaderContextMenu- New showHeaderContextMenu value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getShowHeaderContextMenuWhether to show a context menu on the header with standard items for showing and hiding fields. Not supported forCubeGrid.- Returns:
- Current showHeaderContextMenu value. Default value is true
- See Also:
 
- 
setShowHeaderMenuButtonIf set to true andshowHeaderContextMenuis true, theheaderMenuButtonwill be displayed when the user rolls over the header buttons in this grid. Not supported forCubeGrid.- Parameters:
- showHeaderMenuButton- New showHeaderMenuButton value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getShowHeaderMenuButtonIf set to true andshowHeaderContextMenuis true, theheaderMenuButtonwill be displayed when the user rolls over the header buttons in this grid. Not supported forCubeGrid.- Returns:
- Current showHeaderMenuButton value. Default value is true
 
- 
setShowHeaderPartialSelectionShould partial selection of all records be shown in header with a special icon? The partial icon will show in the header whencanSelectAllis enabled and at least one record is selected but all records are not selected. To only show all selected and none selected states, set this attribute tofalse.
- 
getShowHeaderPartialSelectionShould partial selection of all records be shown in header with a special icon? The partial icon will show in the header whencanSelectAllis enabled and at least one record is selected but all records are not selected. To only show all selected and none selected states, set this attribute tofalse.- Returns:
- Current showHeaderPartialSelection value. Default value is null
- See Also:
 
- 
setShowHeaderShadowShould the header show a drop-shadow? Shadow will be applied to the header, or for a grid with frozen columns, the header layout.Header shadow will only be displayed if css shadowsare being used.- Parameters:
- showHeaderShadow- New showHeaderShadow value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowHeaderShadowShould the header show a drop-shadow? Shadow will be applied to the header, or for a grid with frozen columns, the header layout.Header shadow will only be displayed if css shadowsare being used.- Returns:
- Current showHeaderShadow value. Default value is false
- See Also:
 
- 
setShowHeaderSpanContextMenupublic ListGrid setShowHeaderSpanContextMenu(Boolean showHeaderSpanContextMenu) throws IllegalStateException Whether to show a context menu on the header span with standard items for showing and hiding fields. Not supported forCubeGrid.- Parameters:
- showHeaderSpanContextMenu- New showHeaderSpanContextMenu value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getShowHeaderSpanContextMenuWhether to show a context menu on the header span with standard items for showing and hiding fields. Not supported forCubeGrid.- Returns:
- Current showHeaderSpanContextMenu value. Default value is true
- See Also:
 
- 
setShowHeaderSpanTitlesInFormulaBuilderpublic ListGrid setShowHeaderSpanTitlesInFormulaBuilder(Boolean showHeaderSpanTitlesInFormulaBuilder) If this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using the FormulaBuilder or SummaryBuilder.- Parameters:
- showHeaderSpanTitlesInFormulaBuilder- New showHeaderSpanTitlesInFormulaBuilder value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowHeaderSpanTitlesInFormulaBuilderIf this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using the FormulaBuilder or SummaryBuilder.- Returns:
- Current showHeaderSpanTitlesInFormulaBuilder value. Default value is true
- See Also:
 
- 
setShowHeaderSpanTitlesInHiliteEditorIf this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using thehilite editor.- Parameters:
- showHeaderSpanTitlesInHiliteEditor- New showHeaderSpanTitlesInHiliteEditor value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowHeaderSpanTitlesInHiliteEditorIf this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using thehilite editor.- Returns:
- Current showHeaderSpanTitlesInHiliteEditor value. Default value is true
- See Also:
 
- 
setShowHeaderSpanTitlesInSortEditorIf this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using themulti-sort editor.- Parameters:
- showHeaderSpanTitlesInSortEditor- New showHeaderSpanTitlesInSortEditor value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowHeaderSpanTitlesInSortEditorIf this grid has specifiedheaderSpans, should field titles be prefixed with the titles of the headerSpans in which they are contained when using themulti-sort editor.- Returns:
- Current showHeaderSpanTitlesInSortEditor value. Default value is true
- See Also:
 
- 
setShowHilitesInGroupSummaryDetermines whether hiliting for any field in this grid is shown in a group summary. This setting affects all fields of the grid.To suppress hilites for a specific field see ListGridField.showHilitesInGroupSummary.Hiliting in summary fields (columns) can be enabled by setting includeHiliteInSummaryFieldto true.- Parameters:
- showHilitesInGroupSummary- New showHilitesInGroupSummary value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowHilitesInGroupSummarypublic boolean getShowHilitesInGroupSummary()Determines whether hiliting for any field in this grid is shown in a group summary. This setting affects all fields of the grid.To suppress hilites for a specific field see ListGridField.showHilitesInGroupSummary.Hiliting in summary fields (columns) can be enabled by setting includeHiliteInSummaryFieldto true.- Returns:
- Current showHilitesInGroupSummary value. Default value is true
 
- 
setShowHoverIf true, andcanHoveris also true, shows popup hover text next to the mouse when the user hovers over a cell. The content of the hover is determined bycellHoverHTML().This is the default setting for the grid and can be overridden on a per-fieldbasis.- Overrides:
- setShowHoverin class- Canvas
- Parameters:
- showHover- New showHover value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
- 
- setCanHover(java.lang.Boolean)
- com.smartgwt.client.widgets.grid.ListGrid#cellHoverHTML
 
 
- 
getShowHoverIf true, andcanHoveris also true, shows popup hover text next to the mouse when the user hovers over a cell. The content of the hover is determined bycellHoverHTML().This is the default setting for the grid and can be overridden on a per-fieldbasis.- Overrides:
- getShowHoverin class- Canvas
- Returns:
- Current showHover value. Default value is true
- See Also:
- 
- getCanHover()
- com.smartgwt.client.widgets.grid.ListGrid#cellHoverHTML
 
 
- 
setShowHoverComponentsWhen set to true and canHover is also true, shows a widget hovering at the mouse point.A number of builtin modes are provided - see hoverMode. Note, if ahoverModeis set butshowHoverComponentsis left null, it will default to true.Also supported at the field-level.- Overrides:
- setShowHoverComponentsin class- Canvas
- Parameters:
- showHoverComponents- New showHoverComponents value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowHoverComponentsWhen set to true and canHover is also true, shows a widget hovering at the mouse point.A number of builtin modes are provided - see hoverMode. Note, if ahoverModeis set butshowHoverComponentsis left null, it will default to true.Also supported at the field-level.- Overrides:
- getShowHoverComponentsin class- Canvas
- Returns:
- Current showHoverComponents value. Default value is null
 
- 
setShowHoverOnDisabledCellsIfshowHoveris true, should cell hover HTML be displayed on disabled cells?- Parameters:
- showHoverOnDisabledCells- New showHoverOnDisabledCells value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowHoverOnDisabledCellspublic boolean getShowHoverOnDisabledCells()IfshowHoveris true, should cell hover HTML be displayed on disabled cells?- Returns:
- Current showHoverOnDisabledCells value. Default value is false
 
- 
setShowInitialDragHandlespublic ListGrid setShowInitialDragHandles(Boolean showInitialDragHandles) throws IllegalStateException When set to true, shows thedrag handle fieldon initial draw.Note : This is an advanced setting - Parameters:
- showInitialDragHandles- New showInitialDragHandles value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
- 
- showDragHandles()
- hideDragHandles()
- com.smartgwt.client.widgets.grid.ListGrid#setDragHandleField
 
 
- 
getShowInitialDragHandlesWhen set to true, shows thedrag handle fieldon initial draw.- Returns:
- Current showInitialDragHandles value. Default value is null
- See Also:
 
- 
setShowNewRecordRowIf this is an editable ListGrid, setting this property to true causes an extra row with thenewRecordRowMessageto be displayed below the last record.Clicking this row will start editing a new record at the end of the data set, as if startEditingNew()had been called.Note that for databound grids, the new record row will be suppressed if the grid has notfetched data, unlesssaveLocallyhas been set.- Parameters:
- showNewRecordRow- New showNewRecordRow value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowNewRecordRowIf this is an editable ListGrid, setting this property to true causes an extra row with thenewRecordRowMessageto be displayed below the last record.Clicking this row will start editing a new record at the end of the data set, as if startEditingNew()had been called.Note that for databound grids, the new record row will be suppressed if the grid has notfetched data, unlesssaveLocallyhas been set.- Returns:
- Current showNewRecordRow value. Default value is null
 
- 
setShowPartialSelectionShould partially selected parents (in a Tree data set) be shown with special icon? This has an impact in grouped grids wherecanSelectGroupsis true. The partial icon will show up for the group header node when a group is partially selected.
- 
getShowPartialSelectionShould partially selected parents (in a Tree data set) be shown with special icon? This has an impact in grouped grids wherecanSelectGroupsis true. The partial icon will show up for the group header node when a group is partially selected.- Returns:
- Current showPartialSelection value. Default value is false
- See Also:
 
- 
setShowRecordComponentsWhen enabled,createRecordComponent()will be called when saved rows are being rendered, and any returned component will be displayed embedded within the row or cell.recordComponents are not created for newly added rows which have not yet been saved. See the Handling Unsaved Records overviewfor more information.Depending on the showRecordComponentsByCellsetting,createRecordComponent()will be called either once per row, or once for every cell.Depending on recordComponentPosition, components can either be placed underneath normal record or cell content ("expand" setting) or placed so that they overlap normal cell content ("within" setting). For the "within" setting, the default is to fill the row or cell, but the component can specify percent size or even usesnapTo-positioningto place itself within the row or cell.The "expand" setting is incompatible with frozen columnsunless allrecordComponentsare the same height and they are present in every row, in which case the fixed height of allrecordComponentscan be set viarecordComponentHeightto re-enable frozen fields.Using recordComponentspotentially means creating one component for every visible grid row or cell and so can impact performance. Before using this subsystem:-  consider using ListGridField.valueIcons(possibly with a specifiedListGridField.valueIconClick()handler) for icons based on field values which may be displayed alone in the cell or alongside standard content (seeListGridField.showValueIconOnly);
-  for
 clickable icons representing actions that can be taken on a record, also       consider using a field of type "icon", or multiple such fields
-  for controls
 that only need to appear on rollover, consider      rollOver controls
-  if you are trying to customize
 the editor for a field, you can provide a custom      control via ListGridField.editorType, andFormItem.iconsare a common way to add clickable buttons. You can alsoprovide different controls per record. These options are usually better that usingrecordComponentsas custom editors, since you won't have to manage issues like making therecordComponentappear only when editing, having changes affecteditValues, triggering saves and handling validation errors, etc.
 See RecordComponentPoolingModefor an overview of how best to optimize use ofrecordComponentsfor different data sets.Regardless of the pooling mode, you can explicitly refresh record components via invalidateRecordComponents()andrefreshRecordComponent().Interaction with column auto-fit: per-cell record components are not taken into account when determining the size for column auto fit. The defaultgetDefaultFieldWidth()implementation looks at cell content only. We typically recommend that, for fields showing record-components,ListGridField.autoFitWidthandListGridField.canAutoFitWidthbe disabled, or if the record components are of a predictable size, aListGridField.defaultWidthbe specified.
 This is particularly pertinent whererecordComponentPositionis set to "within", in which case cells' content is often empty or completely covered by record-components.
 If this method is called after the component has been drawn/initialized: Setter for theshowRecordComponentsattribute- Parameters:
- showRecordComponents- new value for- this.showRecordComponents. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
- 
- setRecordComponentPosition(com.smartgwt.client.types.EmbeddedPosition)
- setShowRecordComponentsByCell(java.lang.Boolean)
- RecordComponentPoolingMode
- showRecordComponent(com.smartgwt.client.widgets.grid.ListGridRecord, java.lang.Integer)
- createRecordComponent(com.smartgwt.client.widgets.grid.ListGridRecord, java.lang.Integer)
- updateRecordComponent(com.smartgwt.client.widgets.grid.ListGridRecord, java.lang.Integer, com.smartgwt.client.widgets.Canvas, boolean)
 
 
-  consider using 
- 
getShowRecordComponentsWhen enabled,createRecordComponent()will be called when saved rows are being rendered, and any returned component will be displayed embedded within the row or cell.recordComponents are not created for newly added rows which have not yet been saved. See the Handling Unsaved Records overviewfor more information.Depending on the showRecordComponentsByCellsetting,createRecordComponent()will be called either once per row, or once for every cell.Depending on recordComponentPosition, components can either be placed underneath normal record or cell content ("expand" setting) or placed so that they overlap normal cell content ("within" setting). For the "within" setting, the default is to fill the row or cell, but the component can specify percent size or even usesnapTo-positioningto place itself within the row or cell.The "expand" setting is incompatible with frozen columnsunless allrecordComponentsare the same height and they are present in every row, in which case the fixed height of allrecordComponentscan be set viarecordComponentHeightto re-enable frozen fields.Using recordComponentspotentially means creating one component for every visible grid row or cell and so can impact performance. Before using this subsystem:-  consider using ListGridField.valueIcons(possibly with a specifiedListGridField.valueIconClick()handler) for icons based on field values which may be displayed alone in the cell or alongside standard content (seeListGridField.showValueIconOnly);
-  for
 clickable icons representing actions that can be taken on a record, also       consider using a field of type "icon", or multiple such fields
-  for controls
 that only need to appear on rollover, consider      rollOver controls
-  if you are trying to customize
 the editor for a field, you can provide a custom      control via ListGridField.editorType, andFormItem.iconsare a common way to add clickable buttons. You can alsoprovide different controls per record. These options are usually better that usingrecordComponentsas custom editors, since you won't have to manage issues like making therecordComponentappear only when editing, having changes affecteditValues, triggering saves and handling validation errors, etc.
 See RecordComponentPoolingModefor an overview of how best to optimize use ofrecordComponentsfor different data sets.Regardless of the pooling mode, you can explicitly refresh record components via invalidateRecordComponents()andrefreshRecordComponent().Interaction with column auto-fit: per-cell record components are not taken into account when determining the size for column auto fit. The defaultgetDefaultFieldWidth()implementation looks at cell content only. We typically recommend that, for fields showing record-components,ListGridField.autoFitWidthandListGridField.canAutoFitWidthbe disabled, or if the record components are of a predictable size, aListGridField.defaultWidthbe specified.
 This is particularly pertinent whererecordComponentPositionis set to "within", in which case cells' content is often empty or completely covered by record-components.- Returns:
- Current showRecordComponents value. Default value is null
- See Also:
- 
- getRecordComponentPosition()
- getShowRecordComponentsByCell()
- RecordComponentPoolingMode
- showRecordComponent(com.smartgwt.client.widgets.grid.ListGridRecord, java.lang.Integer)
- createRecordComponent(com.smartgwt.client.widgets.grid.ListGridRecord, java.lang.Integer)
- updateRecordComponent(com.smartgwt.client.widgets.grid.ListGridRecord, java.lang.Integer, com.smartgwt.client.widgets.Canvas, boolean)
 
 
-  consider using 
- 
setShowRecordComponentsByCellIf true, showsrecordComponentsin cells, rather than just in records.Note : This is an advanced setting - Parameters:
- showRecordComponentsByCell- New showRecordComponentsByCell value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowRecordComponentsByCellIf true, showsrecordComponentsin cells, rather than just in records.- Returns:
- Current showRecordComponentsByCell value. Default value is null
 
- 
setShowRollOverShould we show different styling for the cell the mouse is over?If true, the cell style will have the suffix "Over" appended. Can be overridden on a per-record basis via ListGridRecord.showRollOver.- Parameters:
- showRollOver- New showRollOver value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowRollOverShould we show different styling for the cell the mouse is over?If true, the cell style will have the suffix "Over" appended. Can be overridden on a per-record basis via ListGridRecord.showRollOver.- Returns:
- Current showRollOver value. Default value is true
- See Also:
 
- 
setShowRollOverCanvasWhen enabled, when the mouse moves over a row or cell (depending onuseCellRollOvers), an arbitrary Canvas can be shown layered on top of the row or cell (therollOverCanvas), layered underneath the row or cell (therollUnderCanvas), or both.This can be used to dynamically show controls or informational displays only on rollover. For example, controls to delete a row might appear only on rollover so they do not clutter the static display, or a "rollUnder" Canvas could be used to display additional information that can appear behind normal cell values (like displaying percent complete via as a bar of color that appears behind text values). snapTo positioningcan be used to place the rollOver/rollUnderCanvas. WithuseCellRollOvers, positioning is relative to the cell, for row-level rollOver, position is relative to the portion of the row that is scrolled into view (this implies a row-level rollOver/UnderCanvas can never be placed horizontally scrolled out of view, but this is possible for a cell-level rollOver).snapTopositioning makes it easy to do something like place a button at the right edge of the grid, next to the scrollbar: just set snapTo:"R" on therollOverCanvas.The rollOver/rollUnder Canvas can be a single static component (the same for all cells/rows) configured via the com.smartgwt.client.types.AutoChildsystem, or can instead be provided dynamically by implementinggetRollOverCanvas()and/orgetRollUnderCanvas().The rollOver/rollUnder canvas will be automatically added to the grid's bodyas anembedded component.
 For grids withfrozen fields, the behavior is as follows:- If useCellRollOversis false (the default), embedded components will be added to both the body and the frozen body
- Otherwise the component will be added to whichever body contains the cell the user is currently over
 getFrozenRollOverCanvas()orgetFrozenRollUnderCanvas()methods. The default implementation for these methods matches their equivalents for non-frozen rollOver / rollUnder canvases - it will use the autoChild subsystem to create a canvas from therollOverCanvasautoChild configuration.showRollOverCanvashas no effect ifshowRollOverisfalse.See also showSelectedRollOverCanvas.Note : This is an advanced setting - Parameters:
- showRollOverCanvas- New showRollOverCanvas value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- If 
- 
getShowRollOverCanvasWhen enabled, when the mouse moves over a row or cell (depending onuseCellRollOvers), an arbitrary Canvas can be shown layered on top of the row or cell (therollOverCanvas), layered underneath the row or cell (therollUnderCanvas), or both.This can be used to dynamically show controls or informational displays only on rollover. For example, controls to delete a row might appear only on rollover so they do not clutter the static display, or a "rollUnder" Canvas could be used to display additional information that can appear behind normal cell values (like displaying percent complete via as a bar of color that appears behind text values). snapTo positioningcan be used to place the rollOver/rollUnderCanvas. WithuseCellRollOvers, positioning is relative to the cell, for row-level rollOver, position is relative to the portion of the row that is scrolled into view (this implies a row-level rollOver/UnderCanvas can never be placed horizontally scrolled out of view, but this is possible for a cell-level rollOver).snapTopositioning makes it easy to do something like place a button at the right edge of the grid, next to the scrollbar: just set snapTo:"R" on therollOverCanvas.The rollOver/rollUnder Canvas can be a single static component (the same for all cells/rows) configured via the com.smartgwt.client.types.AutoChildsystem, or can instead be provided dynamically by implementinggetRollOverCanvas()and/orgetRollUnderCanvas().The rollOver/rollUnder canvas will be automatically added to the grid's bodyas anembedded component.
 For grids withfrozen fields, the behavior is as follows:- If useCellRollOversis false (the default), embedded components will be added to both the body and the frozen body
- Otherwise the component will be added to whichever body contains the cell the user is currently over
 getFrozenRollOverCanvas()orgetFrozenRollUnderCanvas()methods. The default implementation for these methods matches their equivalents for non-frozen rollOver / rollUnder canvases - it will use the autoChild subsystem to create a canvas from therollOverCanvasautoChild configuration.showRollOverCanvashas no effect ifshowRollOverisfalse.See also showSelectedRollOverCanvas.- Returns:
- Current showRollOverCanvas value. Default value is null
- See Also:
 
- If 
- 
setShowRollOverInExpansionThis setting causes theroll over canvasto be sized to cover the normal row and the expansion layout. Otherwise the rollOverCanvas is only shown for the un-expanded part of the row.Note : This is an advanced setting - Parameters:
- showRollOverInExpansion- New showRollOverInExpansion value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowRollOverInExpansionThis setting causes theroll over canvasto be sized to cover the normal row and the expansion layout. Otherwise the rollOverCanvas is only shown for the un-expanded part of the row.- Returns:
- Current showRollOverInExpansion value. Default value is null
 
- 
setShowRollUnderCanvasIf roll overs are enabled, should therollUnderCanvasbe displayed?Use of the showRollUnderCanvasis enabled ifshowRollOveristrue, and eithershowRollOverCanvasistrueandshowRollUnderCanvasis unset, orshowRollUnderCanvasis explicitly set totrue.See also showSelectedRollUnderCanvas.Note : This is an advanced setting - Parameters:
- showRollUnderCanvas- New showRollUnderCanvas value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowRollUnderCanvasIf roll overs are enabled, should therollUnderCanvasbe displayed?Use of the showRollUnderCanvasis enabled ifshowRollOveristrue, and eithershowRollOverCanvasistrueandshowRollUnderCanvasis unset, orshowRollUnderCanvasis explicitly set totrue.See also showSelectedRollUnderCanvas.- Returns:
- Current showRollUnderCanvas value. Default value is null
- See Also:
 
- 
setShowRowNumbersWhen set to true, shows an additional field at the beginning of the field-list (respecting RTL) that displays the current rowNum for each record.Note : This is an advanced setting - Parameters:
- showRowNumbers- New showRowNumbers value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowRowNumbersWhen set to true, shows an additional field at the beginning of the field-list (respecting RTL) that displays the current rowNum for each record.- Returns:
- Current showRowNumbers value. Default value is null
 
- 
setShowSelectedRollOverCanvasThis setting causes theroll over canvasto be displayed when the user rolls over selected records in the grid (but not when rolling over other records). This can be useful to display a "Selected Over" appearance which can't be easily achieved via standard cell styling.Note : This is an advanced setting - Parameters:
- showSelectedRollOverCanvas- New showSelectedRollOverCanvas value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowSelectedRollOverCanvasThis setting causes theroll over canvasto be displayed when the user rolls over selected records in the grid (but not when rolling over other records). This can be useful to display a "Selected Over" appearance which can't be easily achieved via standard cell styling.- Returns:
- Current showSelectedRollOverCanvas value. Default value is false
 
- 
setShowSelectedRollUnderCanvasThis setting causes theroll under canvasto be displayed when the user rolls over selected records in the grid (but not when rolling over other records). This can be useful to display a "Selected Over" appearance which can't be easily achieved via standard cell styling.As with showRollUnderCanvas, if this property is unset, but the relatedshowSelectedRollOverCanvasproperty is true, both the the roll under and roll under canvases will be displayed as the user rolls over selected records.Note : This is an advanced setting - Parameters:
- showSelectedRollUnderCanvas- New showSelectedRollUnderCanvas value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowSelectedRollUnderCanvasThis setting causes theroll under canvasto be displayed when the user rolls over selected records in the grid (but not when rolling over other records). This can be useful to display a "Selected Over" appearance which can't be easily achieved via standard cell styling.As with showRollUnderCanvas, if this property is unset, but the relatedshowSelectedRollOverCanvasproperty is true, both the the roll under and roll under canvases will be displayed as the user rolls over selected records.- Returns:
- Current showSelectedRollUnderCanvas value. Default value is false
 
- 
setShowSelectedStyleShould the "Selected" style be applied to selected records?- Parameters:
- showSelectedStyle- New showSelectedStyle value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowSelectedStyleShould the "Selected" style be applied to selected records?- Returns:
- Current showSelectedStyle value. Default value is true
 
- 
setShowSelectionCanvasIfselectionTypeis set toSelectionStyle.SINGLE, setting this property totruemeans selection will be displayed to the user with theselectionCanvasand/orselectionUnderCanvasrather than with CSS styling.If showSelectionCanvasis set totrue, then theselectionUnderCanvaswill automatically be enabled unlessshowSelectionUnderCanvasis set tofalse.NOTE: It is recommended to use the selectionUnderCanvasrather than theselectionCanvasif possible because theselectionCanvasis stacked on top of the selected record and this may interfere with event handling in rare cases. If no interactive components are shown in theselectionCanvasand it simply provides custom styling, then theselectionUnderCanvasshould be used instead.With frozen fields, theselectionCanvasis displayed only over the non-frozen fields of the selected row.Note : This is an advanced setting - Parameters:
- showSelectionCanvas- New showSelectionCanvas value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowSelectionCanvasIfselectionTypeis set toSelectionStyle.SINGLE, setting this property totruemeans selection will be displayed to the user with theselectionCanvasand/orselectionUnderCanvasrather than with CSS styling.If showSelectionCanvasis set totrue, then theselectionUnderCanvaswill automatically be enabled unlessshowSelectionUnderCanvasis set tofalse.NOTE: It is recommended to use the selectionUnderCanvasrather than theselectionCanvasif possible because theselectionCanvasis stacked on top of the selected record and this may interfere with event handling in rare cases. If no interactive components are shown in theselectionCanvasand it simply provides custom styling, then theselectionUnderCanvasshould be used instead.With frozen fields, theselectionCanvasis displayed only over the non-frozen fields of the selected row.- Returns:
- Current showSelectionCanvas value. Default value is null
- See Also:
 
- 
setShowSelectionUnderCanvasIfselectionTypeis set toSelectionStyle.SINGLE, and eithershowSelectionCanvasistrueandshowSelectionUnderCanvasis unset, orshowSelectionUnderCanvasis explicitly set totrue, then selection will be displayed to the user with theselectionCanvasand/orselectionUnderCanvasrather than with CSS styling. SettingshowSelectionUnderCanvastofalsewill disable the use of theselectionUnderCanvas.With frozen fields, theselectionUnderCanvasis displayed only behind the non-frozen fields of the selected row.Note : This is an advanced setting - Parameters:
- showSelectionUnderCanvas- New showSelectionUnderCanvas value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowSelectionUnderCanvasIfselectionTypeis set toSelectionStyle.SINGLE, and eithershowSelectionCanvasistrueandshowSelectionUnderCanvasis unset, orshowSelectionUnderCanvasis explicitly set totrue, then selection will be displayed to the user with theselectionCanvasand/orselectionUnderCanvasrather than with CSS styling. SettingshowSelectionUnderCanvastofalsewill disable the use of theselectionUnderCanvas.With frozen fields, theselectionUnderCanvasis displayed only behind the non-frozen fields of the selected row.- Returns:
- Current showSelectionUnderCanvas value. Default value is null
- See Also:
 
- 
setShowSortArrowIndicates whether a sorting arrow should appear for the listGrid, and its location. SeeSortArrowfor details.Clicking the sort arrow reverses the direction of sorting for the current sort column (if any), or sorts the listGrid by its first sortable column. The arrow image on the button indicates the current direction of sorting. If undefined, the sort arrow will show up in the sorted field, and the corner sort button will be displayed if a vertical scrollbar is being displayed - Parameters:
- showSortArrow- New showSortArrow value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShowSortArrowIndicates whether a sorting arrow should appear for the listGrid, and its location. SeeSortArrowfor details.Clicking the sort arrow reverses the direction of sorting for the current sort column (if any), or sorts the listGrid by its first sortable column. The arrow image on the button indicates the current direction of sorting. If undefined, the sort arrow will show up in the sorted field, and the corner sort button will be displayed if a vertical scrollbar is being displayed - Returns:
- Current showSortArrow value. Default value is null
- See Also:
 
- 
setShowSortNumeralsWhen multiple fields are sorted, set this to false to hide the sort-numeral displayed by default after the sort-arrows in the header-buttons of sorted fields.Note : This is an advanced setting - Parameters:
- showSortNumerals- New showSortNumerals value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getShowSortNumeralsWhen multiple fields are sorted, set this to false to hide the sort-numeral displayed by default after the sort-arrows in the header-buttons of sorted fields.- Returns:
- Current showSortNumerals value. Default value is null
 
- 
setShowTreeColumnPickerWhenheaderSpansare in use, whether to show a hierarchical column picker that includes both headerSpans and normal headers, with normal headers indented under headerSpans similarly to how aTreeGriddisplays a Tree.If showTreeColumnPickeris false, no column picker will be shown on the headerSpan itself, and the column picker for a clicked on a normal field header will include only normal fields.- Parameters:
- showTreeColumnPicker- New showTreeColumnPicker value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getShowTreeColumnPickerWhenheaderSpansare in use, whether to show a hierarchical column picker that includes both headerSpans and normal headers, with normal headers indented under headerSpans similarly to how aTreeGriddisplays a Tree.If showTreeColumnPickeris false, no column picker will be shown on the headerSpan itself, and the column picker for a clicked on a normal field header will include only normal fields.- Returns:
- Current showTreeColumnPicker value. Default value is true
 
- 
setShrinkForFreezeIf this list grid is showing anyfrozenfields, and a horizontal scrollbar is visible at the bottom of the liquid columns, should an equivalent scrollbar gap be left visible below the frozen columns?
 Note that if set totrueany backgroundColor or border applied to the ListGrid will show up below the bottom row of the frozen column(s).Note : This is an advanced setting - Parameters:
- shrinkForFreeze- New shrinkForFreeze value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getShrinkForFreezeIf this list grid is showing anyfrozenfields, and a horizontal scrollbar is visible at the bottom of the liquid columns, should an equivalent scrollbar gap be left visible below the frozen columns?
 Note that if set totrueany backgroundColor or border applied to the ListGrid will show up below the bottom row of the frozen column(s).- Returns:
- Current shrinkForFreeze value. Default value is false
- See Also:
 
- 
setSingleCellValuePropertyIfrecord[this.singleCellValueProperty]is set for some record, the record will be displayed as a single cell spanning every column in the grid, with contents set to the value ofrecord[this.singleCellValueProperty].- Parameters:
- singleCellValueProperty- New singleCellValueProperty value. Default value is "singleCellValue"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSingleCellValuePropertyIfrecord[this.singleCellValueProperty]is set for some record, the record will be displayed as a single cell spanning every column in the grid, with contents set to the value ofrecord[this.singleCellValueProperty].- Returns:
- Current singleCellValueProperty value. Default value is "singleCellValue"
 
- 
setSkinImgDirWhere do 'skin' images (those provided with the class) live?Note : This is an advanced setting - Overrides:
- setSkinImgDirin class- Canvas
- Parameters:
- skinImgDir- New skinImgDir value. Default value is "images/ListGrid/"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSkinImgDirWhere do 'skin' images (those provided with the class) live?- Overrides:
- getSkinImgDirin class- Canvas
- Returns:
- Current skinImgDir value. Default value is "images/ListGrid/"
- See Also:
 
- 
setSkipLineBreaksWhether to skip line breaks for all fields by default whenescaping HTML. This property can be overridden at the field level byListGridField.skipLineBreaks.- Parameters:
- skipLineBreaks- New skipLineBreaks value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSkipLineBreaksWhether to skip line breaks for all fields by default whenescaping HTML. This property can be overridden at the field level byListGridField.skipLineBreaks.- Returns:
- Current skipLineBreaks value. Default value is null
- See Also:
 
- 
setSortArrowMenuButtonSpaceOffsetWhenleaveHeaderMenuButtonSpaceis true, configures the amount of space beyond theheaderMenuButtonWidthon the right side of a ListGrid header button (left forRTL mode) to reserve for the sort arrow if sorting is active for that field and the arrow will be shown. May be increased for more separation between the sort arrow and the title text, at the expense of a reduced space for the title text.This value may need to be customized in your skin or if sortAscendingImageorsortDescendingImageare changed.- Parameters:
- sortArrowMenuButtonSpaceOffset- New sortArrowMenuButtonSpaceOffset value. Default value is 7
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSortArrowMenuButtonSpaceOffsetpublic int getSortArrowMenuButtonSpaceOffset()WhenleaveHeaderMenuButtonSpaceis true, configures the amount of space beyond theheaderMenuButtonWidthon the right side of a ListGrid header button (left forRTL mode) to reserve for the sort arrow if sorting is active for that field and the arrow will be shown. May be increased for more separation between the sort arrow and the title text, at the expense of a reduced space for the title text.This value may need to be customized in your skin or if sortAscendingImageorsortDescendingImageare changed.- Returns:
- Current sortArrowMenuButtonSpaceOffset value. Default value is 7
- See Also:
 
- 
setSortAscendingImageImage to show when sorted in ascending order. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.Note : This is an advanced setting - Parameters:
- sortAscendingImage- New sortAscendingImage value. Default value is {...}
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSortAscendingImageImage to show when sorted in ascending order. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.- Returns:
- Current sortAscendingImage value. Default value is {...}
- See Also:
 
- 
setSortAscendingImageImage to show when sorted in ascending order. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.Note : This is an advanced setting - Parameters:
- sortAscendingImage- New sortAscendingImage value. Default value is {...}
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSortAscendingImageAsImgHTMLPropertiesImage to show when sorted in ascending order. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.- Returns:
- Current sortAscendingImage value. Default value is {...}
- See Also:
 
- 
setSortBinaryByFileNameFor any fields oftype "binary", should sorting be performed against the fileName of the value for the field? For Smart GWT server backed dataSources, this is applied to the record automatically as described in theBinaryFieldsoverview.If set to false, binary fields will be sorted against the record value for the field in question. Client-side sorting does not support this, so developers who actually want to support a sort against the binary itself would typically set ResultSet.useClientSortingto false on thedataPropertiesblock for this grid.Note that this setting will have no effect if DataSourceField.sortByFieldis specified- Parameters:
- sortBinaryByFileName- New sortBinaryByFileName value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSortBinaryByFileNamepublic boolean getSortBinaryByFileName()For any fields oftype "binary", should sorting be performed against the fileName of the value for the field? For Smart GWT server backed dataSources, this is applied to the record automatically as described in theBinaryFieldsoverview.If set to false, binary fields will be sorted against the record value for the field in question. Client-side sorting does not support this, so developers who actually want to support a sort against the binary itself would typically set ResultSet.useClientSortingto false on thedataPropertiesblock for this grid.Note that this setting will have no effect if DataSourceField.sortByFieldis specified- Returns:
- Current sortBinaryByFileName value. Default value is true
 
- 
setSortByGroupFirstIf set, whenever grouping is performed by an end user or by a programmatic call togroupBy(), data is implicitly sorted by all of the grouped columns, in the order they were passed to groupBy. Any user-configured sorting is applied after sorting by grouped columns.Sorting by grouped fields will be in ascending or descending order according to whether the grid is currently sorted (by any field) in ascending or descending order, defaulting to ascending if the grid is not sorted. Implicit sorting by group can be forced to be always ascending or always descending by setting groupSortDirection.The sorting is "implicit" in the sense that the sorting is not shown in the ListGrid headers, and not shown in the MultiSortDialogif enabled. An end user cannot currently remove the implicit sorting themselves (except by removing the grouping), though it is possible to override it by providing an explicit sort on the group's column. Clicking on the grouped field's header reveals the usual sort indicators with all the same semantics.The correct way to remove implicit sorting programmatically is to call setSortByGroupFirst(false).Programmatic calls to getSort()will not include the implicit sort in the list of return sort specifiers, and calls tosetSort()will implicitly add the sorting by grouped columns before the specified sort.Note that directly calling ResultSet.getSort() will include the implicit sort information. - Parameters:
- sortByGroupFirst- New sortByGroupFirst value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSortByGroupFirstIf set, whenever grouping is performed by an end user or by a programmatic call togroupBy(), data is implicitly sorted by all of the grouped columns, in the order they were passed to groupBy. Any user-configured sorting is applied after sorting by grouped columns.Sorting by grouped fields will be in ascending or descending order according to whether the grid is currently sorted (by any field) in ascending or descending order, defaulting to ascending if the grid is not sorted. Implicit sorting by group can be forced to be always ascending or always descending by setting groupSortDirection.The sorting is "implicit" in the sense that the sorting is not shown in the ListGrid headers, and not shown in the MultiSortDialogif enabled. An end user cannot currently remove the implicit sorting themselves (except by removing the grouping), though it is possible to override it by providing an explicit sort on the group's column. Clicking on the grouped field's header reveals the usual sort indicators with all the same semantics.The correct way to remove implicit sorting programmatically is to call setSortByGroupFirst(false).Programmatic calls to getSort()will not include the implicit sort in the list of return sort specifiers, and calls tosetSort()will implicitly add the sorting by grouped columns before the specified sort.Note that directly calling ResultSet.getSort() will include the implicit sort information. - Returns:
- Current sortByGroupFirst value. Default value is null
- See Also:
 
- 
setSortDescendingImageImage to show when sorted in descending order. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.Note : This is an advanced setting - Parameters:
- sortDescendingImage- New sortDescendingImage value. Default value is {...}
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSortDescendingImageImage to show when sorted in descending order. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.- Returns:
- Current sortDescendingImage value. Default value is {...}
- See Also:
 
- 
setSortDescendingImageImage to show when sorted in descending order. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.Note : This is an advanced setting - Parameters:
- sortDescendingImage- New sortDescendingImage value. Default value is {...}
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSortDescendingImageAsImgHTMLPropertiesImage to show when sorted in descending order. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.- Returns:
- Current sortDescendingImage value. Default value is {...}
- See Also:
 
- 
setSortDirectionSorting direction of this ListGrid. If specified when the ListGrid is initialized, this property will be the default sorting direction for thesortField. May be overridden by specifyingListGridField.sortDirection.After initialization, this property will be updated on sort()orsetSort()to reflect the current sort direction of the grid. When this grid is sorted by multiple fields, the grid's sortDirection reflects the sort direction of the primary sort field.Note: A side effect of setSort()is that it updates the grid'ssortDirectionto the direction of the first sort. In particular, if there is aninitialSortorsortField, thensortDirectionwill be updated during initialization to the direction of the first sort.
 If this method is called after the component has been drawn/initialized: Sort this grid's data, with the option to explicitly specify a single field to sort by and sort direction.If sortField is not provided and listGrid.sortField is undefined, the data will be sorted by the first sortable column according to ListGridField.sortDirectionif specified, orsortDirection.ListGrids also support multiple-field sorting. See setSort()for details.Note that for editable grids, sorting is performed by underlying data values, not for unsaved pending edit values. When the user saves edits in a sorted grid, the grid will automatically beunsorted. SeeEditingfor further details.- Parameters:
- sortDirection- the field name or column number to sort by. Default value is "ascending"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSortDirectionSorting direction of this ListGrid. If specified when the ListGrid is initialized, this property will be the default sorting direction for thesortField. May be overridden by specifyingListGridField.sortDirection.After initialization, this property will be updated on sort()orsetSort()to reflect the current sort direction of the grid. When this grid is sorted by multiple fields, the grid's sortDirection reflects the sort direction of the primary sort field.Note: A side effect of setSort()is that it updates the grid'ssortDirectionto the direction of the first sort. In particular, if there is aninitialSortorsortField, thensortDirectionwill be updated during initialization to the direction of the first sort.- Returns:
- Current sortDirection value. Default value is "ascending"
- See Also:
 
- 
setSortEditorSpanTitleSeparatorIf this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInSortEditoris true, this string will be inserted between the headerSpan title(s) and the field title in the field chooser grid on themulti-sort editor- Parameters:
- sortEditorSpanTitleSeparator- New sortEditorSpanTitleSeparator value. Default value is " - "
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSortEditorSpanTitleSeparatorIf this grid has specifiedheaderSpans, andshowHeaderSpanTitlesInSortEditoris true, this string will be inserted between the headerSpan title(s) and the field title in the field chooser grid on themulti-sort editor- Returns:
- Current sortEditorSpanTitleSeparator value. Default value is " - "
 
- 
setSorterButtonTitleThe title for the corner sort button. The title will only ListGrid.changeDefaults() rather than replacing with an entirely new object.- Parameters:
- sorterButtonTitle- New sorterButtonTitle value. Default value is "corner menu"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getSorterButtonTitleThe title for the corner sort button. The title will only ListGrid.changeDefaults() rather than replacing with an entirely new object.- Returns:
- Current sorterButtonTitle value. Default value is "corner menu"
- See Also:
 
- 
setSortFieldSpecifies the field by which this grid should be initially sorted. Can be set to either afield nameor the index of the field in the fields Array.ListGrids also support being initialized with multiple-field sort via initialSort. If initialSort is specified, it will be used in preference to this property.To sort the grid after it has been initialized, use sort()orsetSort(). Details about the current sort of a live grid can be retrieved by callinggetSortField()orgetSort()- Parameters:
- sortField- New sortField value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getSortFieldSpecifies the field by which this grid should be initially sorted. Can be set to either afield nameor the index of the field in the fields Array.ListGrids also support being initialized with multiple-field sort via initialSort. If initialSort is specified, it will be used in preference to this property.To sort the grid after it has been initialized, use sort()orsetSort(). Details about the current sort of a live grid can be retrieved by callinggetSortField()orgetSort()
- 
setSortFieldSpecifies the field by which this grid should be initially sorted. Can be set to either afield nameor the index of the field in the fields Array.ListGrids also support being initialized with multiple-field sort via initialSort. If initialSort is specified, it will be used in preference to this property.To sort the grid after it has been initialized, use sort()orsetSort(). Details about the current sort of a live grid can be retrieved by callinggetSortField()orgetSort()- Parameters:
- sortField- New sortField value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
setSortFieldAscendingTextIf we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to sort a field in ascending order.- Parameters:
- sortFieldAscendingText- New sortFieldAscendingText value. Default value is "Sort Ascending"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSortFieldAscendingTextIf we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to sort a field in ascending order.- Returns:
- Current sortFieldAscendingText value. Default value is "Sort Ascending"
 
- 
setSortFieldDescendingTextIf we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to sort a field in descending order.- Parameters:
- sortFieldDescendingText- New sortFieldDescendingText value. Default value is "Sort Descending"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSortFieldDescendingTextIf we're showing aheaderContextMenufor this grid, this attribute will be shown as the menu item title to sort a field in descending order.- Returns:
- Current sortFieldDescendingText value. Default value is "Sort Descending"
 
- 
setSortNumeralMenuButtonSpaceOffsetWhenleaveHeaderMenuButtonSpaceis true, configures the amount of space beyond theheaderMenuButtonWidthon the right side of a ListGrid header button (left forRTL mode) to reserve for the sort numeral ifmulti-sortingis active for that field and the numeral will be shown. May be increased for more separation between the title text and the sort arrow when multi-sorting.Note that larger values may required if 10 or more fields are sorted at once, as the numeral will occupy more space. This value may need to be customized in your skin or if sortAscendingImageorsortDescendingImageare changed.- Parameters:
- sortNumeralMenuButtonSpaceOffset- New sortNumeralMenuButtonSpaceOffset value. Default value is 9
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSortNumeralMenuButtonSpaceOffsetpublic int getSortNumeralMenuButtonSpaceOffset()WhenleaveHeaderMenuButtonSpaceis true, configures the amount of space beyond theheaderMenuButtonWidthon the right side of a ListGrid header button (left forRTL mode) to reserve for the sort numeral ifmulti-sortingis active for that field and the numeral will be shown. May be increased for more separation between the title text and the sort arrow when multi-sorting.Note that larger values may required if 10 or more fields are sorted at once, as the numeral will occupy more space. This value may need to be customized in your skin or if sortAscendingImageorsortDescendingImageare changed.- Returns:
- Current sortNumeralMenuButtonSpaceOffset value. Default value is 9
- See Also:
 
- 
setSortNumeralStyleWhen multiple fields are sorted, the Style to apply to the numeral that appears after the sort-arrows in the header-buttons of sorted fields.Note : This is an advanced setting - Parameters:
- sortNumeralStyle- New sortNumeralStyle value. Default value is "sortNumeral"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSortNumeralStyleWhen multiple fields are sorted, the Style to apply to the numeral that appears after the sort-arrows in the header-buttons of sorted fields.- Returns:
- Current sortNumeralStyle value. Default value is "sortNumeral"
- See Also:
 
- 
setSortStateInitial sort state for the grid.viewStatecan be used to initialize all view properties of the grid. When doing so,sortStateis not needed becauseviewStateincludes it as well. If both are provided,sortStatehas priority for sort state.
 If this method is called after the component has been drawn/initialized: Reset this grid's sort state (sort field and direction or list ofSortSpecifiers) to match theListGridSortStateobject passed in.
 Used to restore previous state retrieved from the grid by a call togetSortState().- Parameters:
- sortState- Object describing the desired sort state for the grid. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSortStateInitial sort state for the grid.viewStatecan be used to initialize all view properties of the grid. When doing so,sortStateis not needed becauseviewStateincludes it as well. If both are provided,sortStatehas priority for sort state.- Returns:
- Returns a snapshot of the current sort state within this listGrid as a ListGridSortStateobject.
 This object can be passed tosetSortState()to reset this grid's sort to the current state (assuming the same fields are present in the grid).
 . Default value is null
- See Also:
 
- 
getSpanContextMenuThe menu displayed when a cell is right clicked on.This component is an AutoChild named "spanContextMenu". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current spanContextMenu value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
- See Also:
 
- 
setSpannedHeaderBaseStylepublic ListGrid setSpannedHeaderBaseStyle(String spannedHeaderBaseStyle) throws IllegalStateException Button.baseStyleto apply to the field header buttons for this ListGrid when showing header spans. Note that, depending on theClassof the header buttons, you may also need to setheaderTitleStyle.- Parameters:
- spannedHeaderBaseStyle- New spannedHeaderBaseStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getSpannedHeaderBaseStyleButton.baseStyleto apply to the field header buttons for this ListGrid when showing header spans. Note that, depending on theClassof the header buttons, you may also need to setheaderTitleStyle.- Returns:
- Current spannedHeaderBaseStyle value. Default value is null
- See Also:
 
- 
setStopOnErrorsIf this is an editable listGrid, this property determines how failure to save due to validation errors should be displayed to the user.If this property is true, when validation errors occur the errors will be displayed to the user in an alert, and focus will be returned to the first cell to fail validation. If false, the cells that failed validation will be silently styled with the editFailedBaseStyle. Note: stopOnErrors being set to true implies that 'waitForSave' is also true. We will not dismiss the editor until save has completed if stopOnErrors is true. Note : This is an advanced setting - Parameters:
- stopOnErrors- New stopOnErrors value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getStopOnErrorsIf this is an editable listGrid, this property determines how failure to save due to validation errors should be displayed to the user.If this property is true, when validation errors occur the errors will be displayed to the user in an alert, and focus will be returned to the first cell to fail validation. If false, the cells that failed validation will be silently styled with the editFailedBaseStyle. Note: stopOnErrors being set to true implies that 'waitForSave' is also true. We will not dismiss the editor until save has completed if stopOnErrors is true. - Returns:
- Current stopOnErrors value. Default value is false
- See Also:
 
- 
setStyledRowEndsWhen set to true, the first and last cells in each row will be styled with an additional CSS class, via thefirstCellStyleandlastCellStyleattributes. This styling is added as a second style, additional to the cell's regular stateful style, so works with any cell-design and in all states, and is also applied correctly with or without frozen fields.If all you want to do is provide rounded-corners for records in this grid, it may be simpler to set recordRadiusto a CSS border-radius string that achieves the rounding you want.Note that you can also provide your own implementation of getCellStyle()orgetCellCSSText(), if you want to do something more complex, like a gradient fade that spans the end two cells on each side of a record.- Parameters:
- styledRowEnds- New styledRowEnds value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getStyledRowEndsWhen set to true, the first and last cells in each row will be styled with an additional CSS class, via thefirstCellStyleandlastCellStyleattributes. This styling is added as a second style, additional to the cell's regular stateful style, so works with any cell-design and in all states, and is also applied correctly with or without frozen fields.If all you want to do is provide rounded-corners for records in this grid, it may be simpler to set recordRadiusto a CSS border-radius string that achieves the rounding you want.Note that you can also provide your own implementation of getCellStyle()orgetCellCSSText(), if you want to do something more complex, like a gradient fade that spans the end two cells on each side of a record.- Returns:
- Current styledRowEnds value. Default value is null
 
- 
setStyleNameDefault CSS class for the ListGrid as a whole.- Overrides:
- setStyleNamein class- Canvas
- Parameters:
- styleName- New styleName value. Default value is "listGrid"
- See Also:
 
- 
getStyleNameDefault CSS class for the ListGrid as a whole.- Overrides:
- getStyleNamein class- Canvas
- Returns:
- Current styleName value. Default value is "listGrid"
- See Also:
 
- 
getSummaryRowAutomatically generated ListGrid for displaying grid summary information (seeshowGridSummary).This component is an com.smartgwt.client.types.AutoChildand as such may be customized by callingsetAutoChildProperties("summaryRow", summaryRowProperties);wheresummaryRowPropertiesis a ListGrid instance with the desired customizations.This component is an AutoChild named "summaryRow". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current summaryRow value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setSummaryRowCriteriaIfshowGridSummaryis true, and asummaryRowDataSourceis specified this property may be used to specify fetch criteria to apply when retrieving summary data to show in the summary row. If unset, and any filter criteria have been specified for the grid, they will be used.If this property is set, the textMatchStylewill default to "exact". OtherwiseautoFetchTextMatchStylewill be used. This can be overridden viasummaryRowFetchRequestProperties.Note : This is an advanced setting - Parameters:
- summaryRowCriteria- New summaryRowCriteria value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getSummaryRowCriteriaIfshowGridSummaryis true, and asummaryRowDataSourceis specified this property may be used to specify fetch criteria to apply when retrieving summary data to show in the summary row. If unset, and any filter criteria have been specified for the grid, they will be used.If this property is set, the textMatchStylewill default to "exact". OtherwiseautoFetchTextMatchStylewill be used. This can be overridden viasummaryRowFetchRequestProperties.- Returns:
- Current summaryRowCriteria value. Default value is null
 
- 
setSummaryRowDataSourcepublic ListGrid setSummaryRowDataSource(DataSource summaryRowDataSource) throws IllegalStateException IfshowGridSummaryis true, by default summary values are calculated on the client based on the current data-set for the grid (seegetGridSummary()andgetGridSummaryFunction()).In some cases however it may make sense to calculate summary values on the server and retrieve them via a dataSource fetch. If set, this property specifies a dataSource to fetch against for the summary row. The fetch may be further customized via summaryRowCriteriaandsummaryRowFetchRequestProperties. Note that ifmaxSummaryRowRecordsis specified this will be passed to the server as theDSRequest.endRowfor the summaryRowFetchRequest. Developers may modify this property in order to display multiple summaryRowRecords from a summaryRowDataSource fetchNote that specifying a summaryRowDataSourcecompletely bypasses the standard client-side grid summary calculation logic.Note : This is an advanced setting - Parameters:
- summaryRowDataSource- New summaryRowDataSource value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getSummaryRowDataSourceIfshowGridSummaryis true, by default summary values are calculated on the client based on the current data-set for the grid (seegetGridSummary()andgetGridSummaryFunction()).In some cases however it may make sense to calculate summary values on the server and retrieve them via a dataSource fetch. If set, this property specifies a dataSource to fetch against for the summary row. The fetch may be further customized via summaryRowCriteriaandsummaryRowFetchRequestProperties. Note that ifmaxSummaryRowRecordsis specified this will be passed to the server as theDSRequest.endRowfor the summaryRowFetchRequest. Developers may modify this property in order to display multiple summaryRowRecords from a summaryRowDataSource fetchNote that specifying a summaryRowDataSourcecompletely bypasses the standard client-side grid summary calculation logic.- Returns:
- Current summaryRowDataSource value. Default value is null
 
- 
setSummaryRowFetchRequestPropertiesIfshowGridSummaryis true, and asummaryRowDataSourceis specified this property may be used to customize the fetch request used when retrieving summary data to show in the summary row. An example use case might be specifying aDSRequest.operationIdto perform a custom fetch operation which retrieved only summary values based on criteria.Note that DSRequest.startRowandDSRequest.endRowwill be configured to only request the firstmaxSummaryRowRecordsmatches if the criteria matches multiple records - though typically a properly configured summary fetch operation will only return a single record, or an expected fixed number of records if multiple row summary values per field are to be displayed.Note : This is an advanced setting - Parameters:
- summaryRowFetchRequestProperties- New summaryRowFetchRequestProperties value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSummaryRowFetchRequestPropertiesIfshowGridSummaryis true, and asummaryRowDataSourceis specified this property may be used to customize the fetch request used when retrieving summary data to show in the summary row. An example use case might be specifying aDSRequest.operationIdto perform a custom fetch operation which retrieved only summary values based on criteria.Note that DSRequest.startRowandDSRequest.endRowwill be configured to only request the firstmaxSummaryRowRecordsmatches if the criteria matches multiple records - though typically a properly configured summary fetch operation will only return a single record, or an expected fixed number of records if multiple row summary values per field are to be displayed.- Returns:
- Current summaryRowFetchRequestProperties value. Default value is null
- See Also:
 
- 
setSummaryRowHeightDefault height for thesummary row autoChild. Note that this height is a minimum - the summary row hasautoFitDataset to "vertical" so if multiple rows are visible in the grid summary, the summaryRow component will expand to accommodate them.- Parameters:
- summaryRowHeight- New summaryRowHeight value. Default value is 20
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getSummaryRowHeightpublic int getSummaryRowHeight()Default height for thesummary row autoChild. Note that this height is a minimum - the summary row hasautoFitDataset to "vertical" so if multiple rows are visible in the grid summary, the summaryRow component will expand to accommodate them.- Returns:
- Current summaryRowHeight value. Default value is 20
 
- 
setSummaryRowStyle- Parameters:
- summaryRowStyle- New summaryRowStyle value. Default value is "gridSummaryCell"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getSummaryRowStylebaseStylefor thesummaryRow- Returns:
- Current summaryRowStyle value. Default value is "gridSummaryCell"
- See Also:
 
- 
setTableRowStyleThe style to apply to <TR> tags in this grid's table. Useful for applying spacing or a custom border between records in the grid.This is an advanced capability and care should be taken not to use CSS that applies sizes or other settings that could cause sizing/rendering issues when used in conjunction with certain other features, such as virtualScrolling. For example, the style should apply box-sizing: border-box; to ensure that settings like border and padding don't change the size of row elements. In some cases, the style will also need to apply display: inline-block; for CSS changes to take effect - this is because the default display setting for <TR> elements, table-row, has limited styling support.Note : This is an advanced setting - Parameters:
- tableRowStyle- New tableRowStyle value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getTableRowStyleThe style to apply to <TR> tags in this grid's table. Useful for applying spacing or a custom border between records in the grid.This is an advanced capability and care should be taken not to use CSS that applies sizes or other settings that could cause sizing/rendering issues when used in conjunction with certain other features, such as virtualScrolling. For example, the style should apply box-sizing: border-box; to ensure that settings like border and padding don't change the size of row elements. In some cases, the style will also need to apply display: inline-block; for CSS changes to take effect - this is because the default display setting for <TR> elements, table-row, has limited styling support.- Returns:
- Current tableRowStyle value. Default value is null
- See Also:
 
- 
setTallBaseStyle"Tall" baseStyle for this listGrid. Only applies ifbaseStyleis set to null.If baseStyleis unset, this property will be used as a base cell style unless the grid is showing fixed height rows with a specified cellHeight that matchesnormalCellHeight, in which casenormalBaseStylewill be used. Note that in Internet Explorer iffastCellUpdatesis true,tallBaseStylewill also be used even if the cellHeight matches the specifiednormalCellHeightfor the grid.See CellStyleSuffixesfor details on how stateful suffixes are combined with the base style to generate stateful cell styles.- Parameters:
- tallBaseStyle- New tallBaseStyle value. Default value is "cell"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getTallBaseStyle"Tall" baseStyle for this listGrid. Only applies ifbaseStyleis set to null.If baseStyleis unset, this property will be used as a base cell style unless the grid is showing fixed height rows with a specified cellHeight that matchesnormalCellHeight, in which casenormalBaseStylewill be used. Note that in Internet Explorer iffastCellUpdatesis true,tallBaseStylewill also be used even if the cellHeight matches the specifiednormalCellHeightfor the grid.See CellStyleSuffixesfor details on how stateful suffixes are combined with the base style to generate stateful cell styles.- Returns:
- Current tallBaseStyle value. Default value is "cell"
- See Also:
 
- 
setTouchScrollRedrawDelayWhile scrolling an incrementally rendered grid, using the inertial scrolling, time in milliseconds to wait before redrawing, after the last touchScroll by the user. If not specifiedscrollRedrawDelaywill be used as a default for both drag scrolling and touch scrolling.Note that if specified, this value will typically be larger than scrollRedrawDelay.See also GridRenderer.instantScrollTrackRedrawfor cases where this delay is skipped.- Parameters:
- touchScrollRedrawDelay- New touchScrollRedrawDelay value. Default value is 0
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getTouchScrollRedrawDelayWhile scrolling an incrementally rendered grid, using the inertial scrolling, time in milliseconds to wait before redrawing, after the last touchScroll by the user. If not specifiedscrollRedrawDelaywill be used as a default for both drag scrolling and touch scrolling.Note that if specified, this value will typically be larger than scrollRedrawDelay.See also GridRenderer.instantScrollTrackRedrawfor cases where this delay is skipped.- Returns:
- Current touchScrollRedrawDelay value. Default value is 0
 
- 
setTrackerImageDefault image to use for the dragTracker when things are dragged within or out of this list. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.Note : This is an advanced setting - Parameters:
- trackerImage- New trackerImage value. Default value is {...}
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
- 
- setDragTrackerMode(com.smartgwt.client.types.DragTrackerMode)
- com.smartgwt.client.widgets.grid.ListGrid#getDragTrackerIcon
- SCImgURL
 
 
- 
getTrackerImageDefault image to use for the dragTracker when things are dragged within or out of this list. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.- Returns:
- Current trackerImage value. Default value is {...}
- See Also:
- 
- getDragTrackerMode()
- com.smartgwt.client.widgets.grid.ListGrid#getDragTrackerIcon
- SCImgURL
 
 
- 
setTrackerImageDefault image to use for the dragTracker when things are dragged within or out of this list. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.Note : This is an advanced setting - Parameters:
- trackerImage- New trackerImage value. Default value is {...}
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
- 
- setDragTrackerMode(com.smartgwt.client.types.DragTrackerMode)
- com.smartgwt.client.widgets.grid.ListGrid#getDragTrackerIcon
- SCImgURL
 
 
- 
getTrackerImageAsImgHTMLPropertiesDefault image to use for the dragTracker when things are dragged within or out of this list. Can be either a regularSCImgURLsrc, or anImgHTMLPropertiesobject.- Returns:
- Current trackerImage value. Default value is {...}
- See Also:
- 
- getDragTrackerMode()
- com.smartgwt.client.widgets.grid.ListGrid#getDragTrackerIcon
- SCImgURL
 
 
- 
setUnfreezeFieldTextIf we're showing aheaderContextMenufor this grid andthis.canFreezeFieldsis true, this string will be shown as the title for the menu item to unfreeze a currently frozen field.This is a dynamic string - text within ${...}will be evaluated as JS code when the message is displayed, withtitleavailable as a variable containing the field title.Default value returns "Unfreeze " + the field's summary title. Note : This is an advanced setting - Parameters:
- unfreezeFieldText- New unfreezeFieldText value. Default value is "Unfreeze ${title}"
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getUnfreezeFieldTextIf we're showing aheaderContextMenufor this grid andthis.canFreezeFieldsis true, this string will be shown as the title for the menu item to unfreeze a currently frozen field.This is a dynamic string - text within ${...}will be evaluated as JS code when the message is displayed, withtitleavailable as a variable containing the field title.Default value returns "Unfreeze " + the field's summary title. - Returns:
- Current unfreezeFieldText value. Default value is "Unfreeze ${title}"
- See Also:
 
- 
setUngroupTextIf we're showing aheaderContextMenufor this grid, andthis.isGroupedis true, this attribute will be shown as the title for the menu item to ungroup the grid.- Parameters:
- ungroupText- New ungroupText value. Default value is "Ungroup"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getUngroupTextIf we're showing aheaderContextMenufor this grid, andthis.isGroupedis true, this attribute will be shown as the title for the menu item to ungroup the grid.- Returns:
- Current ungroupText value. Default value is "Ungroup"
 
- 
setUnknownRowCountDisplayValueValue to return fromgetFormattedRowCount()when the row count is unknown- Parameters:
- unknownRowCountDisplayValue- New unknownRowCountDisplayValue value. Default value is "many"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getUnknownRowCountDisplayValueValue to return fromgetFormattedRowCount()when the row count is unknown- Returns:
- Current unknownRowCountDisplayValue value. Default value is "many"
 
- 
setUnremoveIconWhencanRemoveRecordsis enabled, this icon will be shown in the auto generated field fro removing records if the record has been marked as removed viamarkRecordRemoved(). At this point, clicking on the icon will unmark the record as removed.- Parameters:
- unremoveIcon- New unremoveIcon value. Default value is "[SKIN]/actions/undo.png"
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getUnremoveIconWhencanRemoveRecordsis enabled, this icon will be shown in the auto generated field fro removing records if the record has been marked as removed viamarkRecordRemoved(). At this point, clicking on the icon will unmark the record as removed.- Returns:
- Current unremoveIcon value. Default value is "[SKIN]/actions/undo.png"
- See Also:
 
- 
setUpdateSummariesDuringEditingShould thesummary roworgroup summariesbe updated during editing of grid records? This can be set false to improve performance when a large number ofListGridFieldsorDataSourceFieldsare present for the grid.Note that summaries will always be updated when the edits are saved, so to avoid recalculation overhead when a row or cell edit is completed, you must also set autoSaveEdits: false. Summaries will then be updated upon your manual save, such assaveAllEdits().- Parameters:
- updateSummariesDuringEditing- New updateSummariesDuringEditing value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getUpdateSummariesDuringEditingpublic boolean getUpdateSummariesDuringEditing()Should thesummary roworgroup summariesbe updated during editing of grid records? This can be set false to improve performance when a large number ofListGridFieldsorDataSourceFieldsare present for the grid.Note that summaries will always be updated when the edits are saved, so to avoid recalculation overhead when a row or cell edit is completed, you must also set autoSaveEdits: false. Summaries will then be updated upon your manual save, such assaveAllEdits().- Returns:
- Current updateSummariesDuringEditing value. Default value is true
- See Also:
 
- 
setUseAdvancedCriteriaShould thefilter-editorin this grid always produceAdvancedCriteria?- Parameters:
- useAdvancedCriteria- New useAdvancedCriteria value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getUseAdvancedCriteriaShould thefilter-editorin this grid always produceAdvancedCriteria?- Returns:
- Current useAdvancedCriteria value. Default value is null
- See Also:
 
- 
setUseAdvancedFieldPickerpublic ListGrid setUseAdvancedFieldPicker(Boolean useAdvancedFieldPicker) throws IllegalStateException If set to true, an advanced field picker based on theFieldPickerwill be shown instead of the column picker submenu if there are more fields in the grid thanadvancedFieldPickerThreshold.When there are large numbers of available fields, the FieldPicker-based interface is more usable for both defining visible fields and defining field order. - Parameters:
- useAdvancedFieldPicker- New useAdvancedFieldPicker value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getUseAdvancedFieldPickerIf set to true, an advanced field picker based on theFieldPickerwill be shown instead of the column picker submenu if there are more fields in the grid thanadvancedFieldPickerThreshold.When there are large numbers of available fields, the FieldPicker-based interface is more usable for both defining visible fields and defining field order. - Returns:
- Current useAdvancedFieldPicker value. Default value is false
 
- 
setUseCellRollOversAre rollovers cell-level or row-level?- Parameters:
- useCellRollOvers- New useCellRollOvers value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getUseCellRollOversAre rollovers cell-level or row-level?- Returns:
- Current useCellRollOvers value. Default value is null
 
- 
setUseClientFilteringCauses this grid to filter its data on the client where possible, eliminating trips to the server when criteria becomes more restrictive, since the filter must apply to data which is already on the client.This attribute is a shortcut to setting useClientFilteringon the grid'sdataPropertiesand overrides any value set there.While the default value is null, the effective default is true, since useClientFilteringis true onResultSet.Note that using client-filtering can avoid up to 90% of the most expensive database requests, so it's critical in most cases to leave it switched on. See the sample here. In cases where client-filtering alone is not sufficient, note the following: -  You can easily prevent client-side
 filtering for a given field by setting      filterOn:"serverOnly", if you can't replicate the filtering on the client.
-  an override of ResultSet.compareCriteria()can be used to handle any other, more complicated differences in client- vs server-side filtering that may arise for a single grid
- a custom search operator can be used if you want to create custom filtering behavior which applies to a variety of different grids & DataSources
 - Parameters:
- useClientFiltering- New useClientFiltering value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
-  You can easily prevent client-side
 filtering for a given field by setting      
- 
getUseClientFilteringCauses this grid to filter its data on the client where possible, eliminating trips to the server when criteria becomes more restrictive, since the filter must apply to data which is already on the client.This attribute is a shortcut to setting useClientFilteringon the grid'sdataPropertiesand overrides any value set there.While the default value is null, the effective default is true, since useClientFilteringis true onResultSet.Note that using client-filtering can avoid up to 90% of the most expensive database requests, so it's critical in most cases to leave it switched on. See the sample here. In cases where client-filtering alone is not sufficient, note the following: -  You can easily prevent client-side
 filtering for a given field by setting      filterOn:"serverOnly", if you can't replicate the filtering on the client.
-  an override of ResultSet.compareCriteria()can be used to handle any other, more complicated differences in client- vs server-side filtering that may arise for a single grid
- a custom search operator can be used if you want to create custom filtering behavior which applies to a variety of different grids & DataSources
 - Returns:
- Current useClientFiltering value. Default value is null
 
-  You can easily prevent client-side
 filtering for a given field by setting      
- 
setUseCopyPasteShortcutsFor ListGrids withcanSelectCells:true, enabling this property will cause the listGrid to intercept standard browser copy/paste shortcut keys and perform the following behavior.- ctrl+c: retrieve selected cell data      via a call to getSelectedCellData(), and temporarily store it in memory in a "clipboard" variable.
- ctrl+v: apply any previously copied data stored in the "clipboard"
 variable      into the current grid selection via applyCellData().
- ctrl+d: copy cell values from top row of selected cells down to all rows
- ctrl+r: copy cell values from left column of selected cells right to all columns
 If this property is unset, default behavior will enable these shortcuts if canSelectCellsis true, andcanDragSelectTextandselectCellTextOnClickare both false, so as to minimize the chances of interfering with native copy and paste of cell content.- Parameters:
- useCopyPasteShortcuts- New useCopyPasteShortcuts value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
 
- ctrl+c: retrieve selected cell data      via a call to 
- 
getUseCopyPasteShortcutsFor ListGrids withcanSelectCells:true, enabling this property will cause the listGrid to intercept standard browser copy/paste shortcut keys and perform the following behavior.- ctrl+c: retrieve selected cell data      via a call to getSelectedCellData(), and temporarily store it in memory in a "clipboard" variable.
- ctrl+v: apply any previously copied data stored in the "clipboard"
 variable      into the current grid selection via applyCellData().
- ctrl+d: copy cell values from top row of selected cells down to all rows
- ctrl+r: copy cell values from left column of selected cells right to all columns
 If this property is unset, default behavior will enable these shortcuts if canSelectCellsis true, andcanDragSelectTextandselectCellTextOnClickare both false, so as to minimize the chances of interfering with native copy and paste of cell content.- Returns:
- Current useCopyPasteShortcuts value. Default value is null
 
- ctrl+c: retrieve selected cell data      via a call to 
- 
setUseMultiSelectForFilterValueMapsIfshowFilterEditoris true, when creating a SelectItem for editing criteria for a field with a ValueMap, should the SelectItem default tomultiple:true?This overrides SearchForm.useMultiSelectForValueMapson the filterEditor's edit form.Note : This is an advanced setting - Parameters:
- useMultiSelectForFilterValueMaps- New useMultiSelectForFilterValueMaps value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getUseMultiSelectForFilterValueMapspublic boolean getUseMultiSelectForFilterValueMaps()IfshowFilterEditoris true, when creating a SelectItem for editing criteria for a field with a ValueMap, should the SelectItem default tomultiple:true?This overrides SearchForm.useMultiSelectForValueMapson the filterEditor's edit form.- Returns:
- Current useMultiSelectForFilterValueMaps value. Default value is true
 
- 
setUseRemoteValidatorsIfsaveLocallyis specified, but this grid is bound to a DataSource which includes remote field validators, by default edits will be saved synchronously and these validators will not be executed.
 Set this property totrueto ensure these remote validators are called when saving edits in saveLocally mode. Note that since these remote validators need to run on the server, saving with this property set is asynchronous, even though the data that ultimately gets updated is already present on the client.Note : This is an advanced setting - Parameters:
- useRemoteValidators- New useRemoteValidators value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getUseRemoteValidatorsIfsaveLocallyis specified, but this grid is bound to a DataSource which includes remote field validators, by default edits will be saved synchronously and these validators will not be executed.
 Set this property totrueto ensure these remote validators are called when saving edits in saveLocally mode. Note that since these remote validators need to run on the server, saving with this property set is asynchronous, even though the data that ultimately gets updated is already present on the client.- Returns:
- Current useRemoteValidators value. Default value is null
- See Also:
 
- 
setUseRowSpanStylingEnables various styling behaviors that potentially make sense whengetRowSpan()has been overridden to introduce spanning cells, and spanning is largest on the left and smaller as cells go to the right. Specifically:-  computes banded stylingbased on the span of the cell in the left-most column
-  enables cell-level selection, includingcell-level rolloverstyling
-  enables row-span-sensitive cell selection.  See also RowSpanSelectionModefor available behaviors
 Because this setting enables canSelectCells, it is incompatible with any APIs that expect a record-oriented data model.Because this setting only makes sense when row spanning decreases from the first column to the last, it has unspecified behavior with canReorderFields.- Parameters:
- useRowSpanStyling- New useRowSpanStyling value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
-  computes 
- 
getUseRowSpanStylingEnables various styling behaviors that potentially make sense whengetRowSpan()has been overridden to introduce spanning cells, and spanning is largest on the left and smaller as cells go to the right. Specifically:-  computes banded stylingbased on the span of the cell in the left-most column
-  enables cell-level selection, includingcell-level rolloverstyling
-  enables row-span-sensitive cell selection.  See also RowSpanSelectionModefor available behaviors
 Because this setting enables canSelectCells, it is incompatible with any APIs that expect a record-oriented data model.Because this setting only makes sense when row spanning decreases from the first column to the last, it has unspecified behavior with canReorderFields.- Returns:
- Current useRowSpanStyling value. Default value is null
 
-  computes 
- 
setValidateByCellWhether client-side validation checks should be performed when the user moves between cells in the current edit row. If unset, defaults toeditByCell.Note that validation always occurs when a row is to be saved, so setting saveByCell:true forces validation on cell transitions. To completely disable automatic validation, setneverValidate:true.- Parameters:
- validateByCell- New validateByCell value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getValidateByCellWhether client-side validation checks should be performed when the user moves between cells in the current edit row. If unset, defaults toeditByCell.Note that validation always occurs when a row is to be saved, so setting saveByCell:true forces validation on cell transitions. To completely disable automatic validation, setneverValidate:true.- Returns:
- Current validateByCell value. Default value is null
- See Also:
 
- 
setValidateOnChangeIf true, validation will be performed on each edited cell when each editor's "change" handler is fired.- Parameters:
- validateOnChange- New validateOnChange value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getValidateOnChangeIf true, validation will be performed on each edited cell when each editor's "change" handler is fired.- Returns:
- Current validateOnChange value. Default value is null
- See Also:
 
- 
setValueIconHeightHeight for value icons for this listGrid. OverridesvalueIconSize. Can be overridden at the field level- Parameters:
- valueIconHeight- New valueIconHeight value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getValueIconHeightHeight for value icons for this listGrid. OverridesvalueIconSize. Can be overridden at the field level- Returns:
- Current valueIconHeight value. Default value is null
- See Also:
 
- 
setValueIconLeftPaddingHow much padding should there be on the left of valueIcons by default Can be overridden at the field level- Parameters:
- valueIconLeftPadding- New valueIconLeftPadding value. Default value is 2
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getValueIconLeftPaddingpublic int getValueIconLeftPadding()How much padding should there be on the left of valueIcons by default Can be overridden at the field level- Returns:
- Current valueIconLeftPadding value. Default value is 2
- See Also:
- 
- com.smartgwt.client.widgets.grid.ListGridField#getValueIcons
- ImageColumns overview and related methods
 
 
- 
setValueIconRightPaddingHow much padding should there be on the right of valueIcons by default- Parameters:
- valueIconRightPadding- New valueIconRightPadding value. Default value is 2
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getValueIconRightPaddingpublic int getValueIconRightPadding()How much padding should there be on the right of valueIcons by default- Returns:
- Current valueIconRightPadding value. Default value is 2
- See Also:
- 
- com.smartgwt.client.widgets.grid.ListGridField#getValueIcons
- ImageColumns overview and related methods
 
 
- 
setValueIconSizeDefault width and height of value icons for this ListGrid. Can be overridden at the listGrid level via explicitvalueIconWidthandvalueIconHeight, or at the field level viaListGridField.valueIconSize,ListGridField.valueIconWidthand {ListGridField.valueIconHeight}- Parameters:
- valueIconSize- New valueIconSize value. Default value is 16
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getValueIconSizepublic int getValueIconSize()Default width and height of value icons for this ListGrid. Can be overridden at the listGrid level via explicitvalueIconWidthandvalueIconHeight, or at the field level viaListGridField.valueIconSize,ListGridField.valueIconWidthand {ListGridField.valueIconHeight}- Returns:
- Current valueIconSize value. Default value is 16
- See Also:
 
- 
setValueIconWidthWidth for value icons for this listGrid. OverridesvalueIconSize. Can be overridden at the field level- Parameters:
- valueIconWidth- New valueIconWidth value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getValueIconWidthWidth for value icons for this listGrid. OverridesvalueIconSize. Can be overridden at the field level- Returns:
- Current valueIconWidth value. Default value is null
- See Also:
 
- 
setViewStateInitial view state may be provided for the listGrid at init time. To set view state at runtime, usesetViewState().
 SeeListGridViewStatefor details of what is included in the viewState for a ListGrid by default.View state is a composite object containing various more granular states such as fieldState,current filter criteria, etc. As such it is not necessary to specificify fieldState, etc. in addition to viewState at init time, but if both are provided the specific states (fieldState, etc) will have priority.Note: For Smart GWT Pro users, the Saved Search subsystemprovides a sophisticated, out of the box set of capabilities and user-interface components for users to store and apply multiple named views or "saved searches". SeecanSaveSearchesfor how to enable menu options to save searches in grids. Note that each saved search includes thefull view statefor the grid by default.
 If this method is called after the component has been drawn/initialized: Reset this grid's view state to match theListGridViewStateobject passed in.
 Used to restore previous state retrieved from the grid by a call togetViewState().- Parameters:
- viewState- Object describing the desired view state for the grid. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getViewStateInitial view state may be provided for the listGrid at init time. To set view state at runtime, usesetViewState().
 SeeListGridViewStatefor details of what is included in the viewState for a ListGrid by default.View state is a composite object containing various more granular states such as fieldState,current filter criteria, etc. As such it is not necessary to specificify fieldState, etc. in addition to viewState at init time, but if both are provided the specific states (fieldState, etc) will have priority.Note: For Smart GWT Pro users, the Saved Search subsystemprovides a sophisticated, out of the box set of capabilities and user-interface components for users to store and apply multiple named views or "saved searches". SeecanSaveSearchesfor how to enable menu options to save searches in grids. Note that each saved search includes thefull view statefor the grid by default.- Returns:
- Returns a snapshot of the current view state of this ListGrid.
 This includes the field, sort, hilite, group, and selected state of the grid, its criteria and, when canShowFilterEditor is true, whether the filter-editor is visible, returned as a string representation of aListGridViewStateobject.
 This string can be stored over page-reloads (for example, inbrowser local storageor as field value in a record stored to aDataSource) and then reapplied to the grid viasetViewState()later to reset the grid to to the current state (assuming the same data / fields are present).To detect when view state changes, developers may use the viewStateChanged event.Note that the autoPersistViewStatefeature will automatically persist the view state to Offline storage and reapply when the grid is reloaded, without the need to invoke this method explicitly. Default value is null
- See Also:
 
- 
setVirtualScrollingWhen incremental rendering is switched on and there are variable record heights, the virtual scrolling mechanism manages the differences in scroll height calculations due to the unknown sizes of un-rendered rows to make the scrollbar and viewport appear correctly.When the virtualScrollingsystem is active, the last scroll position scrolls the last record to the top of the viewport, leaving blank space underneath. This is a necessary and unavoidable consequence of mapping the position of the scrollbar thumb to an unknown amount of remaining space without being able to know the total scrollable area in advance (since record heights vary).virtualScrolling is switched on automatically when fixedRecordHeightsis false and also when using therecordComponents subsystem, as recordComponents expand the rows that contain them. This flag should be manually enabled when callingaddEmbeddedComponent()if embedded components can cause record sizes to expand beyond specified cellHeight.virtualScrolling is also automatically enabled when canExpandRecordsis true to handle the fact that expanded rows may render at variable heights.Note : This is an advanced setting - Parameters:
- virtualScrolling- New virtualScrolling value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getVirtualScrollingWhen incremental rendering is switched on and there are variable record heights, the virtual scrolling mechanism manages the differences in scroll height calculations due to the unknown sizes of un-rendered rows to make the scrollbar and viewport appear correctly.When the virtualScrollingsystem is active, the last scroll position scrolls the last record to the top of the viewport, leaving blank space underneath. This is a necessary and unavoidable consequence of mapping the position of the scrollbar thumb to an unknown amount of remaining space without being able to know the total scrollable area in advance (since record heights vary).virtualScrolling is switched on automatically when fixedRecordHeightsis false and also when using therecordComponents subsystem, as recordComponents expand the rows that contain them. This flag should be manually enabled when callingaddEmbeddedComponent()if embedded components can cause record sizes to expand beyond specified cellHeight.virtualScrolling is also automatically enabled when canExpandRecordsis true to handle the fact that expanded rows may render at variable heights.- Returns:
- Current virtualScrolling value. Default value is null
- See Also:
 
- 
setWaitForSaveIf this is an editable listGrid, this property determines whether the user will be able to dismiss the edit form, or navigate to another cell while the save is in process (before the asynchronous server response returns).Note : This is an advanced setting - Parameters:
- waitForSave- New waitForSave value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getWaitForSaveIf this is an editable listGrid, this property determines whether the user will be able to dismiss the edit form, or navigate to another cell while the save is in process (before the asynchronous server response returns).- Returns:
- Current waitForSave value. Default value is false
- See Also:
 
- 
setWarnOnRemovalIfcanRemoveRecordsis true, when the user clicks the remove icon for some record, should we show a warning message (defined aswarnOnRemovalMessage) and allow the user to cancel removal?- Parameters:
- warnOnRemoval- New warnOnRemoval value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getWarnOnRemovalIfcanRemoveRecordsis true, when the user clicks the remove icon for some record, should we show a warning message (defined aswarnOnRemovalMessage) and allow the user to cancel removal?- Returns:
- Current warnOnRemoval value. Default value is false
 
- 
setWarnOnRemovalMessageWarning message to show the user on a click on the 'remove' icon ifcanRemoveRecordsis true andwarnOnRemovalis true.- Parameters:
- warnOnRemovalMessage- New warnOnRemovalMessage value. Default value is "Are you sure you want to delete this record?"
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getWarnOnRemovalMessageWarning message to show the user on a click on the 'remove' icon ifcanRemoveRecordsis true andwarnOnRemovalis true.- Returns:
- Current warnOnRemovalMessage value. Default value is "Are you sure you want to delete this record?"
 
- 
setWarnOnUnmappedValueFieldChangeIf a field hasListGridField.displayFieldspecified and has noListGridField.optionDataSource, this field will display the value from thedisplayFieldof each record by default (for more on this behavior seeListGridField.optionDataSource).If such a field is editable, changing the edit value for the field on some record, without updating the edit value for the associated display field on the same record would mean the user would continue to see the unchanged display field value. Developers can resolve this situation by programmatically setting an edit value for the display field as well as the data field, or avoid it by specifying an optionDataSource and ensuring autoFetchDisplayMapis true, or setting an explicit valueMap for the field.By default, when the edit value on a field with a specified displayField and no optionDataSource is set, we log a warning to notify the developer. This warning may be disabled by setting warnOnUnmappedValueFieldChangetofalse.Note: There are actually a couple of cases in which the system will automatically derive a new display-field value and apply it to the record: - If the edit value was changed by a user actually editing the record (rather than a programmatic call to setEditValue()), and the edit-item had a valueMap or optionDataSource set, we automatically pick up the display value from that item and store it as an edit-value for the displayField of the record
- If the listGrid has a loaded record in its data set whose valueField value matches the edit value for the valueField, we automatically apply the displayField value from that record as an edit value for the displayField on the newly edited record.
 Note : This is an advanced setting - Parameters:
- warnOnUnmappedValueFieldChange- New warnOnUnmappedValueFieldChange value. Default value is true
- Returns:
- ListGridinstance, for chaining setter calls
 
- 
getWarnOnUnmappedValueFieldChangeIf a field hasListGridField.displayFieldspecified and has noListGridField.optionDataSource, this field will display the value from thedisplayFieldof each record by default (for more on this behavior seeListGridField.optionDataSource).If such a field is editable, changing the edit value for the field on some record, without updating the edit value for the associated display field on the same record would mean the user would continue to see the unchanged display field value. Developers can resolve this situation by programmatically setting an edit value for the display field as well as the data field, or avoid it by specifying an optionDataSource and ensuring autoFetchDisplayMapis true, or setting an explicit valueMap for the field.By default, when the edit value on a field with a specified displayField and no optionDataSource is set, we log a warning to notify the developer. This warning may be disabled by setting warnOnUnmappedValueFieldChangetofalse.Note: There are actually a couple of cases in which the system will automatically derive a new display-field value and apply it to the record: - If the edit value was changed by a user actually editing the record (rather than a programmatic call to setEditValue()), and the edit-item had a valueMap or optionDataSource set, we automatically pick up the display value from that item and store it as an edit-value for the displayField of the record
- If the listGrid has a loaded record in its data set whose valueField value matches the edit value for the valueField, we automatically apply the displayField value from that record as an edit value for the displayField on the newly edited record.
 - Returns:
- Current warnOnUnmappedValueFieldChange value. Default value is true
 
- 
setWrapCellsShould content within cells be allowed to wrap?Even if content is allowed to wrap, if fixedRecordHeightsis set, the content will be clipped off at the cell boundary. Either set a larger, fixedcellHeightto reveal more content, or setfixedRecordHeightsto false to allow auto-sizing.
 If this method is called after the component has been drawn/initialized: Setter forwrapCellsNote : This is an advanced setting - Parameters:
- wrapCells- New wrapCells value. Default value is false
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
getWrapCellsShould content within cells be allowed to wrap?Even if content is allowed to wrap, if fixedRecordHeightsis set, the content will be clipped off at the cell boundary. Either set a larger, fixedcellHeightto reveal more content, or setfixedRecordHeightsto false to allow auto-sizing.- Returns:
- Current wrapCells value. Default value is false
- See Also:
 
- 
setWrapHeaderSpanTitlesIfHeaderSpan.wrapis not explicitly set, should fields wrap? If autofitting, see the docs on that property for the details of how the minimum width for a field is determined.- Parameters:
- wrapHeaderSpanTitles- New wrapHeaderSpanTitles value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getWrapHeaderSpanTitlesIfHeaderSpan.wrapis not explicitly set, should fields wrap? If autofitting, see the docs on that property for the details of how the minimum width for a field is determined.- Returns:
- Current wrapHeaderSpanTitles value. Default value is null
- See Also:
 
- 
setWrapHeaderTitlesIfListGridField.wrapis not explicitly set, should fields wrap? If autofitting, see the docs on that property for the details of how the minimum width for a field is determined.- Parameters:
- wrapHeaderTitles- New wrapHeaderTitles value. Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getWrapHeaderTitlesIfListGridField.wrapis not explicitly set, should fields wrap? If autofitting, see the docs on that property for the details of how the minimum width for a field is determined.- Returns:
- Current wrapHeaderTitles value. Default value is null
- See Also:
 
- 
addDataPerform a DataSource "add" operation to add new records to this component's DataSource.- Parameters:
- newRecord- new record
- See Also:
 
- 
addData- See Also:
 
- 
addDataPerform a DataSource "add" operation to add new records to this component's DataSource.- Parameters:
- newRecord- new record
- callback- method to call on operation completion
- requestProperties- additional properties to set on the DSRequest that will be issued
- See Also:
 
- 
addEmbeddedComponentAttaches the component to the provided record. Ifpositionis specified as"within"Canvas.snapToandCanvas.snapOffsetLeft,Canvas.snapOffsetTopmay be set to specify where the component will render within the cell or record. If unset, for components embedded within a record we will default to embedding at the top/left coordinate, and for components embedded within a cell, we will respect the align / valign properties for the cell in question. Any percentage sizing will be interpreted as percentage of row size.Otherwise it will appear to be embedded within the record, underneath the field values. Embedded components become children of the grid and will stay attached to a record through scrolling, sorting and other operations that cause records to shift position. If positionis set to"expand", embedded components may offer a resize interface, eg, by settingcanDragResize:true, and the grid will react accordingly, growing or shrinking the record to match the embedded component's new extents.Embedded components can be explicitly removed with removeEmbeddedComponent().If a record is removed from the dataset or is replaced in the dataset, for example, it is eliminated through filtering (removes record) or is successfully edited in a databound grid (replaces record), the component is cleared but not logically removed from the grid. It is the responsibility of code that sets up the embedded component to remove it if the record is removed from the dataSet. When embedding components will result in variable height records, you should switch on virtualScrolling.- Parameters:
- component- component to embed
- record- record to attach the component to
 
- 
addEmbeddedComponent
- 
addEmbeddedComponentpublic void addEmbeddedComponent(Canvas component, ListGridRecord record, Integer rowNum, Integer colNum) 
- 
addEmbeddedComponentpublic void addEmbeddedComponent(Canvas component, ListGridRecord record, Integer rowNum, Integer colNum, EmbeddedPosition position) Attaches the component to the provided record. Ifpositionis specified as"within"Canvas.snapToandCanvas.snapOffsetLeft,Canvas.snapOffsetTopmay be set to specify where the component will render within the cell or record. If unset, for components embedded within a record we will default to embedding at the top/left coordinate, and for components embedded within a cell, we will respect the align / valign properties for the cell in question. Any percentage sizing will be interpreted as percentage of row size.Otherwise it will appear to be embedded within the record, underneath the field values. Embedded components become children of the grid and will stay attached to a record through scrolling, sorting and other operations that cause records to shift position. If positionis set to"expand", embedded components may offer a resize interface, eg, by settingcanDragResize:true, and the grid will react accordingly, growing or shrinking the record to match the embedded component's new extents.Embedded components can be explicitly removed with removeEmbeddedComponent().If a record is removed from the dataset or is replaced in the dataset, for example, it is eliminated through filtering (removes record) or is successfully edited in a databound grid (replaces record), the component is cleared but not logically removed from the grid. It is the responsibility of code that sets up the embedded component to remove it if the record is removed from the dataSet. When embedding components will result in variable height records, you should switch on virtualScrolling.- Parameters:
- component- component to embed
- record- record to attach the component to
- rowNum- rowNum of the record to attach the component to
- colNum- colNum in which to embed the component
- position- positioning with respect to the record or cell (Defaults to "expand").
 
- 
addSortAdds anotherSortSpecifierto this grid's sort configuration and resorts.- Parameters:
- sortSpecifier- A SortSpecifier object indicating an additional field and direction to sort by
 
- 
applyCellDataApplies a set of Records containing coordinate-based data as returned bygetSelectedCellData()and applies the data at the current selection.For consistency with Excel, given a record in the cellData, after the data value with the most negative column index is found, the rest of the values in the record are applied contiguously to the right of it, using the positional data for ordering only. Will only modify cells in the grid which are editable, and changes will be applied as editValues, exactly as though the user had typed the values in (see Grid Editing Overview).See also applyRecordData().- Parameters:
- cellData- list of Records as described above
 
- 
applyRecordDataApplies a list of Records as changes to the current selection.Values found in each of the passed records will be applied to the same-named fields in the Records starting from the top-left of the current selection, in order. Will only modify cells in the grid which are editable, and changes will be applied as editValues, exactly as though the user had typed the values in (see Grid Editing Overview).See also applyCellData().- Parameters:
- recordData- list of Records as described above
 
- 
applySortToDataSort the grid's data to reflect the parameter sortSpecifiers.NOTE: This method is primarily used by setSort(); it is not intended to be called by user code, unless you are implementing a customsetSortHandler). For the normal use case, calling this method directly will fail to execute vital pre-steps. If you are not implementing a custom handler as described above, do not call this method directly - callsetSort()instead.- Parameters:
- sortSpecifiers- Array of- SortSpecifierobjects
 
- 
askForSortpublic void askForSort()Show a dialog to configure the sorting of multiple fields on this component. Calls through toMultiSortDialog.askForSort(), passing this component as the fieldSource and the currentsort-specificationif there is one.The generated multiSortDialog can be customized via multiSortDialogDefaults,multiSortDialogProperties.
- 
autoFitFieldProgrammatically cause a field to auto-fit horizontally to it's contents or title.Does not establish permanent auto-fitting - use setAutoFitWidth()orsetAutoFitFieldWidths()to do so.Note that unlike the ongoing autoFit set up by autoFitFieldWidthsorListGridField.autoFitWidth, any specifiedListGridField.widthwill not be taken as a minimum width - the field may shrink below the current specified width when this method is run. However,ListGridField.minWidthwill be respected.As with autoFitFieldWidths, the auto-fit sizing is determined via theautoFitWidthApproach.- Parameters:
- fieldName-
- Returns:
- new width in pixels
 
- 
autoFitFieldspublic void autoFitFields()Perform a one-time horizontal auto-fit of the fields passed. Fields will be sized to match their contents or title (as specified inautoFitWidthApproach) Does not establish permanent auto-fitting - usesetAutoFitWidth()to do so.Note that unlike the ongoing autoFit set up by autoFitFieldWidthsorListGridField.autoFitWidth, any specifiedListGridField.widthwill not be taken as a minimum width - the field(s) may shrink below the current specified width when this method is run. However,ListGridField.minWidthwill be respected.For information about auto-fitting specific fields, see ListGridField.autoFit.
- 
autoFitFieldsPerform a one-time horizontal auto-fit of the fields passed. Fields will be sized to match their contents or title (as specified inautoFitWidthApproach) Does not establish permanent auto-fitting - usesetAutoFitWidth()to do so.Note that unlike the ongoing autoFit set up by autoFitFieldWidthsorListGridField.autoFitWidth, any specifiedListGridField.widthwill not be taken as a minimum width - the field(s) may shrink below the current specified width when this method is run. However,ListGridField.minWidthwill be respected.For information about auto-fitting specific fields, see ListGridField.autoFit.- Parameters:
- fields- Array of fields to auto fit. If this parameter is not passed, autoFitting will occur on all visible fields.
 
- 
cancelEditingpublic void cancelEditing()Cancel the current edit without saving.- See Also:
 
- 
canEditCellpublic boolean canEditCell(int rowNum, int colNum) Can this cell be edited?The default implementation of canEditCell()respects the various property settings affecting editability:- field.canEditcan be set to disable editing for a field
- If the grid is bound to a dataSource, the canEditFieldAttributevalue on the dataSource field may enable / disable editing
- a record with the recordEditPropertyset to false is not editable
- disabled records are not editable
 canEditCell()as follows:public boolean canEditCell(int rowNum, int colNum) { Record record = this.getRecord(rowNum); String fieldName = this.getFieldName(colNum); if (fieldName.equals("shipDate") && record.getAttribute("orderStatus").equals("complete") { return false; } // use default rules for all other fields return super.canEditCell(rowNum, colNum); };Notes on providing custom implementations: -  In order to allow complete control over editing, canEditCell()is called very frequently. If you see delays on row to row navigation, check that your implementation is efficient
-  If you change the editability of a cell on the fly, for example, during
 ListGrid.editorExit()on another cell, call refreshCell() to show or hide the editor
-  If this ListGrid allows new records to be created, canEditCell()may be called when there is no record available, in which case getRecord() will return null. The values input so far by the user are available viagetEditValues().
 Note: This is an override point. For more information on editing, see the editing overview.- Parameters:
- rowNum- row number for the cell
- colNum- column number of the cell
- Returns:
- Whether to allow editing this cell
- See Also:
 
- 
canExpandRecordIndicates whether a given record or rowNum can be expanded. The default implementation checks the value ofcanExpandRecordsandrecord[.canExpandRecordProperty]Override this method for more specific control over individual record expansion. Note: Rows with no underlying record in the data array - for example newly added edit rows that have not yet been saved - cannot be expanded. - Parameters:
- record- record to work with
- rowNum- rowNum of the record to work with
- Returns:
- true if the record can be expanded
 
- 
canSelectCellpublic boolean canSelectCell(int rowNum, int colNum) IfcanSelectCellsis set totruethen, whenever an end-user or programmatic cell-selection is attempted, this method is called for each cell in the selection. If it returns false, the cell will not be selected.- Parameters:
- rowNum- rowNum being selected
- colNum- colNum being selected
- Returns:
- return false to disallow selection
 
- 
addCellSavedHandlerAdd a cellSaved handler.Fires after user edits have been successfully saved to the server, only for cells where the value was actually modified. If you want immediate notification of a changes before changes has been saved to the server, implement field.change()orfield.changed()instead.You can alternatively use ListGridField.cellChanged()to get notification only of saved changes for a specific field. If both a listGridField and the containing listGrid have a handler for this event, only the handler defined on the field is called.- Specified by:
- addCellSavedHandlerin interface- HasCellSavedHandlers
- Parameters:
- handler- the cellSaved handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellClickHandlerAdd a cellClick handler.Called when a cell receives a click event. Note that returning false from this method will not prevent any specified ListGrid.rowClick()handler from firing.- Specified by:
- addCellClickHandlerin interface- HasCellClickHandlers
- Parameters:
- handler- the cellClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellContextClickHandlerAdd a cellContextClick handler.Called when a cell receives a contextclick event. - Specified by:
- addCellContextClickHandlerin interface- HasCellContextClickHandlers
- Parameters:
- handler- the cellContextClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellDoubleClickHandlerAdd a cellDoubleClick handler.Called when a cell receives a double click event. - Specified by:
- addCellDoubleClickHandlerin interface- HasCellDoubleClickHandlers
- Parameters:
- handler- the cellDoubleClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellErrorIconHoverHandlerAdd a cellErrorIconHover handler.Optional stringMethod to fire when the user hovers over the error icon of a cell with validation errors. The default behavior is to show a hover canvas containing the validation error message text. Call CellErrorIconHoverEvent.cancel()from withinCellErrorIconHoverHandler.onCellErrorIconHover(com.smartgwt.client.widgets.grid.events.CellErrorIconHoverEvent)to suppress this default behavior.- Specified by:
- addCellErrorIconHoverHandlerin interface- HasCellErrorIconHoverHandlers
- Parameters:
- handler- the cellErrorIconHover handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellErrorIconOutHandlerAdd a cellErrorIconOut handler.Optional stringMethod to fire when the mouse moves off the error icon of a cell with validation errors. - Specified by:
- addCellErrorIconOutHandlerin interface- HasCellErrorIconOutHandlers
- Parameters:
- handler- the cellErrorIconOut handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellErrorIconOverHandlerAdd a cellErrorIconOver handler.Optional stringMethod to fire when the mouse moves over the error icon of a cell with validation errors. - Specified by:
- addCellErrorIconOverHandlerin interface- HasCellErrorIconOverHandlers
- Parameters:
- handler- the cellErrorIconOver handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
cellHasChangesIf this listGrid can be edited, this method will return true if the cell passed in has been edited, but the edits have not yet been saved to the ListGrid's data object.- Parameters:
- rowNum- index of row to check for changes
- colNum- index of the col to check for changes
- Returns:
- returns true if the cell has unsaved edits
- See Also:
 
- 
cellHasErrorsGiven a rowNum and a colNum or fieldName, determine whether we currently have stored validation errors for the record/field in question.- Parameters:
- rowNum- index of row to check for validation errors
- fieldID- name of field, or index of column to check for validation errors
- Returns:
- true if we have validation errors for the row/col in question
- See Also:
 
- 
addCellHoverHandlerAdd a cellHover handler.Called when the mouse hovers over a cell if this.canHoveristrue. To suppress the hover text from being shown ifshowHoveristrueforthisor the field, cancel theCellHoverEvent. For example:grid.addCellHoverHandler(new CellHoverHandler() { @Override public void onCellHover(CellHoverEvent event) { if (/* some condition for when to suppress the hover */) { event.cancel(); } } });- Specified by:
- addCellHoverHandlerin interface- HasCellHoverHandlers
- Parameters:
- handler- the cellHover handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellMouseDownHandlerAdd a cellMouseDown handler.Called when a cell receives a mousedown event. - Specified by:
- addCellMouseDownHandlerin interface- HasCellMouseDownHandlers
- Parameters:
- handler- the cellMouseDown handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellMouseUpHandlerAdd a cellMouseUp handler.Called when a cell receives a mouseup event. - Specified by:
- addCellMouseUpHandlerin interface- HasCellMouseUpHandlers
- Parameters:
- handler- the cellMouseUp handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellOutHandlerAdd a cellOut handler.Called when the mouse pointer leaves a cell - Specified by:
- addCellOutHandlerin interface- HasCellOutHandlers
- Parameters:
- handler- the cellOut handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellOverHandlerAdd a cellOver handler.Called when the mouse pointer enters a cell - Specified by:
- addCellOverHandlerin interface- HasCellOverHandlers
- Parameters:
- handler- the cellOver handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellSelectionChangedHandlerAdd a cellSelectionChanged handler.Called when (cell-based) selection changes within this grid. - Specified by:
- addCellSelectionChangedHandlerin interface- HasCellSelectionChangedHandlers
- Parameters:
- handler- the cellSelectionChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addCellValueHoverHandlerAdd a cellValueHover handler.Optional stringMethod to fire when the user hovers over a cell and the value is clipped. If this.showClippedValuesOnHover is true, the default behavior is to show a hover canvas containing the HTML returned by cellValueHoverHTML(). Call CellValueHoverEvent.cancel()from withinCellValueHoverHandler.onCellValueHover(com.smartgwt.client.widgets.grid.events.CellValueHoverEvent)to suppress this default behavior.- Specified by:
- addCellValueHoverHandlerin interface- HasCellValueHoverHandlers
- Parameters:
- handler- the cellValueHover handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
cellValueHoverHTMLReturns the HTML that is displayed by the default cellValueHover handler. Return null or an empty string to cancel the hover.Use setCellValueHoverFormatter()to provide a custom implementation.- Parameters:
- record- cell record as returned by getCellRecord()
- rowNum- row number for the cell
- colNum- column number of the cell
- defaultHTML- the HTML that would have been displayed by default. See- HTMLString
- Returns:
- HTML to be displayed in the hover. If null or an empty string, then the hover is canceled.
 See HTMLString
- See Also:
 
- 
cellValueIsClippedIs the value in a given cell clipped?- Parameters:
- rowNum- row number of the cell
- colNum- column number of the cell
- Returns:
- null if there is no cell at the given row, column; otherwise, whether the value in the specified cell is clipped.
- See Also:
 
- 
chartDataChart the data in this listGrid as a multi-series chart.Each row provides a series of data. Each series of data is labeled by a value from one column, called the labelField.For example, cell values are sales figures, and fields are "Product", "August", "September", "October". In this case each row gives a series: sales figures for each of 3 months. The labelFieldin this case is the "Product" field, meaning each row represents sales figures for each of 3 months for a particular product. This dataset can be charted via any multi-series chart: stacked or clustered bar or column chart, line chart with multiple lines, or area chart (stacked lines).By default, all visible fields other than the label field are assumed to be labels for series values, but an explicit list of fields can be provided as dataFields.By default, all data is charted if all data is loaded, otherwise, data visible in the viewport is charted. An explicit set of rows can be provided via dataRows.- Parameters:
- labelField- name of the field
- Returns:
- created Chart instance
- See Also:
 
- 
chartData- See Also:
 
- 
chartData- See Also:
 
- 
chartDatapublic FacetChart chartData(String labelField, String[] dataFields, ListGridRecord[] dataRows, FacetChart chartProperties) - See Also:
 
- 
chartDatapublic FacetChart chartData(String labelField, String[] dataFields, ListGridRecord[] dataRows, FacetChart chartProperties, boolean labelFieldFirst) Chart the data in this listGrid as a multi-series chart.Each row provides a series of data. Each series of data is labeled by a value from one column, called the labelField.For example, cell values are sales figures, and fields are "Product", "August", "September", "October". In this case each row gives a series: sales figures for each of 3 months. The labelFieldin this case is the "Product" field, meaning each row represents sales figures for each of 3 months for a particular product. This dataset can be charted via any multi-series chart: stacked or clustered bar or column chart, line chart with multiple lines, or area chart (stacked lines).By default, all visible fields other than the label field are assumed to be labels for series values, but an explicit list of fields can be provided as dataFields.By default, all data is charted if all data is loaded, otherwise, data visible in the viewport is charted. An explicit set of rows can be provided via dataRows.- Parameters:
- labelField- name of the field
- dataFields- optional list of fields to use as labels. By default, all fields are used.
- dataRows- set of records to chart. Can be obtained by eg- grid.data.getRange().
- chartProperties- properties to pass to the created chart
- labelFieldFirst- if true, use the labelField as the "first" set of labels, for example, as the bar labels in a stacked bar chart, whereas the second set of labels would appear as the legend.
- Returns:
- created Chart instance
- See Also:
 
- 
clearAllCriteriapublic void clearAllCriteria()This method, the equivalent of the builtinClear Filter menu-item, clears all user-visible criteria applied to this grid, including values and filter-operators in thefilter-rowand criteria in theadvanced filter window, and issues a re-filter.
- 
clearCriteriapublic void clearCriteria()Clear the current criteria used to filter data. This method clears filter-values from fields in thefilterEditorbut will not change their currentoperatoror clear associatedoperator-icons. SeeclearAllCriteria()for a means of doing that.
- 
clearCriteria- See Also:
 
- 
clearCriteriaClear the current criteria used to filter data. This method clears filter-values from fields in thefilterEditorbut will not change their currentoperatoror clear associatedoperator-icons. SeeclearAllCriteria()for a means of doing that.- Parameters:
- callback- callback to invoke on completion
- requestProperties- additional properties to set on the DSRequest that will be issued
- See Also:
 
- 
clearFieldErrorpublic void clearFieldError(int rowNum, int fieldName) Clears any validation errors for some cell.- Parameters:
- rowNum- row index of cell to add validation error for
- fieldName- col index or field name of cell to add validation error for
- See Also:
 
- 
clearFieldSearchOperatorClears the current search operator from a field in the grid'sfilter row. This will reset the field to itsdefault operatorand, unlessalwaysShowOperatorIconis true, hide the field's operatorIcon.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.If filterOnKeypressis true, a fetch may be issued when the operator is cleared - seesetFieldSearchOperator()for details. To prevent this fetch, pass the suppressFilter parameter.To retrieve a field's current search operator, use getFieldSearchOperator(). To programmatically modify a field's current search operator, usesetFieldSearchOperator().This method has no effect if no specific operator has been set on the field, either by the user or as a result of other criteria applied by setCriteria()or similar.- Parameters:
- fieldName- name of the field to clear the search operator from
- suppressFilter- prevent this call from causing a filter as a result of operator change - clearing, eg, "isNull" criteria will cause a refilter
 
- 
clearFilterWindowCriteriapublic void clearFilterWindowCriteria()Clears criteria applied to this grid via theadvanced filter windowand issues a re-filter.To clear all user-editable criteria, see clearAllCriteria().
- 
clearRowErrorspublic void clearRowErrors(int rowNum) Clear any stored validation errors for some row- Parameters:
- rowNum- index of row to clear validation error for
- See Also:
 
- 
clearSavedViewStatepublic void clearSavedViewState()Clear this grid's auto-savedview stateas described inautoPersistViewState.- See Also:
 
- 
clearSortpublic void clearSort()This method clears any existing sort on this grid by callingsetSort()with a null parameter. The internal list ofSortSpecifiers is removed and the grid is unsorted.
- 
closeGroupCloses the node represented by the "record" parameter, if it is a folder and is not already closed. This method only applies togroupedListGrids.- Parameters:
- record- node to close
- Returns:
- true if the node was closed, false if it was not (either because it is not a folder, or because it was already closed)
 
- 
collapseRecordCollapses a givenrecordwhich has been previously expanded usingexpandRecord().Depending on the pooling mode, this method may automatically destroy expansionComponents. By default, components created automatically by the ListGrid will be auto-destroyed. This behavior can be changed by setting a different pooling mode.Note that components created via an override to getExpansionComponent()will not be auto-destroyed - developers should overridecollapseRecordto take care of clean-up for such components.- Parameters:
- record- record to collapse
 
- 
collapseRecordsCollapses the passed list of expandedrecords. CallscollapseRecordfor each passed record, but only marks the grid for redraw once, after all records have been collapsed.- Parameters:
- records- records to collapse
 
- 
configureGroupingpublic void configureGrouping()Open a MultiGroupDialog to configure the fields used for grouping.
- 
createRecordComponentWhenshowRecordComponentsis true, this method is called to create per-row or per-cell embedded components to display in the grid.The colNum parameter is applicable only when showRecordComponentsByCellis true.If this row should not have a recordComponent, return null.This method should create and return a new component for the record passed in every time it is called and never return the same Canvas instance twice. To re-use components with different rows, set RecordComponentPoolingModeto "recycle". In this mode, in addition to implementing this method, developers should also implementupdateRecordComponent()which allows already created components to be altered for re-use in new records. See theshowRecordComponentsoverview for more information.- Parameters:
- record- record to create a component for
- colNum- cell to which the component applies
- Returns:
- return the component to embed in the passed record
 
- 
addCriteriaChangedHandlerAdd a criteriaChanged handler.Callback fired when the end-user changes criteria. This occurs via the +{FilterEditor} or +{showFilterWindow,advanced filtering} interface. It does not fire when a change is made via ListGrid.setCriteria(),ListGrid.fetchData(),ListGrid.setFilterWindowCriteria()or other APIs are called to change the criteria.- Specified by:
- addCriteriaChangedHandlerin interface- HasCriteriaChangedHandlers
- Parameters:
- handler- the criteriaChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addDataArrivedHandlerAdd a dataArrived handler.Notification method fired when new data arrives from the DataSourceto be displayed in this ListGrid, (for example in response to the user scrolling a new set of rows into view). Only applies to databound listGrids where thedataattribute is aResultSet. This ResultSet may have been created manually and applied to the grid via a call toListGrid.setData()or may have been created and automatically assigned ifListGrid.fetchData()was used to populate the grid. This method is fired directly in response todataArrived()firing on the data object.Note that dataArrived(), unlikeListGrid.dataChanged(), only fires in limited circumstances - when data for aResultSetarrives from the DataSource due to a fetch or cache invalidation, or as a result offiltering. If you want to catch all data changes, you should instead react toListGrid.dataChanged().- Specified by:
- addDataArrivedHandlerin interface- HasDataArrivedHandlers
- Parameters:
- handler- the dataArrived handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addDataChangedHandlerAdd a dataChanged handler.Method invoked when changes to the listGrid's data occur. This method will perform the necessary actions to ensure the changes to the data are reflected in the user interface, and then invoked the ListGrid.dataChangedComplete()notification method.May be invoked by any of the following: -  a call to ListGrid.addData(),ListGrid.updateData(), orListGrid.removeData()
-  DataSourceupdates from the server forResultSetdata (triggered by record editing, etc.)
-  fetches arriving back from the server for ResultSetdata
- changes to array data if made through APIs such as Array.set(), Array.add(), etc.
- cache invalidation
- filtering
 ListGrid.setData()will not call this method directly, but it may fire if one of the above listed events is triggered (e.g. a server fetch forResultSetdata).Note that the operationTypeparameter is optional and will be passed and contain the operation (e.g. "update") if this notification was triggered by a fetch, anListGrid.addData(),ListGrid.updateData(), orListGrid.removeData(), or aDataSourceupdate forResultSetdata (the first three reasons listed above) but otherwise will be null.- Specified by:
- addDataChangedHandlerin interface- HasDataChangedHandlers
- Parameters:
- handler- the dataChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
-  a call to 
- 
dataChangedCompletepublic void dataChangedComplete()Notification method fired when thegrid data has changed.
- 
dataChangedCompleteNotification method fired when thegrid data has changed.- Parameters:
- operationType- optionally passed operation causing the change
 
- 
deselectRangepublic void deselectRange(int startRow, int endRow) Deselect a contiguous range of records by index.This is a synonym for selectRange(startRow, endRow, false);- Parameters:
- startRow- start of selection range
- endRow- end of selection range (non-inclusive)
- See Also:
 
- 
discardAllEditspublic void discardAllEdits()Cancel outstanding edits, discarding edit values, and hiding editors for the record[s] passed in if appropriate.If no rows are passed in, all outstanding edit values will be dropped. This will not automatically end editing; call endEditing()before calling discardAllEdits() if you also want to end editing.Note that this also clears the removedstate of any records that have been marked as removed.- See Also:
 
- 
discardAllEditspublic void discardAllEdits(int[] rows) - See Also:
 
- 
discardAllEditspublic void discardAllEdits(int[] rows, boolean dontHideEditor) Cancel outstanding edits, discarding edit values, and hiding editors for the record[s] passed in if appropriate.If no rows are passed in, all outstanding edit values will be dropped. This will not automatically end editing; call endEditing()before calling discardAllEdits() if you also want to end editing.Note that this also clears the removedstate of any records that have been marked as removed.- Parameters:
- rows- allows you to specify which row(s) to drop edits for
- dontHideEditor- By default this method will hide the editor if it is currently showing for any row in the grid. Passing in this parameter will leave the editor visible (and just reset the edit values underneath the editor).
- See Also:
 
- 
discardEditspublic void discardEdits(int rowNum, int colNum) Cancel outstanding edits for the specified rows, discarding edit values, and hiding editors if appropriate.Note that if this method is called on a new edit row (created via startEditingNew()for example), which has not yet been saved, this method will remove the row entirely.Also note that this method will clear the removedstate of records that have been marked as removed.- Parameters:
- rowNum- Row to cancel
- colNum- Column to cancel. Note that this parameter is ignored in ListGrids but may be required in subclasses of ListGrid where each cell represents one record in the data set (EG CubeGrid)
- See Also:
 
- 
discardEditsCancel outstanding edits for the specified rows, discarding edit values, and hiding editors if appropriate.Note that if this method is called on a new edit row (created via startEditingNew()for example), which has not yet been saved, this method will remove the row entirely.Also note that this method will clear the removedstate of records that have been marked as removed.- Parameters:
- rowNum- Row to cancel
- colNum- Column to cancel. Note that this parameter is ignored in ListGrids but may be required in subclasses of ListGrid where each cell represents one record in the data set (EG CubeGrid)
- dontHideEditor- By default this method will hide the editor if it is currently showing for the row in question. Passing in this parameter will leave the editor visible (and just reset the edit values underneath the editor).
- See Also:
 
- 
displaySortModify the grid UI to reflect the parameter sortSpecifiers. For a single sortSpecifier, this consists of marking the field with a directional arrow in its header button (if it visible).If multiple fields are sorted, those that are visible show a directional icon and a small sort-numeralindicating that field's index in the sort configuration.See addSort()andtoggleSort()APIs for information on making changes to the current sort configuration.NOTE: This method is primarily used by setSort(); it is not intended to be called by user code, unless you are implementing a customsetSortHandler). For the normal use case, calling this method directly will fail to execute vital pre-steps. If you are not implementing a custom handler as described above, do not call this method directly - callsetSort()instead.- Parameters:
- sortSpecifiers- Array of- SortSpecifierobjects
 
- 
addDrawAreaChangedHandlerAdd a drawAreaChanged handler.Notification method that fires when the drawArea changes due to scrolling. Receives the previous drawArea co-ordinates as parameters. Call ListGrid.getDrawArea()to get the new drawArea co-ordinates.Note that if this grid is showing any frozen fields, they will not be included in theoldStartCol,oldEndColrange reported by this method. Frozen fields are assumed never to be scrolled out of view.- Specified by:
- addDrawAreaChangedHandlerin interface- HasDrawAreaChangedHandlers
- Parameters:
- handler- the drawAreaChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
droppublic boolean drop()Handle a drop event. Default implementation supports moving data within this grid or transferring data into the grid from some other component.Developers wishing to implement custom listGrid record drag and drop behavior should typically use the recordDrop()method rather than overriding this method directly.- Returns:
- true for completion of a successful drag/drop interaction
- See Also:
- 
- willAcceptDrop()
- com.smartgwt.client.widgets.grid.ListGrid#transferDragData
 
 
- 
addEditCompleteHandlerAdd a editComplete handler.Callback fired when inline edits have been successfully saved. No default implementation. - Specified by:
- addEditCompleteHandlerin interface- HasEditCompleteHandlers
- Parameters:
- handler- the editComplete handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
editExistingRecordpublic void editExistingRecord()Start inline editing at a record identified by criteria. If the criteria matches more than one record, the first matched record is edited. Additionally, if the record to be edited is not visible, the record will be scrolled into view.Note that the record to be matched must already be loaded in the grid - no fetch will be performed. - See Also:
 
- 
editExistingRecordStart inline editing at a record identified by criteria. If the criteria matches more than one record, the first matched record is edited. Additionally, if the record to be edited is not visible, the record will be scrolled into view.Note that the record to be matched must already be loaded in the grid - no fetch will be performed. - Parameters:
- criteria- Criteria identifying the existing row to edit
- See Also:
 
- 
addEditFailedHandlerAdd a editFailed handler.Called when an attempt to save inline edits fails, due to a validation error or other server error. The default implementation of editFailed does nothing for normal validation errors, which are displayed before editFailed() is called. For any other errors, the default implementation will call HandleErrorCallback.handleError(), which by default will result in a warning dialog.- Specified by:
- addEditFailedHandlerin interface- HasEditFailedHandlers
- Parameters:
- handler- the editFailed handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addEditorEnterHandlerAdd a editorEnter handler.Callback fired when the user starts editing a new cell. This callback is typically used to establish dynamic default values via ListGrid.setEditValue()orListGrid.setEditValues().Can also be overridden on a per-field basis via field.editorEnter.- Specified by:
- addEditorEnterHandlerin interface- HasEditorEnterHandlers
- Parameters:
- handler- the editorEnter handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addEditorExitHandlerAdd a editorExit handler.Callback fired when the user attempts to navigate away from the current edit cell, or complete the current edit. Call EditorExitEvent.cancel()from withinEditorExitHandler.onEditorExit(com.smartgwt.client.widgets.grid.events.EditorExitEvent)from this method to cancel the default behavior (Saving / cancelling the current edit / moving to the next edit cell).This callback is typically used to dynamically update values or value maps for related fields (via ListGrid.setEditValue()andListGrid.setEditorValueMap()respectively, or to implement custom navigation (viastartEditing(rowNum,colNum).Can be overridden at the field level as field.editorExit. - Specified by:
- addEditorExitHandlerin interface- HasEditorExitHandlers
- Parameters:
- handler- the editorExit handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
endEditingpublic void endEditing()Complete the current edit by storing the value and hiding the inline editor. Note that ifautoSaveEditsis true, the value will be saved to the server.- See Also:
 
- 
expandRecordExpands a givenrecordby creating a subcomponent and inserting it in to the record's grid-row. A number of built-inexpansionModesare supported by the default implementation ofgetExpansionComponent()and you can override that method to provide your own expansion behavior.Once a record has been expanded, the currently visible expansion component may be retrieved via getCurrentExpansionComponent().- Parameters:
- record- record to expand
 
- 
expandRecordsExpands the passed list ofrecordsby creating a subcomponent for each record and inserting them it in to the record's grid-row. CallsexpandRecordfor each passed record, but only marks the grid for redraw once, after all expansions are complete.- Parameters:
- records- records to expand
 
- 
exportClientDatapublic void exportClientData()Exports this component's data with client-side formatters applied, so is suitable for direct display to users, using the specifiedexport format.A variety of DSRequest settings, such as exportAsandDSRequest.exportFilename, affect the exporting process: seeexportResultsfor further detail.If this component is databoundand not all records that match the currentfilter-criteriahavebeen loaded, you can callloadAllRecords()- this method accepts a callback which is fired when all necessary data has arrived. When that callback fires, a call toexportClientDatawill have access to the full dataset for the filter.This feature requires the Smart GWT server. If your ListGrid has custom formatters, formatted values will be exported by default, with HTML normalized to text where possible. Since some levels of HTML normalizing aren't possible, this may result in missing or incorrect export values. In this case, you have three options: - Set exportRawValueson the field. This will export the raw underlying value of the field; your formatter will not be called
- Have your formatter call isExportingClientData()and perform whatever alternative formatting you require if that method returns true
- Set exportRawNumberson the field. This will export the raw underlying number of the field; your formatter will not be called
 ListGridField.escapeHTMLsetting on a field determines how escaped and unescaped HTML values are handled. In particular, ifescapeHTMLis not set for a field, a value like "<FOO>" will be exported as the empty string, and you'd need the escaped value "<FOO>" to end up exporting "<FOO>".Ordinarily, calls to this method go through the static classMethod DataSource.exportClientData(). In this case, no server-side DataSources are required. However, if this component isdataboundand you specify a validoperationIdin the properties passed to this method, the call will go through the instance methodDataSource.exportClientData()instead. As the documentation for that method explains, this allows you more control on the server side. This approach requires both the Smart GWT server and server-side DataSource definitions.To export data from this component's dataSource, see exportData, which does not include client-side formatters, but does include formatters declared in the.ds.xmlfile.exportData()relies on both the Smart GWT server and server-side DataSources.
- Set 
- 
exportClientData- See Also:
 
- 
exportClientDataExports this component's data with client-side formatters applied, so is suitable for direct display to users, using the specifiedexport format.A variety of DSRequest settings, such as exportAsandDSRequest.exportFilename, affect the exporting process: seeexportResultsfor further detail.If this component is databoundand not all records that match the currentfilter-criteriahavebeen loaded, you can callloadAllRecords()- this method accepts a callback which is fired when all necessary data has arrived. When that callback fires, a call toexportClientDatawill have access to the full dataset for the filter.This feature requires the Smart GWT server. If your ListGrid has custom formatters, formatted values will be exported by default, with HTML normalized to text where possible. Since some levels of HTML normalizing aren't possible, this may result in missing or incorrect export values. In this case, you have three options: - Set exportRawValueson the field. This will export the raw underlying value of the field; your formatter will not be called
- Have your formatter call isExportingClientData()and perform whatever alternative formatting you require if that method returns true
- Set exportRawNumberson the field. This will export the raw underlying number of the field; your formatter will not be called
 ListGridField.escapeHTMLsetting on a field determines how escaped and unescaped HTML values are handled. In particular, ifescapeHTMLis not set for a field, a value like "<FOO>" will be exported as the empty string, and you'd need the escaped value "<FOO>" to end up exporting "<FOO>".Ordinarily, calls to this method go through the static classMethod DataSource.exportClientData(). In this case, no server-side DataSources are required. However, if this component isdataboundand you specify a validoperationIdin the properties passed to this method, the call will go through the instance methodDataSource.exportClientData()instead. As the documentation for that method explains, this allows you more control on the server side. This approach requires both the Smart GWT server and server-side DataSource definitions.To export data from this component's dataSource, see exportData, which does not include client-side formatters, but does include formatters declared in the.ds.xmlfile.exportData()relies on both the Smart GWT server and server-side DataSources.- Parameters:
- requestProperties- Request properties for the export. Note that specifying- exportDataon the request properties allows the developer to pass in an explicit data set to export.
- callback- Optional callback. If you specify- exportToClient: false in the request properties, this callback will fire after export completes. Otherwise the callback will fire right before the download request is made to the server.
- See Also:
 
- Set 
- 
fetchRelatedDataBased on the relationship between the DataSource this component is bound to and the DataSource specified as the "schema" argument, call fetchData() to retrieve records in this grid that are related to the passed-in record.Relationships between DataSources are declared via DataSourceField.foreignKey.For example, given two related DataSources "orders" and "orderItems", where we want to fetch the "orderItems" that belong to a given "order". "orderItems" should declare a field that is a foreignKeyto the "orders" table (for example, it might be named "orderId" with foreignKey="orders.id"). Then, to load the records related to a given "order", call fetchRelatedData() on the component bound to "orderItems", pass the "orders" DataSource as the "schema" and pass a record from the "orders" DataSource as the "record" argument.Note that multiple foreign keys into the schema are supported by this method. - Parameters:
- record- DataSource record
- schema- schema of the DataSource record, or DataBoundComponent already bound to that schema
- See Also:
 
- 
fetchRelatedData
- 
fetchRelatedDatapublic void fetchRelatedData(ListGridRecord record, Canvas schema, DSCallback callback, DSRequest requestProperties) Based on the relationship between the DataSource this component is bound to and the DataSource specified as the "schema" argument, call fetchData() to retrieve records in this grid that are related to the passed-in record.Relationships between DataSources are declared via DataSourceField.foreignKey.For example, given two related DataSources "orders" and "orderItems", where we want to fetch the "orderItems" that belong to a given "order". "orderItems" should declare a field that is a foreignKeyto the "orders" table (for example, it might be named "orderId" with foreignKey="orders.id"). Then, to load the records related to a given "order", call fetchRelatedData() on the component bound to "orderItems", pass the "orders" DataSource as the "schema" and pass a record from the "orders" DataSource as the "record" argument.Note that multiple foreign keys into the schema are supported by this method. - Parameters:
- record- DataSource record
- schema- schema of the DataSource record, or DataBoundComponent already bound to that schema
- callback- callback to invoke on completion
- requestProperties- additional properties to set on the DSRequest that will be issued
- See Also:
 
- 
fetchRowCountpublic void fetchRowCount()For databound grids, method will fall through toResultSet.fetchRowCount(), allowing developers to request an accurate row count from the dataSource whenprogressive loading is active.- See Also:
 
- 
fetchRowCount- See Also:
 
- 
fetchRowCountFor databound grids, method will fall through toResultSet.fetchRowCount(), allowing developers to request an accurate row count from the dataSource whenprogressive loading is active.- Parameters:
- callback- Callback to fire when the fetch request completes. To retrieve details of the row-count that was retrieved from the server, use the- getRowCount()and- getRowCountStatus()methods.
- dsRequest- Custom properties for the row count fetch request
- See Also:
 
- 
fieldIsEditableCan the field be edited? This method looks atcanEditfor the grid as well as theListGridField.canEditvalue, to determine whether editing is allowed. This method's return value is not authoritative for editibility sincecanEditCell()could return a more specific value.For a detailed discussion, see the documentation at canEdit.- Parameters:
- field- field object, number, or name
- Returns:
- whether field can be edited
- See Also:
 
- 
fieldIsEditablepublic boolean fieldIsEditable(int field) Can the field be edited? This method looks atcanEditfor the grid as well as theListGridField.canEditvalue, to determine whether editing is allowed. This method's return value is not authoritative for editibility sincecanEditCell()could return a more specific value.For a detailed discussion, see the documentation at canEdit.- Parameters:
- field- field object, number, or name
- Returns:
- whether field can be edited
- See Also:
 
- 
fieldIsEditableCan the field be edited? This method looks atcanEditfor the grid as well as theListGridField.canEditvalue, to determine whether editing is allowed. This method's return value is not authoritative for editibility sincecanEditCell()could return a more specific value.For a detailed discussion, see the documentation at canEdit.- Parameters:
- field- field object, number, or name
- Returns:
- whether field can be edited
- See Also:
 
- 
fieldIsVisibleCheck whether a field is currently visible- Parameters:
- field- field to be checked
- Returns:
- true if the field is currently visible, false otherwise.
 
- 
addFieldStateChangedHandlerAdd a fieldStateChanged handler.Notification method executed when columns are resized or reordered, or fields are shown or hidden, frozen or unfrozen. Has no default implementation. - Specified by:
- addFieldStateChangedHandlerin interface- HasFieldStateChangedHandlers
- Parameters:
- handler- the fieldStateChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
filterByEditorpublic void filterByEditor()If the filter editor (showFilterEditor) is visible for this grid, this method will perform a filter based on the current values in the editor.
- 
addFilterEditorSubmitHandlerAdd a filterEditorSubmit handler.Optional notification fired when the user performs a filter using the Filter Editor. Useful for applying additional criteria not available in the filterEditor. Note that it is often easiest to do this with theSearchFormattribute, which requires no code.May fire as criteria values are being edited if ListGrid.filterByCellorListGrid.filterOnKeypressis true, otherwise will fire when the user clicks the filter button or presses the Enter key while focus is in the Filter Editor.Use event.cancel() to cancel the default behavior - you must cancel the default behavior if your code is going to call ListGrid.filterData(),ListGrid.setCriteria()or any other API that affects the criteria applied to the grid.The criteriaparameter contains the current criteria applied to the grid including edits the user has just made using the Filter Editor and those applied with theadvanced filtering dialog. A call toListGrid.getFilterEditorCriteria()does not include theadvanced filtering criteria.If you wish to access the criteriaapplied to the grid without picking up any edits to the Filter Editor, useListGrid.getCriteria()instead.Developers may wish to perform a filter using the Filter Editor values from code running outside the standard filterEditorSubmit flow. For example, if you wanted a confirmation dialog to be shown before filtering was performed, you would cancel the default behavior as described above, but then need to replicate the default behavior once the user confirms that they want to proceed. To replicate the default behavior, just call: grid.filterData(grid.getFilterEditorCriteria()); or, to ensure the specifiedListGrid.autoFetchTextMatchStyleis picked upDSRequest request = new DSRequest(); request.setTextMatchStyle(grid.getAutoFetchTextMatchStyle()); grid.filterData(grid.getFilterEditorCriteria(), null, request);- Specified by:
- addFilterEditorSubmitHandlerin interface- HasFilterEditorSubmitHandlers
- Parameters:
- handler- the filterEditorSubmit handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
filterViaAIIf filter-via-AI is enabled (seefilterViaAIMode), asks AI to filter the grid according to the given natual language description of a filter.- Parameters:
- prompt- The natual language description of a filter.
 
- 
filterViaAIIf filter-via-AI is enabled (seefilterViaAIMode), asks AI to filter the grid according to the given natual language description of a filter.- Parameters:
- prompt- The natual language description of a filter.
- settings- Optional settings to use.
 
- 
focusInCellPuts keyboard focus into the specified cell, showing a highlighted (roll-over style) appearance, and ensuring that arrow-key navigation will start from the specified cell.Only applies where canSelectCellsis true.- Parameters:
- row- Index of target row
- col- Index of target col
- See Also:
 
- 
focusInFilterEditorpublic void focusInFilterEditor()If the filter editor (showFilterEditor) is visible for this grid, this method will explicitly put focus into the specified field in the filter editor.
- 
focusInFilterEditorIf the filter editor (showFilterEditor) is visible for this grid, this method will explicitly put focus into the specified field in the filter editor.- Parameters:
- fieldName- Name of the field to put focus into. If unspecified focus will go to the first field in the editor
 
- 
focusInRowPuts keyboard focus into the specified row, showing a highlighted (roll-over style) appearance, and ensuring that arrow-key navigation will start from the specified row.Only applies where canSelectCellsis false.- Parameters:
- row- Index of target row
- See Also:
 
- 
addFormulaUpdatedHandlerAdd a formulaUpdated handler.Notification fired when a user either creates a new formula field or edits an existing formula field. - Specified by:
- addFormulaUpdatedHandlerin interface- HasFormulaUpdatedHandlers
- Parameters:
- handler- the formulaUpdated handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
freezeFieldFreeze the indicated field, so that it remains in place and visible when horizontal scrolling occurs.- Parameters:
- field- field or fields to freeze. fields may be specified as ListGridField objects, field names or colNum.
- See Also:
 
- 
freezeFieldFreeze the indicated field, so that it remains in place and visible when horizontal scrolling occurs.- Parameters:
- field- field or fields to freeze. fields may be specified as ListGridField objects, field names or colNum.
- See Also:
 
- 
freezeFieldFreeze the indicated field, so that it remains in place and visible when horizontal scrolling occurs.- Parameters:
- field- field or fields to freeze. fields may be specified as ListGridField objects, field names or colNum.
- See Also:
 
- 
freezeFieldFreeze the indicated field, so that it remains in place and visible when horizontal scrolling occurs.- Parameters:
- field- field or fields to freeze. fields may be specified as ListGridField objects, field names or colNum.
- See Also:
 
- 
getAllEditRowspublic int[] getAllEditRows()Returns an array of every rowNum for which we have pending (unsubmitted) edits. This will return records that have been marked as removed (seemarkRecordRemoved()as well as records with unsaved changes to field values.- Returns:
- Array of rowNums for rows with edit values pending submission.
- See Also:
 
- 
getAllFieldsGet the complete array of fields for this ListGrid, including fields that are not currently visible or were specified implicitly viadataSource.This list of fields is only valid once the ListGrid has been drawnor oncesetFields()has been called explicitly. If called earlier, only the list of directly specified fields will be returned (the Array passed to create()).This Array should be treated as read-only. To modify the set of visible fields, use showField(),hideField()and related APIs. To update properties of individual fields, usesetFieldProperties()or more specific APIs such assetFieldTitle().- Returns:
- Array of all fields in the ListGrid
 
- 
getAriaStateDynamically retrieves the aria properties to write out for this listGrid inscreen reader mode.If ariaRoleis set to"grid"this will return an object withrowcountandcolcountattributes populated to indicate this size of the grid and its data.If a static ariaStatehas been specified, the default implementation will apply these dynamically derived properties in addition to any properties specified on the static object.Note that redrawingthe grid will re-evaluate this method and apply the result to the handle.- Returns:
- object containing aria attribute names and values to apply to this grid's handle
 
- 
getAriaStateDefaultsRetrieves dynamically calculated defaultARIA state mappingproperties for this listGrid. These will be combined with explicitly specified aria state as described ingetAriaState().Overridden by ListGrid to pick up aria-rowcount and aria-colcount. - Overrides:
- getAriaStateDefaultsin class- Canvas
- Returns:
- dynamically calculated default aria state properties
 
- 
getBaseStyleReturn the base styleName for this cell. Has the following implementation by default:- If this.editFailedBaseStyleis defined, and the cell is displaying a validation error return this value.
- If this.editFailedPendingStyleis defined, and the cell is displaying an edit value that has not yet been saved (seeautoSaveEdits) return this value.
- Otherwise return
 record[listGrid.recordBaseStyleProperty], if defined, otherwisefield.baseStyle.
 baseStyleis specified this will be used. Otherwise for grids showing fixed height rows which matchnormalCellHeightnormalBaseStylewill be used. For grids with variable, or modified cell heights,tallBaseStylewill be used.Note also that enabling fastCellUpdateswill cause thetallBaseStyleto be used rather thannormalBaseStyle.As noted under enforceVClipping, cell content which renders taller than the available space within a cell may cause rows to expand even iffixedRecordHeightsis true. This can lead to misaligned rows when frozen columns are used. Developers should be aware that changing cell styling such that there is increased borders or padding will reduce the available space for content within the specified cell height, making this scenario more common. To fix this, specify a larger cellHeight, or set enforceVClipping to true.Note: This is an override point. - Parameters:
- record- Record associated with this cell. May be- nullfor a new edit row at the end of this grid's data set.
- rowNum- row number for the cell
- colNum- column number of the cell
- Returns:
- CSS class for this cell.
 See CSSStyleName
- See Also:
 
- If 
- 
getCellAriaStateReturns a map ofWAI ARIA state attribute valuesto be written into cells within this grid. Default implementation return null, meaning no per-cell aria state is written out- Parameters:
- rowNum- row index of the cell
- colNum- column index of the cell
- record- record for the cell in question
- role- ARIA role for the cell as returned by- getCellRole()
- Returns:
- Object containing aria property names and values to write into the cell's HTML
- See Also:
 
- 
getCellContextMenuItemsIfshowCellContextMenusistruethis method returns the menu items to be displayed in the default cell context menu.This method is called at various times, so this method should not instantiate any classes, because they'll be re-created on each call, resulting in a leak - your implementation should return an array of menuItem config-blocks only, so you shouldn't instantiate actual Menu instances to apply as the submenuof items - instead, set submenu to a simple array of menuItems. If your use-case necessitates that class instances are created, because specific submenus have a different Menu class, for example, you should keep a reference to them and either, if their content is dynamic, destroy and recreate them with the new items, or just return the existing instances otherwise.The default set of menu items includes items for built-in ListGrid features, like showing or hiding an inline edit form, or removing records. - Parameters:
- record- The record the user clicked in
- rowNum- Index of the record the user clicked in
- colNum- Index of the column the user clicked in
- Returns:
 
- 
getCellCSSTextReturn CSS text for styling this cell, which will be applied in addition to the CSS class for the cell, as overrides."CSS text" means semicolon-separated style settings, suitable for inclusion in a CSS stylesheet or in a STYLE attribute of an HTML element. Note: This is an override point. - Parameters:
- record- cell record as returned by getCellRecord
- rowNum- row number for the cell
- colNum- column number of the cell
- Returns:
- CSS text for this cell
- See Also:
 
- 
getCellErrorsReturns the current set of errors for this cell.- Parameters:
- rowNum- index of row to check for validation errors.
- fieldName- field to check for validation errors - can be fieldName or index of the column.
- Returns:
- array of error messages (strings) for the specified cell. If no validation errors are present, returns null.
- See Also:
 
- 
getCellHoverComponentWhenshowHoverComponentsis set, this method is called to get the component to show as a hover for the current cell.By default, this method returns one of a set of builtin components, according to the value of listGrid.hoverMode. You can override this method to return any component you wish to provide as a hoverComponent, or invoke the superclass method to have the default hover component generated, then further customize it.By default, components returned by getCellHoverComponent()will be automatically destroyed when the hover is hidden. To prevent this, setCanvas.hoverAutoDestroyto false on the returned component.If you return a component that fetches data or loads content dynamically: - set rpcRequest.promptStyle to "cursor" or set rpcRequest.showPrompt to false on any network requests, or the default masking that blocks the screen during network requests will dismiss the hover
-  as covered above, your
 component may have been automatically destroyed by the time your       content has been loaded.  Check Canvas.destroyedbefore taking action in an asynchronous callback
-  if your component grows in size after data is loaded, and it would then be rendered      partially
 off-screen, it will be automatically re-positioned to keep it on-screen.        However this will not automatically
 happen in cases where you provide HTML content that      changes size after initial render, in which case a call to     
 Canvas.adjustForContent()will be required. See that API for details.
 - Parameters:
- record- record to get the hoverComponent for
- rowNum- row number for the cell
- colNum- column number of the cell
- Returns:
- the component to show as a hover
 
- 
getCellPageRectReturns the page offsets and size of the cell at the passed row and column. If auto-sizing is enabled, sizes are not definitive until the grid has finished drawing, so calling this method before drawing completes will return the configured column sizes.- Parameters:
- rowNum- row index of the cell
- colNum- column index of the cell
- Returns:
- the page rect of the passed cell, or null if undrawn
- See Also:
 
- 
getCellRowSpanpublic int getCellRowSpan(int rowNum, int colNum) When usingrow spanning, returns the number of cells spanned by the cell at the given coordinates.If the passed coordinates are in the middle of a series of spanned cells, the row span of the spanning cell is returned. For example, if row 2 col 0 spans 3 cells, calls to getCellRowSpan()for row 2 col 0, row 3 col 0, row 4 col 0 will all return 3.This method returns row span information for the current rendered cells. In contrast, if the grid is about to be redrawn, a call to getRowSpan()may return row span values for how the grid is about to be drawn. Also, user-provided getRowSpan() functions are not required to operate properly when called outside of the grid rendering loop.Note: This method is a utility method for developers - it is not called directly by the grid rendering path and therefore is not intended for override. To set up custom row-spanning behavior, override getRowSpan()instead.- Parameters:
- rowNum- row number of cell to return the row span for
- colNum- column number of cell to return the row span for
- Returns:
- number of cells spanned by the cell that spans through these coordinates
 
- 
getCellSelectionWhencanSelectCellsis active, returns theCellSelectionobject that tracks and manages the current selection. Returns null ifcanSelectCellsis false.- Returns:
- current cellSelection
 
- 
getCellStartRowpublic int getCellStartRow(int rowNum, int colNum) When usingrow spanning, returns the row number where a row-spanning cell starts.For example, if row 2 col 0 spans 3 cells, getCellStartRow()for row 2 col 0, row 3 col 0, row 4 col 0 will all return 2, because that's the row when spanning starts.- Parameters:
- rowNum- row number of cell for which the start row should be returned
- colNum- column number of cell for which the start row should be returned
- Returns:
- row number where spanning starts
 
- 
getCellStyleReturn the CSS class for a cell. By default this method has the following implementation:
 - return any custom style for the record (GridRenderer.recordCustomStyleProperty) if defined.
 - create a style name based on the result ofGridRenderer.getBaseStyle()and the state of the record using the rules described inCellStyleSuffixes.Cell Styles are customizable by: - attaching a custom style to a record by setting     record[this.recordCustomStyleProperty]to some valid CSS style name.
- modifying the base style returned by getBaseStyle() [see that method for further documentation on this]
- overriding this function
 In addition to this, getCellCSSText()may be overriden to provide custom cssText to apply on top of the styling attributes derived from the named style.Note: This is an override point. - Parameters:
- record- record object for this row and column
- rowNum- number of the row
- colNum- number of the column
- Returns:
- CSS style for this cell.
 See CSSStyleName
- See Also:
 
- attaching a custom style to a record by setting     
- 
getColumnLeftReturn the left offset (in local coordinate space) of a particular column.- Parameters:
- colNum- number of the column
- Returns:
- left offset of the passed colNum, or null if not yet drawn or no such column
- See Also:
 
- 
getColumnPageLeftReturn the left coordinate for a given column number as a GLOBAL coordinate- Parameters:
- colNum- number of the column
- Returns:
- page left offset of the passed colNum, or null if undrawn or no such column
- See Also:
 
- 
getColumnWidthReturn the width of a particular column.- Parameters:
- colNum- number of the column
- Returns:
- width of the column, or nullif undrawn or no such column.
- See Also:
 
- 
getCurrentExpansionComponentReturns the expansion component derived fromgetExpansionComponent()currently visible in some record, or null if the specified record is not showing an expansion component.- Parameters:
- record- rowNum or record to get the expansionComponent for
- Returns:
- the currently visible expansion component for the expanded row.
 
- 
getCurrentExpansionComponentReturns the expansion component derived fromgetExpansionComponent()currently visible in some record, or null if the specified record is not showing an expansion component.- Parameters:
- record- rowNum or record to get the expansionComponent for
- Returns:
- the currently visible expansion component for the expanded row.
 
- 
getCurrentFieldWidthsReturns an array of widths of the visible fields in thisListGrid, in px. This method is implemented by callinggetFieldWidth()for each field. If field widths cannot be determined, the returned array will contain nulls.- Returns:
- field widths in px
 
- 
setDefaultFieldWidthCustomizerMethod to calculate and return the default width of a field. This method is called to calculate the size of each field's content as part of thefield auto fitbehavior. Note that this method returns a size for content, so will not be consulted ifautoFitWidthApproachis set to"title".If ListGridField.defaultWidthis specified, this will be returned.Otherwise, the default implementation varies by field type. For fields of type"icon", or fields which show only avalueIconas a value, and for boolean fields which show a checkbox value, the width will be calculated based on the icon size andiconPadding. For other fields thegetFieldContentWidth()method will be used to calculate a width based on the rendered width of content. Note that for"image"type fields, this method will rely on theListGridField.imageWidthbeing specified.Note that this width is the default width of "content" - it does not take into account the rendered size of the field title. - Parameters:
- DefaultFieldWidthCustomizer- customizer
 
- 
getDefaultFormattedFieldValueGet a field value for some record with default field formatters applied.This method differs from getDefaultFormattedValue()in a couple of ways. Firstly, this method does not rely on the rowNum and colNum parameters to find the record and field in the grid.
 Secondly, unlikegetDefaultFormattedValue()this method will call any explicit cell formatter specified on the field passed in (though it will not call acomponent level formatterif one exists).This is useful for cases where a developer wishes to display a formatted value for some record and field combination which does not necessarily map to a cell displayed in the ListGrid. If rowNumandcolNumparameters are passed through to the field level cell formatter if one exists. If not explicitly provided these are defaulted to -1.- Parameters:
- record- the record object
- field- the field object
- Returns:
- Default formatted value
- See Also:
 
- 
getDefaultFormattedFieldValue
- 
getDefaultFormattedFieldValuepublic String getDefaultFormattedFieldValue(Record record, ListGridField field, int rowNum, int colNum) Get a field value for some record with default field formatters applied.This method differs from getDefaultFormattedValue()in a couple of ways. Firstly, this method does not rely on the rowNum and colNum parameters to find the record and field in the grid.
 Secondly, unlikegetDefaultFormattedValue()this method will call any explicit cell formatter specified on the field passed in (though it will not call acomponent level formatterif one exists).This is useful for cases where a developer wishes to display a formatted value for some record and field combination which does not necessarily map to a cell displayed in the ListGrid. If rowNumandcolNumparameters are passed through to the field level cell formatter if one exists. If not explicitly provided these are defaulted to -1.- Parameters:
- record- the record object
- field- the field object
- rowNum- rowNum (passed to any field level cell formatter)
- colNum- colNum (passed to any field level cell formatter)
- Returns:
- Default formatted value
- See Also:
 
- 
getDefaultFormattedValueGet the value for some cell with default formatters applied.This method is useful for cases where a developer wishes to conditionally customize a cell's formatting, but needs to see what the default formatted value would be. For example - a developer might wish to apply a custom formatterto somelinktype field, and be able to return the default active link HTML in some cases. In this case a formatter could check for the conditions in which custom formatting should be applied and run appropriate custom logic to generate a value for display - otherwise return the result of this method to leave the standard formatted-value intact.- Parameters:
- record- the cell's record object
- rowNum- rowNum for the cell
- colNum- colNum for the cell
- Returns:
- Cell value with default formatters applied
- See Also:
 
- 
getDrawAreaReturns the extents of the rows and columns currently visible in this grid's viewport.Note: if there are any frozen fields, they are not included in the draw area range returned by this method. Frozen fields are assumed to never be scrolled out of view. The column coordinates returned by this method will only include unfrozen columns.- Returns:
- The row/col co-ordinates currently visible in the viewport as [startRow, endRow, startCol, endCol].
 
- 
getDrawnRowHeightpublic int getDrawnRowHeight(int rowNum) Get the drawn height of a row.- Parameters:
- rowNum-
- Returns:
- height
- See Also:
 
- 
getEditColpublic int getEditCol()Returns the index of the column being edited or -1 if there is no current edit column.- Returns:
- index of the current edit column
- See Also:
 
- 
getEditedCellReturns the current value of a cell. If the cell has an outstanding edit value, this will be returned, otherwise the underlying value of the record will be returned.- Parameters:
- record- rowNum of the record being edited, or an Object containing values for all the record's primary keys
- field- colNum or fieldName of the cell
- Returns:
- Current edit value, or underlying value for the cell
- See Also:
 
- 
getEditRowpublic int getEditRow()Returns the index of the row being edited or -1 if there is no current edit row.- Returns:
- index of the current edit row
- See Also:
 
- 
getEditValueReturns the current temporary locally stored edit value for some field within a record being edited.- Parameters:
- rowNum- index of the row for which the editValue should be returned
- colNum- index of the field, or fieldName, for which value should be returned
- Returns:
- edit value for the field in question
- See Also:
 
- 
getEventColumnpublic int getEventColumn()Returns the column number of the provided X-coordinate, or the most recent mouse event if an X-coordinate is not provided.- Returns:
- column number, or -2 if beyond last drawn column
 
- 
getEventColumnReturns the column number of the provided X-coordinate, or the most recent mouse event if an X-coordinate is not provided.- Parameters:
- x- X-coordinate relative to the left edge of the content to obtain the column number for. If not provided, then- Canvas.getOffsetX()will be used.
- Returns:
- column number, or -2 if beyond last drawn column
 
- 
getEventRowpublic int getEventRow()Returns the row number of the provided Y-coordinate, or the most recent mouse event if a Y-coordinate is not provided.- Returns:
- row number, or -2 if beyond last drawn row
 
- 
getEventRowReturns the row number of the provided Y-coordinate, or the most recent mouse event if a Y-coordinate is not provided.- Parameters:
- y- Y-coordinate relative to the top edge of the content to obtain the row number for. If not provided, then- Canvas.getOffsetY()will be used.
- Returns:
- row number, or -2 if beyond last drawn row
 
- 
getExpandedRecords- Returns:
- All expanded records in the grid
 
- 
getExpansionComponentWhencanExpandRecordsis true, gets the embedded-component to show as a given record's expansionComponent. This component is then housed ina VLayoutand embedded into a record's row.By default, this method returns one of a set of built-in components, according to the value of listGrid.expansionMode. You can override this method to return any component you wish to provide as an expansionComponent.As long as the record is expanded, this component may be retrieved via a call to getCurrentExpansionComponent().When an expanded record is collapsed, the component is disassociated from the record and may or may not be automatically destroyed. By default, built-in components will be destroyed on unembed according to the pooling modebeing used. Custom expansion components, created via an override of getExpansionComponents(), will not be auto-destroyed - developers should overridecollapseRecord()to take care of clean-up for such components.- Parameters:
- record- record to get the expansionComponent for
- Returns:
- the component to embed
- See Also:
 
- 
getExportBGColorWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), background color to use for the cell at the given rowNum and colNum.See ExportBGColorfor an overview.- Parameters:
- rowNum- row number of cell
- colNum- column number of cell
- record- the record object behind the row being exported
- Returns:
- background color to use for the cell, or null to use the default                    background color.
 See CSSColor
 
- 
getExportColumnBGColorWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), background color to use for the given colNum.See ExportBGColorfor an overview.- Parameters:
- colNum- column number
- Returns:
- background color to use for the column, or null to use the default                    background color.
 See CSSColor
 
- 
getExportRowBGColorWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), background color to use for the given rowNum.See ExportBGColorfor an overview.- Parameters:
- rowNum- row number
- record- the record object behind the row being exported
- Returns:
- background color to use for the row, or null to use the default                    background color.
 See CSSColor
 
- 
getExportTextColorWhen exporting data to Excel/OpenOffice format usingexportData()orexportClientData(), text color to use for the cell at the given rowNum and colNum.Return null (the default function behavior) to allow hilite color, if any, to determine the text color.- Parameters:
- rowNum- row number of cell
- colNum- column number of cell
- record- the record object behind the row being exported
- Returns:
- text color to use for the cell, or null to use the default                    text color.
 See CSSColor
 
- 
getFieldGiven a column number or field name, return the field definition of a field which is visible in the grid. To retrieve the definition of any field, including hidden ones, usegetFieldByName().When using DataBinding, the field definition may be a mix of information derived fromfieldsanddataSource.- Parameters:
- colNum- number or name of the field
- Returns:
- field definition
 
- 
getFieldGiven a column number or field name, return the field definition of a field which is visible in the grid. To retrieve the definition of any field, including hidden ones, usegetFieldByName().When using DataBinding, the field definition may be a mix of information derived fromfieldsanddataSource.- Parameters:
- colNum- number or name of the field
- Returns:
- field definition
- See Also:
 
- 
getFieldByNameGiven a field name, return the appropriate field definition. UnlikegetField(), this method will return the field definition even if it's not visible in the grid.
- 
getFieldContentWidthReturns the pixel width of the content of a visible field in this grid.- Parameters:
- field- field to test
- Returns:
- drawn width of this fields content
 
- 
getFieldNameGiven a column number or field id, return the field name of a field.- Parameters:
- colNum- number or id of the field.
- Returns:
- Name of the field.
 
- 
getFieldNumGiven a field or field id, return it's index in the fields array- Parameters:
- fieldID- field number or field.name
- Returns:
- index of the field within this.fields
 
- 
getFieldNumpublic int getFieldNum(int fieldID) Given a field or field id, return it's index in the fields array- Parameters:
- fieldID- field number or field.name
- Returns:
- index of the field within this.fields
 
- 
getFieldSearchOperatorReturns the current search-operator applied to criteria for a given field in this grid'sfilter row. Typically, this will be the operator most recently selected by the user, or applied by a call tosetCriteria()or similar..If no operator has been applied by the user, the result is the default provided by the developer, or null, indicating a default operator according to data-type.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.- Parameters:
- fieldName- name of the field to get the search operator for
 
- 
getFieldTitleReturn the title of a field, specified by name or index.- Parameters:
- fieldId- name or index of the field
- Returns:
- Field title.
 
- 
getFieldTitleReturn the title of a field, specified by name or index.- Parameters:
- fieldId- name or index of the field
- Returns:
- Field title.
 
- 
getFieldWidthReturns a numeric value for the width of some field within thisListGrid.- Parameters:
- fieldNum- Index or name of the field for which the width is to be determined.
- Returns:
- width of the field in px, or nullif the width can't be determined.
 
- 
getFilterEditorCriteriaIfshowFilterEditoris true, this method will return the criteria currently displayed in thefilterEditor. Note that these values may differ from the criteria returned bygetCriteria()if the filter editor values have been modified without performing an actual filter.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.- Returns:
- criteria currently displayed in the filterEditor
 
- 
getFilterEditorCriteriaIfshowFilterEditoris true, this method will return the criteria currently displayed in thefilterEditor. Note that these values may differ from the criteria returned bygetCriteria()if the filter editor values have been modified without performing an actual filter.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.- Parameters:
- omitHiddenFields- By default this method will include criteria applied to fields, including criteria that are not actually visible/editable in the filterEditor for the grid. Pass in this parameter to get only values for visible fields returned.
- Returns:
- criteria currently displayed in the filterEditor
 
- 
getFilterEditorCriterionExtracts and returns the criteria for the passed field from thefilterEditor. The result can be anAdvancedCriteria, if the field in question produces more than one restriction, such as separategreaterThanandlessThancriteria for a range.- Parameters:
- fieldName- name of the field to get the criteria for
- Returns:
- the passed field's filterEditor criterion
 
- 
getFocusRowGet the row that currently has keyboard focus. Arrow key navigation moves relative to this row.- Returns:
- rowNum of the current focus row
 
- 
getFormattedRowCountReturns thecurrent total row countfor this grid as a formatted string.Due to progressiveLoading, an exact total row count may not be available. Depending on the currentrowCount status, this method will return a value in one of the following formats. Note that if the row count is not exact, the numeric value will be rounded to the nearest multiple ofrowCountDisplayPrecision.- "exact": The row count will be formatted using- exactRowCountFormat
- "minimum": The row count will be formatted using- minimumRowCountFormat
- "approximate": The row count will be formatted using- approximateRowCountFormat
- "maximum": The row count will be formatted using- maximumRowCountFormat
- "range": The row count range will be formatted using- rangeRowCountFormat
- "unknown": The- unknownRowCountDisplayValuewill be displayed
- "loading": The- loadingRowCountDisplayIconwill be displayed
 getRowRangeDisplayValue().- Returns:
- the formatted rowCount display value
- See Also:
 
- 
getFormattedRowRangeUses therowRangeFormatto return a formatted display value showing the currently visible set of rows in the listGrid viewport.If this listGrid has never been drawn, so has no meaningful "viewport", this method will return an empty string. See also getRowRangeDisplayValue()- Returns:
- formatted row range value
 
- 
getFrozenRollOverCanvasFor grids with frozen columns, this method is called to retrieve thefrozenRollOverCanvaswhen the user moves over a new row or cell ifshowRollOverCanvasis true, or when the user moves over the selected record ifshowSelectedRollOverCanvasis true.The default implementation uses the com.smartgwt.client.types.AutoChildsubystem to create thefrozenRollOverCanvasbased on therollOverCanvasauto child settings. It may be overridden for custom behavior.Note that for efficiency this should not typically create a new Canvas every time that it is called. Instead usually a single rollOver canvas should be created and updated to reflect the current rollOver row if necessary. Return null to avoid showing a rollOverCanvasfor this row.See also getRollOverCanvas().Note: This is an override point. - Parameters:
- rowNum- index of the current rollOver row.
- colNum- index of the current rollOver column. This parameter will be null unless- useCellRollOversis true for the grid.
- Returns:
- the embedded component
 
- 
getFrozenRollUnderCanvasFor grids with frozen columns, this method is called to retrieve thefrozenRollUnderCanvaswhenshowing a rollUnder canvasor showing arollUnder canvas for the selected record.The default implementation uses the com.smartgwt.client.types.AutoChildsubystem to create therollUnderCanvasauto child. It may be overridden for custom behavior.Note that for efficiency this should not typically create a new Canvas every time that it is called. Instead usually a single rollOver canvas should be created and updated to reflect the current rollOver row if necessary. Return null to avoid showing a rollUnderCanvasfor frozen fields for this row.See also getRollUnderCanvas().Note: This is an override point. - Parameters:
- rowNum- index of the current rollOver row.
- colNum- index of the current rollOver column. This parameter will be null unless- useCellRollOversis true for the grid.
- Returns:
- the embedded component
 
- 
getGridSummaryWhenshowGridSummaryistruethis method is called for each field which will show a grid summary value (as described inListGridField.showGridSummary) to get the summary value to display below the relevant column.The default implementation is as follows: - If this is a databound grid and not all data is loaded, returns null for every field
- Otherwise if ListGridField.getGridSummary()is defined, calls that method passing in the current data set for the grid
- If ListGridField.getGridSummary()is undefined, makes use of thestandard summary functionfor the field to calculate the summary based on the current data set
 This method may be overridden to completely customize the summary value displayed for columns in this grid. An example use case would be when summary information is available on the client and does not need to be calculated directly from the data. If you update this method after the grid has been drawn so that new summaries will be generated from the same data, the changes won't be reflected in any redrawsor other interaction until the nextdata change, unless you callrecalculateGridSummary().Note: this method will not be called if summaryRowDataSourceis specified.- Parameters:
- field- field for which the summary value should be returned
- Returns:
- summary value to display for the specified field.
 
- 
getGridSummaryDataThis method returns the data displayed in thesummaryRowwhenshowGridSummaryis true.By default this will call getGridSummary()for each field and generate an array of records containing the resulting values.This method may return multiple records if more than one summary row is desired. - Returns:
- summary record(s)
 
- 
getGroupedRecordIndexReturns the true row index for a grouped record excluding group and summary records. Records in closed groups are included in number.Function is not applicable for non-grouped grids and will return -1 if called. - Parameters:
- record- record to number
- Returns:
- row index for record or -1 for group or summary records
 
- 
getGroupSummaryDataIf this grid isgrouped, andshowGroupSummaryis true, this method will return the group summary data displayed at the end of the group.This method may return multiple records if more than one summary row per group is desired. - Parameters:
- records- the records in the group, for which the summary values are being calculated
- groupNode- object with specified groupValue and groupName for this group
- Returns:
- summary record(s)
 
- 
getGroupSummaryDatapublic ListGridRecord[] getGroupSummaryData(Record[] records, Record groupNode, Boolean recalculate) If this grid isgrouped, andshowGroupSummaryis true, this method will return the group summary data displayed at the end of the group.This method may return multiple records if more than one summary row per group is desired. - Parameters:
- records- the records in the group, for which the summary values are being calculated
- groupNode- object with specified groupValue and groupName for this group
- recalculate- if set to false and the node has existing summary data, returns the stored summary data, rather than recalculating
- Returns:
- summary record(s)
 
- 
getGroupTreeSelectionIf this gridis grouped, this method will return the current selection. Unlike the standardgetSelection method, this method will returngroup nodesin addition to standardListGridRecords within the grid's data.- Returns:
- Selected group header nodes and record data objects.   If this grid is not grouped, standard listGrid selectionwill be returned.
 
- 
getGroupTreeSelection- See Also:
 
- 
getGroupTreeSelectionpublic ListGridRecord[] getGroupTreeSelection(boolean excludePartialSelection, boolean groupNodesOnly) If this gridis grouped, this method will return the current selection. Unlike the standardgetSelection method, this method will returngroup nodesin addition to standardListGridRecords within the grid's data.- Parameters:
- excludePartialSelection- By default a group header node is considered selected if any members of the group are selected. If this flag is passed in, only header nodes where all members of the group are selected will be included in the returned results.
- groupNodesOnly- If this parameter is passed as- true, this method will return just the group header nodes from the group tree. If omitted or false, both header nodes and data records will be returned.
- Returns:
- Selected group header nodes and record data objects.   If this grid is not grouped, standard listGrid selectionwill be returned.
 
- 
getHeaderContextMenuItemsIfshowHeaderContextMenuistruethis method returns the menu items to be displayed in the default header context menu.This method is called at various times, including during redraws, as the mouse moves over a ListGrid header button and each time the menu is actually displayed - this allows for dynamic content depending on the current state of the grid and its fields. Consequently, this method should not instantiate any classes, because they'll be re-created on each call, resulting in a leak - your implementation should return an array of menuItem config-blocks only, so you shouldn't instantiate actual Menu instances to apply as the submenuof items - instead, set submenu to a simple array of menuItems. If your use-case necessitates that class instances are created, because specific submenus have a different Menu class, for example, you should keep a reference to them and either, if their content is dynamic, destroy and recreate them with the new items, or just return the existing instances otherwise.The default set of menu items includes items for built-in ListGrid features like showing and hiding fields, freezing fields or grouping by them, and other functions. - Parameters:
- fieldNum- Index of the field the user clicked in the- fieldsarray. Note: if the user right-clicked the sorter button this parameter will be- null.
- Returns:
- See Also:
 
- 
getHeaderSpanContextMenuItemsReturn the menus items that should be shown in a menu triggered from aheaderSpan. The default implementation returns the parent element's context menu, unlessshowHeaderSpanContextMenuistrue, in which case it returns standard items for showing / hiding fields and freezing / unfreezing header spans. Note that no column picker will be shown unlessshowTreeColumnPickeristrue.- Parameters:
- headerSpan- the component representing the headerSpan. This component will have all the properties specified via- headerSpans.
- Returns:
- return false instead to avoid showing any menu
 
- 
getRecordReturn the pointer to a particular record by record number. Synonym forgetCellRecord().- Parameters:
- recordNum- row index of record to return.
- Returns:
- Record object for the row.
- See Also:
- 
- com.smartgwt.client.widgets.grid.ListGrid#getCellRecord
- getEditedRecord(int)
 
 
- 
getRecordComponentRetrieve therecordComponentcurrently being shown at the given coordinates.recordComponentsare dynamically assigned to row/cell coordinates and, depending on therecordComponentPoolingMode, any kind of redraw of the containing ListGrid (due to sort change, scrolling, editing etc) may cause arecordComponentto be assigned to another row,clear()edor permanentlydestroy()ed.Hence you should always call getRecordComponent()right before taking action on therecordComponent- don't cache the component associated with row/cell coordinate. Similarly, it's invalid to callgetRecordComponent()during a redraw (for example, fromformattingcode).It's always invalid to try to use a recordComponentoutside of a ListGrid (by eg adding it to some other layout).If showRecordComponentsByCellis true and the colNum parameter is not passed, the call will return the first component in the passed rowNum.Returns null if there is no component at the specified coordinates. - Parameters:
- rowNum- row number to get record component for
- Returns:
- record component, or null if none is shown at these coordintes
- See Also:
 
- 
getRecordComponentRetrieve therecordComponentcurrently being shown at the given coordinates.recordComponentsare dynamically assigned to row/cell coordinates and, depending on therecordComponentPoolingMode, any kind of redraw of the containing ListGrid (due to sort change, scrolling, editing etc) may cause arecordComponentto be assigned to another row,clear()edor permanentlydestroy()ed.Hence you should always call getRecordComponent()right before taking action on therecordComponent- don't cache the component associated with row/cell coordinate. Similarly, it's invalid to callgetRecordComponent()during a redraw (for example, fromformattingcode).It's always invalid to try to use a recordComponentoutside of a ListGrid (by eg adding it to some other layout).If showRecordComponentsByCellis true and the colNum parameter is not passed, the call will return the first component in the passed rowNum.Returns null if there is no component at the specified coordinates. - Parameters:
- rowNum- row number to get record component for
- colNum- optional column number to get the record component for
- Returns:
- record component, or null if none is shown at these coordintes
- See Also:
 
- 
getRecordDropPositionReturns theRecordDropPositionfor some record drop operation. This value is passed to therecordDrop()event notification method.Default implementation determines the position to return based on the specified recordDropAppearancefor the grid and they-coordinate of the drop event.- Returns:
- record drop position.
 
- 
getRecordIndexGet the index of the provided record.This is essentially the same as calling listGrid.data.indexOf(record), except that the currently visible range of records is checked first. This is important for responsiveness in functions that respond to user actions when the user is working near the end of a very large dataset (eg 500k records). - Parameters:
- record- the record whose index is to be retrieved
- Returns:
- index of the record, or -1 if not found
 
- 
getRelatedDataSourceReturns theDataSourcecontaining data related to the passed record. Used whencanExpandRecordsis true andExpansionModeis "related". The default implementation returns the DataSource specified inListGridRecord.detailDSif set, otherwisedetailDS.- Parameters:
- record- The record to get the Related dataSource for.
- Returns:
- The related DataSource for the "record" param
 
- 
getRollOverCanvasThis method is called to retrieve therollOverCanvaswhen the user moves over a new row or cell ifshowRollOverCanvasis true, or when the user moves over the selected record ifshowSelectedRollOverCanvasis true.The default implementation uses the com.smartgwt.client.types.AutoChildsubystem to create therollOverCanvasauto child. It may be overridden for custom behavior.Note that for efficiency this should not typically create a new Canvas every time that it is called. Instead usually a single rollOver canvas should be created and updated to reflect the current rollOver row if necessary. Return null to avoid showing a rollOverCanvasfor this row.See also getFrozenRollOverCanvas().Note: This is an override point. - Parameters:
- rowNum- index of the current rollOver row.
- colNum- index of the current rollOver column. This parameter will be null unless- useCellRollOversis true for the grid.
- Returns:
- the embedded component
 
- 
getRollUnderCanvasThis method is called to retrieve therollUnderCanvaswhen the user moves over a new row or cell ifshowing a rollUnder canvasor showing arollUnder canvas for the selected record.The default implementation uses the com.smartgwt.client.types.AutoChildsubystem to create therollUnderCanvasauto child. It may be overridden for custom behavior.Note that for efficiency this should not typically create a new Canvas every time that it is called. Instead usually a single rollOver canvas should be created and updated to reflect the current rollOver row if necessary. Return null to avoid showing a rollUnderCanvasfor this row.See also getFrozenRollUnderCanvas().Note: This is an override point. - Parameters:
- rowNum- index of the current rollOver row.
- colNum- index of the current rollOver column. This parameter will be null unless- useCellRollOversis true for the grid.
- Returns:
- the embedded component
 
- 
getRowCountRetrieves therow countfor the grid, which may differ from the reporteddata lengthifprogressive loadingis enabled.See also getRowCountStatus()- Returns:
- current row count for the grid
- See Also:
 
- 
getRowCountRangeRetrieves therow count rangefor listGrids whereprogressive loadingis active and the row count has been specified as arange.The returned value will be a two element array, containing the min and max bounds for the row-count. Note that if the row count has not been recorded as a range, the first element in the array will be the row count, and the second element will be null.- Returns:
- minimum and maximum bounds for the row count
- See Also:
 
- 
getRowCountStatusThis method indicates whethergetRowCount()reflects an accurate row-count for this listGrid. An accurate row count may not currently be available ifprogressiveLoadingis active.See RowCountStatusfor further details.- Returns:
- Current row-count status for this grid
- See Also:
 
- 
getRowErrorsReturns any currently stored validation errors for this row in the following format:
 {fieldName:[array of error messages], ...}- Parameters:
- rowNum- index of row to check for validation errors.
- Returns:
- object showing validation error arrays by field for the row passed in - if no validation errors stored for the row, null is returned.
- See Also:
 
- 
getRowHeightReturn the height this row should be. Default is this.cellHeight. IffixedRecordHeightsis false, the row may be rendered taller than this specified size.If records will be variable height, you should switch on virtualScrolling.Note if row spanningis enabled, this method should return the height of a single row (with rowSpan set to 1).- Parameters:
- record- cell record as returned by getCellRecord
- rowNum- row number
- Returns:
- height in pixels
 
- 
getRowNumSynonym ofgetRecordIndex().- Parameters:
- record- the record whose index is to be retrieved
- Returns:
- index of the record, or -1 if not found
 
- 
getRowPageToppublic int getRowPageTop(int rowNum) Returns the Y-coordinate for a given row number as a page-relative coordinate. SeegetRowTop().- Parameters:
- rowNum-
- Returns:
- Y-coordinate
- See Also:
 
- 
getRowRangeDisplayValueThis method will return a row range summary display value containing the currently visible row range and row count for the data set.The RowRangeDisplaylabel autoChild shows this value as its contents.The format of the display value is governed by the RowRangeDisplayStyle- Returns:
- formatted row range summary value
- See Also:
 
- 
getRowToppublic int getRowTop(int rowNum) Returns the top coordinate for a given row number, relative to the top of body content. UsegetRowPageTop()for a page-relative coordinate.This method is reliable only for rows that are currently drawn, which is generally only rows that are visible in the viewport. If row heights vary (see fixedRowHeights), coordinates for rows that are not currently shown are rough approximations.- Parameters:
- rowNum-
- Returns:
- Y-coordinate
- See Also:
 
- 
getSavedViewStateReturns theview statefor this ListGrid as last saved by theautoPersistViewStatesetting.- Returns:
- last auto-saved view state for the grid.
 See ListGridViewState
- See Also:
 
- 
getSelectedRecordReturns the first selected record in this grid.This method is appropriate if the selectionTypeisSelectionStyle.SINGLE, or if you only care about the first selected record in a multiple-record selection. To access all selected records, usegetSelection()instead.NOTE: If a record is returned, it should be treated as read-only and not modified. - Returns:
- the first selected record, or null if no record is selected.
- See Also:
 
- 
getSelectedRecordsReturns all selected records in this grid.NOTE: Records in the returned array should be treated as read-only and not modified. - Returns:
- array of selected records, which will be empty if no record is selected.
- See Also:
 
- 
getSelectedRecordsReturns all selected records in this grid.NOTE: Records in the returned array should be treated as read-only and not modified. - Parameters:
- excludePartialSelections- When true, partially selected records will not be returned. Otherwise, both fully and partially selected records are returned.
- Returns:
- array of selected records, which will be empty if no record is selected.
- See Also:
 
- 
getSortReturns the currentSortSpecifiersfor this ListGrid. Will return null if this grid has never been sorted (and has no specifiedinitialSortorsortField).Note that if sorting was applied via sort()[rather thansetSort()] the sortSpecifiers returned will have been created based on the specified sort field / direction passed intosort().- Specified by:
- getSortin interface- DataBoundComponent
- Returns:
- current sort specifiers for this grid (may be null if this grid is unsorted).
 
- 
getSortFieldCountpublic int getSortFieldCount()Returns the number of fields involved in this grid's current sort configuration.- Returns:
- the number of fields this grid is currently sorted on.
 
- 
getSortNumeralHTMLWhen multiple fields are sorted, this method returns the HTML for the sort-numeral that appears after the sort-arrows in the header-buttons of sorted fields. If you don't want sort-numerals in the header-buttons, you can override this method to return null or an empty string, or setshowSortNumeralsto false.Note that the sortIndex passed in is zero based. The default implementation of this method returns an HTML element with the sortNumeralStyleapplied to it, containing the specified sortIndex incremented by 1 (therefore showing the more user-friendly 1-based numbering system).- Parameters:
- fieldName- The name of a sort-field to get the- sortNumeralHTML for.
- sortIndex- The sort index for the field.
- Returns:
- The HTML for this field's sortNumeral.
 See HTMLString
 
- 
getSortSpecifierReturns theSortSpecifierfor the passed fieldName, or null if the field is not sorted.
- 
getSummaryFieldValueGet the computed value of asummary field.- Parameters:
- field- field that has a summary format
- record- record to use to compute formula value
- Returns:
- formula result
 
- 
getToggleFreezeTextIf we're showing aheaderContextMenufor this grid andthis.canFreezeFieldsis true, this string will be shown as the title for the menu item to toggle whether a field is frozen or unfrozen.Default implementation evaluates and returns freezeFieldTextorunfreezeFieldTextdepending on whether the field is currently frozen.- Parameters:
- field- field to get the menu item title for
- Returns:
- Title to show in the menu item.
 See HTMLString
 
- 
getUserCriteriaStateReturns a snapshot of the current user-provided criteria for this ListGrid.This object can be passed to setUserCriteriaState()to reset this grid's user-criteria to the current state.- Returns:
- current criteria state for the grid.
 See ListGridUserCriteriaState
- See Also:
 
- 
getValueIconCursorReturns the cursor to display when the mouse pointer is over avalueIconin a a cell.Default behavior will display the ListGridField.iconCursorif specified, otherwise the"pointer"cursor if aListGridField.valueIconClick()hander is present. (If no valueIconClick handler is defined this method will return null and the cursor will be unchanged when the user rolls over the value icon image).- Parameters:
- field- field displaying the valueIcon
- record- record being rolled over
- value- value of this cell
- Returns:
- cursor to display when the user rolls over icons in this field's cells. May be null indicating no special cursor to display.
 
- 
addGroupByCompleteHandlerAdd a groupByComplete handler.Callback fired when the listGrid is grouped or ungrouped. Unlike ListGrid.groupBy(), this notification will fire when grouping is complete, and theListGrid.dataobject has been updated. On successful grouping thefieldsargument will list the new grouping and theListGrid.groupTreewill have been updated to reflect the grouped data.Note that the fieldsargument may be an empty array if the data is not grouped. This implies that a user or developer explicitly ungrouped the grid, or that a groupBy attempt failed due to the data length exceedingListGrid.groupByMaxRecords.By design, this method is not called when the data is regrouped, either programmatically, or in response to new data arriving from the server. You can use the callbackListGrid.groupTreeChanged()to be notified in that situation.If you monitor only this method and call ListGrid.groupBy()before data is fetched, the notification that you'll receive will be for grouping the initial (perhaps empty) data set only. To have this method actually trigger when grouping of the fetched data is done, you should avoid callingListGrid.groupBy()before the initial fetch, and instead do it in the thefetch callback.- Specified by:
- addGroupByCompleteHandlerin interface- HasGroupByCompleteHandlers
- Parameters:
- handler- the groupByComplete handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
groupSortNormalizerWhensortByGroupFirstis active, the sortingnormalizerapplied for implicit sorting by the field(s) used for grouping.No default implementation. - Parameters:
- record- record to normalize
- fieldName- name of the field on which sorting occurred. See- FieldName
- context- the grid is passed to allow property and method access
- Returns:
- normalized value for sorting
- See Also:
 
- 
addGroupStateChangedHandlerAdd a groupStateChanged handler.Notification method executed whenever the groupState of this grid changes. Group state is accessible via ListGrid.getGroupState(), and contains group state information.- Specified by:
- addGroupStateChangedHandlerin interface- HasGroupStateChangedHandlers
- Parameters:
- handler- the groupStateChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addGroupTreeChangedHandlerAdd a groupTreeChanged handler.Callback fired when a groupingoperation completes, whether it started as a direct call toListGrid.groupBy()orListGrid.regroup()or data changing, including incremental changes.If changeTypeis "groupBy",ListGrid.groupBy()should have been called at the beginning of the operation, andListGrid.groupByComplete()will be called immediately before this method. IfchangeTypeis "regroup", thenListGrid.regroup()should have been called at the beginning of the operation.- Specified by:
- addGroupTreeChangedHandlerin interface- HasGroupTreeChangedHandlers
- Parameters:
- handler- the groupTreeChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addGroupByHandlerAdd a groupBy handler.Callback fired when the user attempts to group or ungroup the listGrid, or when ListGrid.groupBy()is called programmatically. This event may be cancelled.This notification is fired before the datais updated to reflect the grouping. See alsoListGrid.groupByComplete().Note that this method is not called when the data is regrouped, either programmatically, or in response to new data arriving from the server, and such regrouping can't be canceled - instead use callbackListGrid.regroup().- Specified by:
- addGroupByHandlerin interface- HasGroupByHandlers
- Parameters:
- handler- the groupBy handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRegroupHandlerAdd a regroup handler.Callback fired when a regroup operation is begun, either from a direct call to ListGrid.regroup(), or because ofdata arriving from the serverwhen the grid is alreadygrouped.After this call, the Framework should eventually call ListGrid.groupTreeChanged().- Specified by:
- addRegroupHandlerin interface- HasRegroupHandlers
- Parameters:
- handler- the regroup handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
hasChangesWhether the grid as a whole has any unsaved edits, in any row. Note that this method will return true if any rows aremarked as removedin addition to any rows that have unsaved edits.Note that if this grid is bound to a dataSource, and an asynchronous save has been submitted, this method will compare the local edit values against the submitted values by default, returning false (no changes), if they match. This is useful for detecting whether the user is actively editing values and hasn't yet committed them.The ignorePendingValuesparameter may be used by developers who want to ignore this case and simply compare edit values against the record in the local data set.- Returns:
- returns true of any unsaved edits are present
- See Also:
 
- 
hasChangesWhether the grid as a whole has any unsaved edits, in any row. Note that this method will return true if any rows aremarked as removedin addition to any rows that have unsaved edits.Note that if this grid is bound to a dataSource, and an asynchronous save has been submitted, this method will compare the local edit values against the submitted values by default, returning false (no changes), if they match. This is useful for detecting whether the user is actively editing values and hasn't yet committed them.The ignorePendingValuesparameter may be used by developers who want to ignore this case and simply compare edit values against the record in the local data set.- Parameters:
- ignorePendingValues- If true, this method will compare the current edit values against the underlying records in the dataset, not taking pending edit values into account
- Returns:
- returns true of any unsaved edits are present
- See Also:
 
- 
hasErrorsDoes this grid currently have errors associated with editValues for any row in the grid.- Returns:
- true if there are unresolved errors, false otherwise
- See Also:
 
- 
addHeaderDoubleClickHandlerAdd a headerDoubleClick handler.Handle a double click in the list header. By default, calls ListGrid.autoFitField()ifListGrid.canAutoFitFieldsis true andListGrid.headerAutoFitEventis"doubleClick".- Specified by:
- addHeaderDoubleClickHandlerin interface- HasHeaderDoubleClickHandlers
- Parameters:
- handler- the headerDoubleClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addHeaderHoverHandlerAdd a headerHover handler.Handle a hover over a button in the header. - Specified by:
- addHeaderHoverHandlerin interface- HasHeaderHoverHandlers
- Parameters:
- handler- the headerHover handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
headerHoverHTMLReturns the HTML that is displayed by the defaultheaderHoverhandler. Return null or an empty string to cancel the hover.Use setHeaderHoverFormatter()to provide a custom implementation.- Parameters:
- fieldNum- field number for the header that was hovered
- defaultHTML- the HTML that would have been displayed by default. See- HTMLString
- Returns:
- HTML to be displayed in the hover. If null or an empty string, then the hover is canceled.
 See HTMLString
- See Also:
 
- 
headerTitleClippedpublic boolean headerTitleClipped(int fieldNum) Is the field title for the specified field clipped?- Parameters:
- fieldNum- field number for the header button title to test
- Returns:
- whether the field title for the specified field is clipped
- See Also:
 
- 
hideDragHandlespublic void hideDragHandles()Hides thedrag handle field, if currently shown.- See Also:
 
- 
hideFieldForce a field to be hidden.
 NOTE: If a field.showIf expression exists, it will be destroyed.Note also that if multiple fields are to be hidden it is more efficient to call hideFields()passing in the array of fields to hide rather than to call this method repeatedly. In particular, this will ensurerecalculateSummaries()is only run once.- Parameters:
- field- field to hide
- See Also:
 
- 
hideFieldForce a field to be hidden.
 NOTE: If a field.showIf expression exists, it will be destroyed.Note also that if multiple fields are to be hidden it is more efficient to call hideFields()passing in the array of fields to hide rather than to call this method repeatedly. In particular, this will ensurerecalculateSummaries()is only run once.- Parameters:
- field- field to hide
- suppressRelayout- if passed, don't relayout non-explicit sized fields to fit the available space
- See Also:
 
- 
hideFieldsForce an array of fields to be hidden.NOTE: If a field.showIf expression exists, it will be destroyed. When hiding multiple fields, this method should be called rather than calling hideField()repeatedly for each field to hide.- Parameters:
- fields- fields to hide
 
- 
hideFieldsForce an array of fields to be hidden.NOTE: If a field.showIf expression exists, it will be destroyed. When hiding multiple fields, this method should be called rather than calling hideField()repeatedly for each field to hide.- Parameters:
- fields- fields to hide
 
- 
hideFieldsForce an array of fields to be hidden.NOTE: If a field.showIf expression exists, it will be destroyed. When hiding multiple fields, this method should be called rather than calling hideField()repeatedly for each field to hide.- Parameters:
- fields- fields to hide
- suppressRelayout- if passed, don't relayout non-explicit sized fields to fit the available space
 
- 
addHilitesChangedHandlerAdd a hilitesChanged handler.Notification method executed whenever the end user uses the HiliteEditor to change the set of hilites applied to this grid. This method will not be called after a purely programmatic change to the hilites made with a call to setHilites(). The array of currently applied hilite objects is accessible viagetHilites().- Specified by:
- addHilitesChangedHandlerin interface- HasHilitesChangedHandlers
- Parameters:
- handler- the hilitesChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
hiliteViaAIIf hilite-via-AI is enabled (seecanHiliteViaAI), asks AI to hilite the grid according to the given natural language description of the hilite(s) to apply.- Parameters:
- prompt- The natural language description of hilite(s).
 
- 
hiliteViaAI- See Also:
 
- 
hiliteViaAIpublic void hiliteViaAI(String prompt, HiliteViaAISettings settings, HiliteViaAIResultCallback callback) If hilite-via-AI is enabled (seecanHiliteViaAI), asks AI to hilite the grid according to the given natural language description of the hilite(s) to apply.- Parameters:
- prompt- The natural language description of hilite(s).
- settings- Optional settings to use.
- callback- Optional callback to fire with the result.
 
- 
invalidateRecordComponentspublic void invalidateRecordComponents()Invalidates the currently visible set ofrecordComponentsand gets fresh ones for the visible rows in the grid according to therecordComponentPoolingModeSee also refreshRecordComponent()which allows you to refresh a specific recordComponent
- 
isCheckboxFieldIdentifies whether the passed-in field is the specially generatedcheckboxFieldused whenSelectionAppearanceis "checkbox". Use this method in your custom event handlers to avoid inappropriately performing actions when the checkboxField is clicked on.- Parameters:
- field- field to test
- Returns:
- whether the provided field is the checkbox field
 
- 
isExpandedWhether a givenrecordis expanded or collapsed.- Parameters:
- record- record in question
- Returns:
- true if the node is expanded
 
- 
isExpansionFieldIdentifies whether the passed-in field is the specially generatedexpansionFieldused whencanExpandRecordsis true. Use this method in your custom event handlers to avoid inappropriately performing actions when the expansionField is clicked on.- Parameters:
- field- field to test
- Returns:
- whether the provided field is the expansion field
 
- 
isExportingClientDatapublic boolean isExportingClientData()Returns true if this component is currentlyexporting client data. This method can be called from custom cell formatters if you need to return a different formatted value for an export than for a live ListGrid- Returns:
- returns true if this component is currently exporting client data
- See Also:
 
- 
isGroupNodeIf this listGrid isgrouped, is the record passed in a group header node.- Parameters:
- record- record to test
- Returns:
- returns true if the record passed in is a group header node
 
- 
isPartiallySelectedWhen using tree-oriented selection modes likeTreeGrid.cascadeSelection, returns true if the record is considered partially selected because only some of it's children are selected.- Parameters:
- record- record to check
- Returns:
- true if record is partially selected; false otherwise
- See Also:
 
- 
isRowNumberFieldIdentifies whether the passed-in field is the specially generatedrowNumberFieldused whenshowRowNumbersis true. Use this method in your custom event handlers to avoid inappropriately performing actions when the rowNumberField is clicked on.- Parameters:
- field- field to test
- Returns:
- whether the provided field is the rowNumberField
 
- 
isSelectedReturns true if the record is selected.- Parameters:
- record- record to check
- Returns:
- true if record is selected; false otherwise
- See Also:
 
- 
isSortFieldReturnstrueif the passed fieldName is in the current sort-specification.
- 
isSummaryRecordReturns whether the supplied record is a group or grid summary record. Useful in conjunction withgetGroupMembers()for determining which records are group summary records.- Parameters:
- record- Record object such as from- getGroupMembers()
- Returns:
- whether record is summary
 
- 
loadAllRecordsLoads all records that match this grid's current filter-criteria, optionally firing a callback when the data arrives.If the length of the data is not known, or is greater than the passed maxRecords, this call returns false. No fetch is issued and the callback, if passed, is not fired.If all data is already loaded, no fetch is issued and this call returns true. The callback, if passed, will be fired, but its parameters will be null, since there was no fetch to provide the values from.In all other cases, this call returns true and a fetch is issued for all necessary records. When the data arrives, the callback is fired. - Returns:
- true if a fetch was made or was not needed - false otherwise
 
- 
loadAllRecords- See Also:
 
- 
loadAllRecordsLoads all records that match this grid's current filter-criteria, optionally firing a callback when the data arrives.If the length of the data is not known, or is greater than the passed maxRecords, this call returns false. No fetch is issued and the callback, if passed, is not fired.If all data is already loaded, no fetch is issued and this call returns true. The callback, if passed, will be fired, but its parameters will be null, since there was no fetch to provide the values from.In all other cases, this call returns true and a fetch is issued for all necessary records. When the data arrives, the callback is fired. - Parameters:
- maxRecords- optional maximum record count - if passed, no fetch takes place if maxRecords is below the known length of the data
- callback- callback to fire if a fetch is issued - if all data was already loaded, the callback is fired with no parameters
- Returns:
- true if a fetch was made or was not needed - false otherwise
 
- 
markForRedrawpublic void markForRedraw()Marks the widget as "dirty" so that it will be added to a queue for redraw. Redraw of dirty components is handled by a looping timer and will after a very short delay (typically less than 100ms). In most cases it is recommended that developers usemarkForRedraw()instead of callingCanvas.redraw()directly. Since this method queues the redraw, multiple calls to markForRedraw() within a single thread of execution will only lead to a single DOM manipulation which greatly improves application performance.- Overrides:
- markForRedrawin class- Canvas
- See Also:
 
- 
markForRedrawMarks the widget as "dirty" so that it will be added to a queue for redraw. Redraw of dirty components is handled by a looping timer and will after a very short delay (typically less than 100ms). In most cases it is recommended that developers usemarkForRedraw()instead of callingCanvas.redraw()directly. Since this method queues the redraw, multiple calls to markForRedraw() within a single thread of execution will only lead to a single DOM manipulation which greatly improves application performance.- Overrides:
- markForRedrawin class- Canvas
- Parameters:
- reason- reason for performing the redraw
- See Also:
 
- 
markRecordRemovedpublic void markRecordRemoved(int rowNum) Marks a record deleted such that a later call tosaveEdits()orsaveAllEdits()will cause a "remove"DSRequestto be submitted.A removed record is disabled and non-editable, and uses removedCSSTextfor its CSS style, which by default will show strikethrough text.Contrast this method with removeSelectedData(), which immediately submits a DSRequest to remove the selected records from the dataset. Records that have been marked for removal using this method may be 'unmarked' via a call to unmarkRecordRemoved(), or by discarding edit values (discardEdits()).- Parameters:
- rowNum- row number for the record to mark
- See Also:
 
- 
markRecordsRemovedMarks an array of records deleted such that a later call tosaveEdits()orsaveAllEdits()will cause a "remove"DSRequestto be submitted.This method is similar to markRecordRemoved()but should be more efficient in avoiding unneeded duplicate refreshes due to the multiple records getting marked.- Parameters:
- records- records or indices to mark removed
- See Also:
 
- 
markRecordsRemovedpublic void markRecordsRemoved(int records) Marks an array of records deleted such that a later call tosaveEdits()orsaveAllEdits()will cause a "remove"DSRequestto be submitted.This method is similar to markRecordRemoved()but should be more efficient in avoiding unneeded duplicate refreshes due to the multiple records getting marked.- Parameters:
- records- records or indices to mark removed
- See Also:
 
- 
markRecordsRemovedMarks an array of records deleted such that a later call tosaveEdits()orsaveAllEdits()will cause a "remove"DSRequestto be submitted.This method is similar to markRecordRemoved()but should be more efficient in avoiding unneeded duplicate refreshes due to the multiple records getting marked.- Parameters:
- records- records or indices to mark removed
- See Also:
 
- 
markSelectionRemovedpublic void markSelectionRemoved()Marks the currently selected records as removed, as thoughmarkRecordRemoved()had been called.- See Also:
 
- 
addBodyKeyPressHandlerAdd a bodyKeyPress handler.Handle a keyPress event on the body. Default implementation handles navigating between records with arrow keys, and activating records with space and enter. - Specified by:
- addBodyKeyPressHandlerin interface- HasBodyKeyPressHandlers
- Parameters:
- handler- the bodyKeyPress handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRecordCollapseHandlerAdd a recordCollapse handler.Handler fired when a record is collapsed in a grid with canExpandRecordsset to true. Allows the collapse to be cancelled.- Specified by:
- addRecordCollapseHandlerin interface- HasRecordCollapseHandlers
- Parameters:
- handler- the recordCollapse handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRecordExpandHandlerAdd a recordExpand handler.Handler fired when a record is expanded in a grid with canExpandRecordsset to true. Allows the expansion to be cancelled.- Specified by:
- addRecordExpandHandlerin interface- HasRecordExpandHandlers
- Parameters:
- handler- the recordExpand handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addHeaderClickHandlerAdd a headerClick handler.Handler fired when the user clicks a header in this listGrid before any other processing occurs. Call HeaderClickEvent.cancel()from withinHeaderClickHandler.onHeaderClick(com.smartgwt.client.widgets.grid.events.HeaderClickEvent)to suppress the default header click handling- Specified by:
- addHeaderClickHandlerin interface- HasHeaderClickHandlers
- Parameters:
- handler- the headerClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRecordClickHandlerAdd a recordClick handler.Executed when the listGrid receives a 'click' event on an enabled, non-separator record. The default implementation does nothing -- override to perform some action when any record or field is clicked. 
 A record event handler can be specified either as a function to execute, or as a string of script to evaluate. If the handler is defined as a string of script, all the parameters below will be available as variables for use in the script.
 To do something specific if a particular field is clicked, add a recordClick method or string of script to that field (same parameters) when you're setting up the list.
 Notes:- This will not be called if the click is below the last item of the list.
- This method is called from the default implementation of ListGrid.rowClick(), so if that method is overridden this method may not be fired.
 - Specified by:
- addRecordClickHandlerin interface- HasRecordClickHandlers
- Parameters:
- handler- the recordClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRecordDropHandlerAdd a recordDrop handler.Process a drop of one or more records on a ListGrid record. This method can be overridden to provide custom drop behaviors, and is a more appropriate override point than the lower level Canvas.drop()handler.If this is a self-drop, records are simply reordered. For a drop from another widget, ListGrid.transferDragData()is called, which depending on thedragDataActionspecified on the source widget, may either remove the source records from the original list (dragDataAction:"move") or just provide a copy to this list (dragDataAction:"copy").If this grid is databound, the new records will be added to the dataset by calling DataSource.addData(). Further, if the new records were dragged from another databound component, andaddDropValuesis true,getDropValueswill be called for every item being dropped.For multi-record drops, Queuing is automatically used to combine all DSRequests into a single HTTP Request (see QuickStart Guide, Server Framework chapter). This allows the server to persist all changes caused by the drop in a single transaction (and this is automatically done when using the built-in server DataSources with Power Edition and above). Note that reordering records has no effect on a databound grid. The newly dropped data is then selected automatically. If these default persistence behaviors are undesirable, Call RecordDropEvent.cancel()from withinRecordDropHandler.onRecordDrop(com.smartgwt.client.widgets.grid.events.RecordDropEvent)to cancel them, then and implement your own behavior, typically by using grid.updateData() or addData() to add new records.NOTE: the records you receive in this event are the actual Records from the source component. Use DataSource.copyRecords()to create a copy before modifying the records or using them with updateData() or addData().NOTE: for a drop beyond the last visible record of a ListGrid, targetRecordwill be null and theindexwill be one higher than the last record. This includes a drop into an empty ListGrid, whereindexwill be 0.- Specified by:
- addRecordDropHandlerin interface- HasRecordDropHandlers
- Parameters:
- handler- the recordDrop handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRemoveRecordClickHandlerAdd a removeRecordClick handler.Handler fired when the user clicks the "remove" icon if ListGrid.canRemoveRecordsis true. Default behavior will remove the record from the data set, or if we'redeferring removalmark the record as removed [or for records already marked as removed, clear this removed marker].If ListGrid.warnOnRemovalis set, this method will also show a warning dialog to users allowing them to cancel the removal.This event may be cancelled to suppress the default behavior. - Specified by:
- addRemoveRecordClickHandlerin interface- HasRemoveRecordClickHandlers
- Parameters:
- handler- the removeRecordClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
openGroupOpens the node represented by the "record" parameter, if it is a folder and is not already open. This method only applies togroupedListGrids.- Parameters:
- record- node to open
- Returns:
- true if the node was opened, false if it was not (either because it is not a folder, or because it was already open)
 
- 
recalculateGridSummarypublic void recalculateGridSummary()Refresh thegrid summary, by either re-calculating from already-loaded data or doing a new fetch from thesummaryRowDataSource.Note unlike recalculateSummaries(), this method will not force a refresh of field-level summaries (seeListGridField.recordSummaryFunction) or group level summaries (seeshowGroupSummary).
- 
recalculateSummariespublic void recalculateSummaries()Recalculates values for fields withsummary-functionsoruser formulaedefined and for values displayed in thegrid summaryandgroup summary rows.
- 
recalculateSummaries- See Also:
 
- 
recalculateSummariesRecalculates values for fields withsummary-functionsoruser formulaedefined and for values displayed in thegrid summaryandgroup summary rows.- Parameters:
- records- Optional array of records to recalculate summaries for, or null for all records
- fields- Optional array of fields to recalculate summaries for, or null for all fields- Note that the records should be from - data; thus, if the grid is grouped, the records should be from the grouped data rather than- originalData.
 
- 
recordClickpublic Boolean recordClick(ListGrid viewer, ListGridRecord record, int recordNum, ListGridField field, int fieldNum, Object value, Object rawValue, ListGridRecord editedRecord) Executed when the listGrid receives a 'click' event on an enabled, non-separator record. The default implementation does nothing -- override to perform some action when any record or field is clicked.
 A record event handler can be specified either as a function to execute, or as a string of script to evaluate. If the handler is defined as a string of script, all the parameters below will be available as variables for use in the script.
 To do something specific if a particular field is clicked, add a recordClick method or string of script to that field (same parameters) when you're setting up the list.
 Notes:- This will not be called if the click is below the last item of the list.
- This method is called from the default implementation of rowClick(), so if that method is overridden this method may not be fired.
 - Parameters:
- viewer- the listGrid that contains the click event
- record- the record that was clicked on
- recordNum- number of the record clicked on in the current set of displayed records (starts with 0)
- field- the field that was clicked on (field definition)
- fieldNum- number of the field clicked on in the listGrid.fields array
- value- value of the cell (after valueMap, etc. applied)
- rawValue- raw value of the cell (before valueMap, etc applied)
- editedRecord- the clicked record with any unsaved edit values overlaid (see- listGrid.getEditedRecord()).
- Returns:
- return false to cancel default behavior
- See Also:
 
- 
addRecordDoubleClickHandlerAdd a recordDoubleClick handler.Executed when the listGrid receives a 'doubleClick' event on an enabled, non-separator record. The default implementation does nothing -- override to perform some action when any record or field is double clicked. 
 A record event handler can be specified either as a function to execute, or as a string of script to evaluate. If the handler is defined as a string of script, all the parameters below will be available as variables for use in the script.
 To do something specific if a particular field is double clicked, add a recordDoubleClick method or string of script to that field (same parameters) when you're setting up the list.
 Notes:- This will not be called if the click is below the last item of the list.
- This method is called from the default implementation of ListGrid.rowDoubleClick(), so if that method is overridden this method may not be fired.
 - Specified by:
- addRecordDoubleClickHandlerin interface- HasRecordDoubleClickHandlers
- Parameters:
- handler- the recordDoubleClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
recordMarkedAsRemovedReturns true if the specified record is marked as removed via a call tomarkRecordRemoved()- Parameters:
- rowNum- index of row to verify
- Returns:
- true if the specified record has been marked for removal
- See Also:
 
- 
redrawHeaderpublic void redrawHeader(boolean rightNow) Redraw just thegrid header- Parameters:
- rightNow- If true, redraw the grid header with a direct inline call to its redraw() method. Otherwise,- mark the header for redraw
 
- 
refreshCellpublic void refreshCell(int rowNum, int colNum) Refresh an individual cell without redrawing the grid.The cell's value, CSS class, and CSS text will be refreshed, to the current values returned by getCellValue(), getCellStyle(), and getCellCSSText(), respectively. Also, if displaying a standard hover (not a hover component), re-checks to see if the hover should continue to be displayed, hiding the hover if not, or updating the hover if so. - Parameters:
- rowNum- row number of cell to refresh
- colNum- column number of cell to refresh
- See Also:
 
- 
refreshCellStylepublic void refreshCellStyle(int rowNum, int colNum) Refresh the styling of an individual cell without redrawing the grid.The cell's CSS class and CSS text will be refreshed, to the current values returned by getCellStyle() and getCellCSSText() respectively. The cell's contents (as returned by getCellValue()) will not be refreshed. To refresh both styling and contents, call refreshCell() instead. - Parameters:
- rowNum- row number of cell to refresh
- colNum- column number of cell to refresh
- See Also:
 
- 
refreshDatapublic void refreshData()UnlikeinvalidateCachethis will perform an asynchronous (background) refresh of this component's data and then call the provided callback method on completion. A grid needs to have aDataSourceassociated with it to use this method.If refreshData()is called while the grid is waiting for a response fromfetchData()therefreshData()call will be aborted. This is because the fetch has higher priority.If fetchData()is called while the grid is waiting for a response fromrefreshData()and thefetchData()call has altered the criteria or sort specifiers, therefreshData()call will be aborted.If data is being edited or has been edited without being saved when refreshData()is called, the data will be retained so you can save it after the refresh is complete. If you however want to throw away your edited but unsaved data when callingrefreshData()you first need to calldiscardAllEdits()which will discard any unsaved edited data.Note that for a TreeGrid with TreeGrid.loadDataOnDemand: true, all currently opened parent nodes will be re-fetched, except forpagedTreeGrids, for which only opened parent nodes that are visible or contain visible children are re-fetched. We do this in a single queued batch of fetches to maximize efficiency.Except for changes to the dataset length, dataChanged()is not fired afterrefreshData(), as the Framework is not in a position to know for sure if data has actually changed (which would require traversing the entire dataset to determine) and whether criteria, sort or other specifiers of the dataset also have not changed. Applications that need to take action onrefreshData()should use the callback to do so.
- 
refreshDataUnlikeinvalidateCachethis will perform an asynchronous (background) refresh of this component's data and then call the provided callback method on completion. A grid needs to have aDataSourceassociated with it to use this method.If refreshData()is called while the grid is waiting for a response fromfetchData()therefreshData()call will be aborted. This is because the fetch has higher priority.If fetchData()is called while the grid is waiting for a response fromrefreshData()and thefetchData()call has altered the criteria or sort specifiers, therefreshData()call will be aborted.If data is being edited or has been edited without being saved when refreshData()is called, the data will be retained so you can save it after the refresh is complete. If you however want to throw away your edited but unsaved data when callingrefreshData()you first need to calldiscardAllEdits()which will discard any unsaved edited data.Note that for a TreeGrid with TreeGrid.loadDataOnDemand: true, all currently opened parent nodes will be re-fetched, except forpagedTreeGrids, for which only opened parent nodes that are visible or contain visible children are re-fetched. We do this in a single queued batch of fetches to maximize efficiency.Except for changes to the dataset length, dataChanged()is not fired afterrefreshData(), as the Framework is not in a position to know for sure if data has actually changed (which would require traversing the entire dataset to determine) and whether criteria, sort or other specifiers of the dataset also have not changed. Applications that need to take action onrefreshData()should use the callback to do so.- Parameters:
- callback- callback method to run once the refresh completes.
- See Also:
 
- 
refreshFieldspublic void refreshFields()Re-evaluatesListGridField.showIf()for each field, dynamically showing and hiding the appropriate set of fields
- 
refreshRecordComponentpublic void refreshRecordComponent(int rowNum) Discards anyrecordComponentcurrently assigned to the specified record (or cell) and gets a fresh one, according to therecordComponentPoolingModeSee also invalidateRecordComponents()which allows you to refresh all record components that are currently visible in the grid.- Parameters:
- rowNum- Row to refresh
 
- 
refreshRecordComponentDiscards anyrecordComponentcurrently assigned to the specified record (or cell) and gets a fresh one, according to therecordComponentPoolingModeSee also invalidateRecordComponents()which allows you to refresh all record components that are currently visible in the grid.- Parameters:
- rowNum- Row to refresh
- colNum- Column to refresh. This parameter should be passed if- showRecordComponentsByCellis true.
 
- 
refreshRowpublic void refreshRow(int rowNum) Refresh an entire row of cells without redrawing the grid.The cells' values, CSS classes, and CSS text will be refreshed, to the current values returned by getCellValue(), getCellStyle() and getCellCSSText(), respectively. Also, if displaying a standard hover (not a hover component), re-checks to see if the hover should continue to be displayed, hiding the hover if not, or updating the hover if so. - Parameters:
- rowNum- row number of cell to refresh
- See Also:
 
- 
regrouppublic void regroup()Programmatically regroup the grid according to the current grouping configuration.- See Also:
 
- 
removeDataRemove a record from this ListGrid.If this grid is bound to a DataSource, it will perform a DataSource "remove" operation to remove records from this component's DataSource. Otherwise the data will be removed from the grid's dataobject.To make changes to the local data object even when a DataSource is present, use saveLocally.- Parameters:
- data- listGrid record, or primary key values of record to delete.
- See Also:
 
- 
removeData
- 
removeDataRemove a record from this ListGrid.If this grid is bound to a DataSource, it will perform a DataSource "remove" operation to remove records from this component's DataSource. Otherwise the data will be removed from the grid's dataobject.To make changes to the local data object even when a DataSource is present, use saveLocally.- Parameters:
- data- listGrid record, or primary key values of record to delete.
- callback- method to call on operation completion. Note that if this is method does not trigger a dataSource remove operation, the callback will still be fired when the data has been removed, but the- dsResponseparameter will be null.
- requestProperties- additional properties to set on any DSRequest that will be issued
- See Also:
 
- 
removeEmbeddedComponentRemoves an embedded component previously associated with the provided record. If a Canvas is passed as therecordparameter, it is assumed to be a component and the record is detected automatically from it. IfdestroyOnUnEmbedistruefor the component, it will also be destroyed.- Parameters:
- record- record that the component was previously attached to or the component itself
 
- 
removeEmbeddedComponentRemoves an embedded component previously associated with the provided record. If a Canvas is passed as therecordparameter, it is assumed to be a component and the record is detected automatically from it. IfdestroyOnUnEmbedistruefor the component, it will also be destroyed.- Parameters:
- record- record that the component was previously attached to or the component itself
- component- component to unembed, or the colNum in which it appears
 
- 
removeRecordClickpublic void removeRecordClick(int rowNum) Method fired when the user clicks the "remove" icon ifcanRemoveRecordsis true. Default behavior will remove the record from the data set, or if we'redeferring removalmark record as removed [or for records already marked as removed, clear this removed marker].If warnOnRemovalis set, this method will also show a warning dialog to users allowing them to cancel the removal.This method may be called directly to cause a record to be removed or marked for removal as if the user had hit the "remove" icon. To be notified when a "remove" click occurs, developers should add a * RemoveRecordClickHandler.- Parameters:
- rowNum- Row on which the icon was clicked
 
- 
removeSelectedDatapublic void removeSelectedData()Remove the currently selected records from this component. If this is a databound grid, the records will be removed directly from the DataSource. The grid will automatically be updated if the record deletion succeeds.If no records are selected, no action is taken and neither callback will be called. For a grid with no DataSource or where saveLocallyis true, the data removal is performed on the client and both callbacks will fire with no arguments.- See Also:
 
- 
removeSelectedData- See Also:
 
- 
removeSelectedData- See Also:
 
- 
removeSelectedDatapublic void removeSelectedData(DSCallback callback, DSRequest requestProperties, RPCQueueCallback queueCallback) Remove the currently selected records from this component. If this is a databound grid, the records will be removed directly from the DataSource. The grid will automatically be updated if the record deletion succeeds.If no records are selected, no action is taken and neither callback will be called. For a grid with no DataSource or where saveLocallyis true, the data removal is performed on the client and both callbacks will fire with no arguments.- Parameters:
- callback- callback to fire when each record has been removed
- requestProperties- additional properties to set on the DSRequest that will be issued
- queueCallback- callback to fire after all selected data has been removed
- See Also:
 
- 
reorderFieldpublic void reorderField(int fieldNum, int moveToPosition) Reorder a particular field- Parameters:
- fieldNum- Number of the field to reorder
- moveToPosition- New position for that field
 
- 
reorderFieldspublic void reorderFields(int start, int end, int moveDelta) Reorder a set of adjacent fields, from start to end exclusive at the end, by distance moveDelta.
 NOTE: start and end coordinates are in terms of the currently visible fields, not the full set of fields.- Parameters:
- start- Start of the range of fields to move, inclusive
- end- End of the range of fields to move, non-inclusive
- moveDelta- Distance to move by
 
- 
resizeFieldpublic void resizeField(int fieldNum, int newWidth) Resize a particular field to a new width. Note that this method will also setListGridField.autoFitWidthto false if it was previously true.- Parameters:
- fieldNum- Number of the field to resize
- newWidth- New width of the field
 
- 
resortpublic void resort()If a list has become unsorted due to data modification or a call tounsort(), this method will resort the list by the previoussort-specifierarray, if there is one, or by the previous sort-field and -direction.
- 
rowClickEvent handler for when rows in the body are clicked upon. The default implementation handles firingstartEditing()if appropriate, and firesListGridField.recordClick()and/orrecordClick()if set. Developers should typically implement recordClick rather than overriding this method.Note that this method fires in addition to any specified ListGrid.cellClick()handler (even if that method cancels the event as a whole by returningfalse).- Parameters:
- record- record object returned from getCellRecord()
- recordNum- index of the row where the click occurred
- fieldNum- index of the col where the click occurred
- See Also:
 
- 
rowClickEvent handler for when rows in the body are clicked upon. The default implementation handles firingstartEditing()if appropriate, and firesListGridField.recordClick()and/orrecordClick()if set. Developers should typically implement recordClick rather than overriding this method.Note that this method fires in addition to any specified ListGrid.cellClick()handler (even if that method cancels the event as a whole by returningfalse).- Parameters:
- record- record object returned from getCellRecord()
- recordNum- index of the row where the click occurred
- fieldNum- index of the col where the click occurred
- keyboardGenerated- indicates whether this was a synthesized record click in response to a keyboard event
- See Also:
 
- 
addRowContextClickHandlerAdd a rowContextClick handler.Called when a row receives a contextclick event. - Specified by:
- addRowContextClickHandlerin interface- HasRowContextClickHandlers
- Parameters:
- handler- the rowContextClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
rowDoubleClickEvent handler for when a body record is double-clicked.Default implementation fires 'editCell' if appropriate, and handles firing 'recordDoubleClick' stringMethod if defined at the field or LG level (That method has a different signature from this one) - Parameters:
- record- record object returned from getCellRecord()
- recordNum- index of the row where the click occurred
- fieldNum- index of the col where the click occurred
- See Also:
 
- 
rowDoubleClickpublic void rowDoubleClick(ListGridRecord record, int recordNum, int fieldNum, boolean keyboardGenerated) Event handler for when a body record is double-clicked.Default implementation fires 'editCell' if appropriate, and handles firing 'recordDoubleClick' stringMethod if defined at the field or LG level (That method has a different signature from this one) - Parameters:
- record- record object returned from getCellRecord()
- recordNum- index of the row where the click occurred
- fieldNum- index of the col where the click occurred
- keyboardGenerated- indicates whether this was a synthesized record doubleclick in response to a keyboard event
- See Also:
 
- 
addRowEditorEnterHandlerAdd a rowEditorEnter handler.Callback fired when the user starts editing a new row. - Specified by:
- addRowEditorEnterHandlerin interface- HasRowEditorEnterHandlers
- Parameters:
- handler- the rowEditorEnter handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRowEditorExitHandlerAdd a rowEditorExit handler.Callback fired when the user attempts to navigate away from the current edit row, or complete the current edit. Call RowEditorExitEvent.cancel()from withinRowEditorExitHandler.onRowEditorExit(com.smartgwt.client.widgets.grid.events.RowEditorExitEvent)from this method to cancel the default behavior (Saving / cancelling the current edit / moving to the next edit cell).- Specified by:
- addRowEditorExitHandlerin interface- HasRowEditorExitHandlers
- Parameters:
- handler- the rowEditorExit handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
rowHasChangesIf this listGrid can be edited, this method will return true if the row passed in has been edited, but the edits have not yet been saved to the ListGrid's data object.Note this method will not return true if a record has been marked as removed, but has no other changes. Developers can userecordMarkedAsRemoved()to check for this case.Note that if this grid is bound to a dataSource, and an asynchronous save has been submitted, this method will compare the local edit values against the submitted values by default, returning false (no changes), if they match. This is useful for detecting whether the user is actively editing values and hasn't yet committed them.The ignorePendingValuesparameter may be used by developers who want to ignore this case and simply compare edit values against the record in the local data set.- Parameters:
- rowNum- index of row to check for changes
- Returns:
- true if the row has changes.
- See Also:
 
- 
rowHasChangesIf this listGrid can be edited, this method will return true if the row passed in has been edited, but the edits have not yet been saved to the ListGrid's data object.Note this method will not return true if a record has been marked as removed, but has no other changes. Developers can userecordMarkedAsRemoved()to check for this case.Note that if this grid is bound to a dataSource, and an asynchronous save has been submitted, this method will compare the local edit values against the submitted values by default, returning false (no changes), if they match. This is useful for detecting whether the user is actively editing values and hasn't yet committed them.The ignorePendingValuesparameter may be used by developers who want to ignore this case and simply compare edit values against the record in the local data set.- Parameters:
- rowNum- index of row to check for changes
- ignorePendingValues- If true, this method will compare the current edit values against the underlying record in the dataset, not taking pending edit values into account
- Returns:
- true if the row has changes.
- See Also:
 
- 
rowHasErrorsDoes the specified row have unresolved errors?- Parameters:
- rowNum- rowNum to check for errors
- Returns:
- true if there are unresolved errors, false otherwise
- See Also:
 
- 
addRowHoverHandlerAdd a rowHover handler.Called when the mouse hovers over a row if this.canHover is true. Returning false will suppress the hover text from being shown if this.showHover is true. - Specified by:
- addRowHoverHandlerin interface- HasRowHoverHandlers
- Parameters:
- handler- the rowHover handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRowMouseDownHandlerAdd a rowMouseDown handler.Called when a row receives a mousedown event. - Specified by:
- addRowMouseDownHandlerin interface- HasRowMouseDownHandlers
- Parameters:
- handler- the rowMouseDown handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRowMouseUpHandlerAdd a rowMouseUp handler.Called when a row receives a mouseup event. - Specified by:
- addRowMouseUpHandlerin interface- HasRowMouseUpHandlers
- Parameters:
- handler- the rowMouseUp handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRowOutHandlerAdd a rowOut handler.Called when the mouse pointer leaves a row - Specified by:
- addRowOutHandlerin interface- HasRowOutHandlers
- Parameters:
- handler- the rowOut handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addRowOverHandlerAdd a rowOver handler.Called when the mouse pointer enters a row - Specified by:
- addRowOverHandlerin interface- HasRowOverHandlers
- Parameters:
- handler- the rowOver handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
saveEditspublic void saveEdits()Validates and saves edits within the row currently being edited (or another row with unsaved edits, if indicated).This method can be called to manually trigger saves if the default mechanisms of cell by cellor row by row saving are not suitable.The 'callback' parameter provides a notification when the save attempt completes, which is likely to be asynchronous for databound grids. Cases under which the callback will fire are: - Save completed successfully
- No changes to the edited row, so save not required
- Validation failure occurred on the client or on the server
 Other, standard callbacks such as ListGrid.editComplete(),ListGrid.editFailed()andListGrid.cellSaved()will fire normally.Note this method does not hide the inline editors if they are showing - to explicitly save and end editing, use the method 'endEditing()' If this method is called for a row which has been marked for deletion (see markRecordRemoved()) it will cause the record to be removed from the data-set.For more information on editing, see the editing overview.- See Also:
 
- 
saveEdits- See Also:
 
- 
saveEdits- See Also:
 
- 
saveEditsValidates and saves edits within the row currently being edited (or another row with unsaved edits, if indicated).This method can be called to manually trigger saves if the default mechanisms of cell by cellor row by row saving are not suitable.The 'callback' parameter provides a notification when the save attempt completes, which is likely to be asynchronous for databound grids. Cases under which the callback will fire are: - Save completed successfully
- No changes to the edited row, so save not required
- Validation failure occurred on the client or on the server
 Other, standard callbacks such as ListGrid.editComplete(),ListGrid.editFailed()andListGrid.cellSaved()will fire normally.Note this method does not hide the inline editors if they are showing - to explicitly save and end editing, use the method 'endEditing()' If this method is called for a row which has been marked for deletion (see markRecordRemoved()) it will cause the record to be removed from the data-set.For more information on editing, see the editing overview.- Parameters:
- editCompletionEvent- Event used to complete cell editing. Optional, and defaults to- "programmatic". Can be used by the- callbackmethod to perform custom actions such as navigation when the save completes.
- callback- Callback to fire on completion of the saving process. If no edits were made or client-side validation fails the callback will be fired synchronously at the end of this method.
 Takes the following parameters:
 - rowNum (Number) edited row number
 - colNum (Number) edited column number
 - editCompletionEvent (EditCompletionEvent) event passed in (defaults to- "programmatic")
 - success (boolean) false if the save was unable to complete due to a validation failure or server-side error.. See- Callback
- rowNum- Which row should be saved. If unspecified the current edit row is saved by default. Note that if there is no current edit row this method will no op.
- See Also:
 
- 
scrollToCellpublic void scrollToCell(int rowNum, int colNum) Will scroll the listGrid body such that the specified cell is visible close to the center of the viewport.This method has no effect if the cell is already visible in the viewport. When scrolling vertically, this will cause data to be automatically loaded if paging is activeand you scroll into an area of the data that isn't loaded. Only rows around the target row will be loaded, not all intervening rows. See alsoResultSet.Scrolling into an undrawn area will cause the body area of the grid to redraw, but this won't happen synchronously unless you explicitly call redraw(). Scrolling into an area of the data that is not yet loaded will never synchronously draw new rows, even if you call redraw() - wait for ListGrid.dataArrived()to be notified when new rows have been loaded.Calling this method with a row index larger than the current dataset will clamp to the end of the dataset (similarly horizontal scrolling will clamp to the last column). If a call to this method is made while data is still loading, such that the last row of the dataset is not yet known the grid will attempt to compensate by scrolling the record into view when data arrives, if it is valid. For better control over scrolling, developers should consider calling scrollToRow()orscrollToCellfromListGrid.dataArrived()if data is still loading.With mixed-height rows it will only reliably work if virtualScrolling is enabled. - Parameters:
- rowNum- Row index of the cell to scroll into view
- colNum- Column index of the cell to scroll into view
- See Also:
 
- 
scrollToCell- See Also:
 
- 
scrollToCellWill scroll the listGrid body such that the specified cell is visible close to the center of the viewport.This method has no effect if the cell is already visible in the viewport. When scrolling vertically, this will cause data to be automatically loaded if paging is activeand you scroll into an area of the data that isn't loaded. Only rows around the target row will be loaded, not all intervening rows. See alsoResultSet.Scrolling into an undrawn area will cause the body area of the grid to redraw, but this won't happen synchronously unless you explicitly call redraw(). Scrolling into an area of the data that is not yet loaded will never synchronously draw new rows, even if you call redraw() - wait for ListGrid.dataArrived()to be notified when new rows have been loaded.Calling this method with a row index larger than the current dataset will clamp to the end of the dataset (similarly horizontal scrolling will clamp to the last column). If a call to this method is made while data is still loading, such that the last row of the dataset is not yet known the grid will attempt to compensate by scrolling the record into view when data arrives, if it is valid. For better control over scrolling, developers should consider calling scrollToRow()orscrollToCellfromListGrid.dataArrived()if data is still loading.With mixed-height rows it will only reliably work if virtualScrolling is enabled. - Parameters:
- rowNum- Row index of the cell to scroll into view
- colNum- Column index of the cell to scroll into view
- xPosition- Horizontal position of scrolled cell (optional)
- yPosition- Vertical position of scrolled cell (optional)
- See Also:
 
- 
scrollToColumnpublic void scrollToColumn(int colNum) Scroll the grid to specified column such that the row appears near the center of the viewport.See scrollToCell()for a full description of how this method interacts with incremental loading and rendering of data.- Parameters:
- colNum- Index of the column to scroll into view
- See Also:
 
- 
scrollToColumnScroll the grid to specified column such that the row appears near the center of the viewport.See scrollToCell()for a full description of how this method interacts with incremental loading and rendering of data.- Parameters:
- colNum- Index of the column to scroll into view
- xPosition- Horizontal position of scrolled column (optional)
- See Also:
 
- 
scrollToRowpublic void scrollToRow(int rowNum) Scroll the grid to specified row such that the row appears near the center of the viewport, loading data if necessary.See scrollToCell()for a full description of how this method interacts with incremental loading and rendering of data.- Parameters:
- rowNum- Row index of the cell to scroll into view
- See Also:
 
- 
scrollToRowScroll the grid to specified row such that the row appears near the center of the viewport, loading data if necessary.See scrollToCell()for a full description of how this method interacts with incremental loading and rendering of data.- Parameters:
- rowNum- Row index of the cell to scroll into view
- yPosition- Vertical position of scrolled row (optional)
- See Also:
 
- 
addSelectionChangedHandlerAdd a selectionChanged handler.Called when (row-based) selection changes within this grid. Note this method fires for each record for which selection is modified - so when a user clicks inside a grid this method will typically fire twice (once for the old record being deselected, and once for the new record being selected). NOTE: For updating other components based on selections or triggering selection-oriented events within an application, see the selectionUpdated()event which is likely more suitable. Calls togetSelection()from within this event may not return a valid set of selected records if the event has been triggered by a call toselectAllRecords()ordeselectAllRecords()- in this case use theselectionUpdated()event instead.- Specified by:
- addSelectionChangedHandlerin interface- HasSelectionChangedHandlers
- Parameters:
- handler- the selectionChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addSelectionUpdatedHandlerAdd a selectionUpdated handler.Called when the selection changes. Note that this method fires exactly once for any given change to the selection unlike the selectionChangedevent.This event is fired once after selection/deselection has completed. The result is one event per mouse-down event. For a drag selection there will be two events fired: one when the first record is selected and one when the range is completed. This event is also fired when selection is updated by a direct call to one of the DataBoundComponentselect/deselect methods. Calls on the Selection object do not trigger this event.- Specified by:
- addSelectionUpdatedHandlerin interface- HasSelectionUpdatedHandlers
- Parameters:
- handler- the selectionUpdated handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
selectRangepublic void selectRange(int startRow, int endRow) Select a contiguous range of records by index- Parameters:
- startRow- start of selection range
- endRow- end of selection range (non-inclusive)
- See Also:
 
- 
selectRangepublic void selectRange(int startRow, int endRow, boolean newState) Select a contiguous range of records by index- Parameters:
- startRow- start of selection range
- endRow- end of selection range (non-inclusive)
- newState- new selection state (if null, defaults to true)
- See Also:
 
- 
setAutoFitWidthSetter forListGridField.autoFitWidth. Enables or disables dynamic autoFitWidth behavior on the specified field. Note if the field is currently autoFitWidth:true, and this method is disabling autoFit, the field will not be resized by default - if you wish to resize to an explicit width, useresizeField().- Parameters:
- fieldName- field to auto-fit
- autoFit- Should autoFitWidth be enabled or disabled?
 
- 
setDontAutoDestroyComponentIfshowRecordComponentsis true, by default any created record components are destroyed once they are no longer in use (for example, if the ListGrid as a whole is destroyed). This method may be used to suppress this behavior for some component. Typical usage might call this method as part ofcreateRecordComponent()to suppress this behavior.- Parameters:
- component- component in question.
- dontAutoDestroy- If true, the component will not be destroyed automatically when the grid is destroyed
 
- 
setEditValuesThis method sets up a set of editValues for some row / cell. It differs from 'setEditValue()' in that:
 - it takes values for multiple fields
 - it clears out any previous edit values for the record- Parameters:
- rowNum- Row number for the record being edited
- values- New values for the row
 
- 
setFieldButtonPropertiesMethod to update properties on a field's header button at runtime. This property allows customization of any settable properties on the ListGridField's header button after it has been generated. Note that the provided Canvas should only have the minimal needed properties set on it, and should not be a Canvas that's already been drawn or added as the child of another widget.- Parameters:
- name- Field to update
- properties- new properties to apply to the header button
 
- 
setFieldCellIconChange theListGridField.cellIconfor a field after the grid is created- Parameters:
- fieldName- field to update
- cellIcon- new cellIcon for the field. See- SCImgURL
 
- 
setFieldErrorSet a validation error for some cell.- Parameters:
- rowNum- row index of cell to add validation error for
- fieldName- col index or field name of cell to add validation error for
- errorMessage- validation error/errors for the cell.
- See Also:
 
- 
setFieldHeaderBaseStyleUpdate theListGridField.headerBaseStylefor a field within the grid at runtime.- Parameters:
- name- name of the field.
- newStyle- new baseStyle for the field header. See- CSSStyleName
 
- 
setFieldHeaderTitleStyleUpdate theListGridField.headerTitleStylefor a field within the grid at runtime.- Parameters:
- name- name of the field.
- newStyle- new titleTyle for the field header. See- CSSStyleName
 
- 
setFieldIconChange theListGridField.iconfor a field after the grid is created- Parameters:
- fieldName- field to update
- icon- icon for the field. See- SCImgURL
 
- 
setFieldMaxWidthpublic void setFieldMaxWidth(int fieldNum, int width) UpdatesListGridField.maxWidthfor the specified field and redraws the associated column if required.- Parameters:
- fieldNum- name of the field, or index.
- width-
- See Also:
 
- 
setFieldMinWidthpublic void setFieldMinWidth(int fieldNum, int width) UpdatesListGridField.minWidthfor the specified field and redraws the associated column if required.- Parameters:
- fieldNum- name of the field, or index.
- width-
- See Also:
 
- 
setFieldPropertiesDynamically set properties for a particular field. This method will update the fields header-button without having to explicitly reset the fields in the grid. The passed-inListGridFieldshould contain just the minimal properties you want to change; do not take the original ListGridField, modify it, and just pass that to this function.NOTE: Where explicit setters exist for field properties (such as resizeField(),setFieldTitle(),setFieldIcon(), etc.) these should be used instead.- Parameters:
- fieldNum- name of the field, or index.
- properties- properties to apply to the header
 
- 
setFieldPropertiesDynamically set properties for a particular field. This method will update the fields header-button without having to explicitly reset the fields in the grid. The passed-inListGridFieldshould contain just the minimal properties you want to change; do not take the original ListGridField, modify it, and just pass that to this function.NOTE: Where explicit setters exist for field properties (such as resizeField(),setFieldTitle(),setFieldIcon(), etc.) these should be used instead.- Parameters:
- fieldNum- name of the field, or index.
- properties- properties to apply to the header
 
- 
setFieldSearchOperatorApplies a newsearch operatorto a field in the grid'sfilter row, and updates it's operatorIcon.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.Depending on the field's current filter-value and operator, calls to this method may result in the current filter-value being cleared, and/or a fetch being issued if filterByCellorfilterOnKeypressare set.In general, if the field has a current filter-value, it will be cleared if - the new operator does not require a value (operator-type     
 none-isBlank, for example)
- the current and new operators have different       value-typesandallowFilterExpressionsis false
- the
 item has an optionDataSourceor valueMap which no longer includes the current value
 If filterOnKeypressis true, a fetch will be issued if- the value was just cleared, in one of the ways listed above
- the operator changes while there is a current value
- the new operator does not require a value and the old one did
 If passed null, the field's operator will be cleared, reverting it to its default operatorand, ifalwaysShowOperatorIconis false, the operatorIcon is hidden. SeeclearFieldSearchOperator()for an alternative way to clear a field's operator.To retrieve a field's current search operator, use getFieldSearchOperator().- Parameters:
- fieldName- name of the field to apply a new search operator to
- operator- id of the search operator to apply
 
- the new operator does not require a value (operator-type     
 
- 
setFieldTitleChange the title of a field after the grid is created.- Parameters:
- fieldNum- name of the field, or index.
- title- new title
 
- 
setFieldTitleChange the title of a field after the grid is created.- Parameters:
- fieldNum- name of the field, or index.
- title- new title
 
- 
setFilterEditorCriteriaIfshowFilterEditoris true, this method will update the criteria shown in thefilterEditorwithout performing a filter.For a discussion of the various filtering and criteria-management APIs and when to use them, see the Grid Filtering overview.- Parameters:
- criteria- New criteria to show
 
- 
setHeaderSpanBaseStyleUpdate theHeaderSpan.headerBaseStylefor a span within the grid at runtime.- Parameters:
- name- name of the headerSpan, as specified via- HeaderSpan.name.
- newStyle- new baseStyle for the headerSpan. See- CSSStyleName
 
- 
setHeaderSpanButtonPropertiesMethod to update properties on a headerSpan's header button at runtime. This property allows customization of any settable properties on the HeaderSpan's header button after it has been generated.- Parameters:
- name-- nameof span to update
- properties- new properties to apply to the header button
 
- 
setHeaderSpanHeaderTitleUpdate the headerTitle of aheaderSpandynamically.- Parameters:
- name- name of the headerSpan, as specified via- HeaderSpan.name.
- newTitle- new headerTitle for the headerSpan
 
- 
setHeaderSpanTitleUpdate the title of aheaderSpandynamically.- Parameters:
- name- name of the headerSpan, as specified via- HeaderSpan.name.
- newTitle- new title for the headerSpan
 
- 
setHeaderSpanTitleStyleUpdate theHeaderSpan.headerTitleStylefor a span within the grid at runtime.- Parameters:
- name- name of the headerSpan, as specified via- HeaderSpan.name.
- newTitle- new titleStyle for the headerSpan. See- CSSStyleName
 
- 
setHideOnPhoneUpdates theListGridField.hideOnPhoneattribute at runtime.- Parameters:
- field- field or field name to update
- hideOnPhone- new setting for hideOnPhone property
 
- 
setHideOnTabletUpdates theListGridField.hideOnTabletattribute at runtime.- Parameters:
- field- field or field name to update
- hideOnTablet- new setting for hideOnTablet property
 
- 
setRowErrorsSet the validation errors for some row (replacing any pre-existent validation errors)Note that in the case of a grouped listGrid, or aTreeGrid, some records may be hidden form view (part of a collapsed group or parent folder). In this case there is no meaningful row number associated with a record. This method cannot be called on such rows - developers should make the row visible first. This is by design - users should always be able to see errors.- Parameters:
- rowNum- row to add validation error for
- errors- validation errors for the row in the format- {fieldName:errorMessage, ...}
 or
 - {fieldName:[errorMessage1, errorMessage2], ...}
- See Also:
 
- 
addSetSortHandlerAdd a setSort handler.Optional notification fired when either user or framework code calls setSort(). This notification fires before the default behavior; useevent.cancel()to cancel the default behavior. Note, the notification is fired before the default functionality, but after prechecks have completed; your method will only be called if the default behavior would have been called. For example, if there are pending edits and the user does not confirm that these should be saved, normal sorting would not have gone ahead, so equally your handler will not be called.The default setSort()method does two things to reflect the set ofsortSpecifiers passed to it:- Change the grid UI (show directional arrows, numerals to indicate sort priority, etc)
- Actually sort the grid data
 setSortHandler()is to inhibit or replace one of those behaviors, you should cancel the default behavior and directly invoke just that part of it you require. The following implementation will replicate the default behavior:grid.addSetSortHandler(new SetSortHandler() { public void onSetSort(SetSortEvent event) { displaySort(event.getSortSpecifiers()); applySortToData(event.getSortSpecifiers()); event.cancel(); // Prevent the framework from running its own default impl } });- Specified by:
- addSetSortHandlerin interface- HasSetSortHandlers
- Parameters:
- handler- the setSort handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
setUserCriteriaStateReset this grid's user-criteria to match theListGridUserCriteriaStateobject passed in.Used to restore previous state retrieved from the grid by a call to getUserCriteriaState().- Parameters:
- userCriteriaState- Object describing the desired criteria. See- ListGridUserCriteriaState
- See Also:
 
- 
setUserFormulaUpdates theuserFormulaof the specified field. This method is preferred over setting the the 'userFormula' property of the field directly because it also updates any component dependencies and recalculates the field. If the formula is not passed, it is assumed that the formula has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the formula for this field
- the common formula variable => field name map maintained by the component for calls to the FormulaBuilder
- any generated field that references the field's calculated values
 - Parameters:
- field- field owning the formula
- See Also:
 
- 
setUserFormulaUpdates theuserFormulaof the specified field. This method is preferred over setting the the 'userFormula' property of the field directly because it also updates any component dependencies and recalculates the field. If the formula is not passed, it is assumed that the formula has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the formula for this field
- the common formula variable => field name map maintained by the component for calls to the FormulaBuilder
- any generated field that references the field's calculated values
 - Parameters:
- field- field owning the formula
- See Also:
 
- 
setUserFormulaUpdates theuserFormulaof the specified field. This method is preferred over setting the the 'userFormula' property of the field directly because it also updates any component dependencies and recalculates the field. If the formula is not passed, it is assumed that the formula has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the formula for this field
- the common formula variable => field name map maintained by the component for calls to the FormulaBuilder
- any generated field that references the field's calculated values
 - Parameters:
- field- field owning the formula
- userFormula- optional formula to install
- See Also:
 
- 
setUserFormulaTextUpdates theUserFormula.textof the specified field. This method is preferred over setting the 'text' property directly because it also updates any component dependencies and recalculates the field. If the formula text is not passed, it is assumed that the formula has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the formula for this field
- the common formula variable => field name map maintained by the component for calls to the FormulaBuilder
- any generated field that references the field's calculated values
 - Parameters:
- field- field owning the formula
- See Also:
 
- 
setUserFormulaTextUpdates theUserFormula.textof the specified field. This method is preferred over setting the 'text' property directly because it also updates any component dependencies and recalculates the field. If the formula text is not passed, it is assumed that the formula has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the formula for this field
- the common formula variable => field name map maintained by the component for calls to the FormulaBuilder
- any generated field that references the field's calculated values
 - Parameters:
- field- field owning the formula
- See Also:
 
- 
setUserFormulaTextUpdates theUserFormula.textof the specified field. This method is preferred over setting the 'text' property directly because it also updates any component dependencies and recalculates the field. If the formula text is not passed, it is assumed that the formula has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the formula for this field
- the common formula variable => field name map maintained by the component for calls to the FormulaBuilder
- any generated field that references the field's calculated values
 - Parameters:
- field- field owning the formula
- text- optional formula text to install
- See Also:
 
- 
setUserSummaryUpdates theuserSummaryof the specified field. This method is preferred over setting the 'userSummary' property of the field directly because it also updates any component dependencies and recomputes the field. If the summary is not passed, it is assumed that the summary has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the summary for this field
- any generated field that references the field's computed summaries
 - Parameters:
- field- field owning the summary
- See Also:
 
- 
setUserSummaryUpdates theuserSummaryof the specified field. This method is preferred over setting the 'userSummary' property of the field directly because it also updates any component dependencies and recomputes the field. If the summary is not passed, it is assumed that the summary has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the summary for this field
- any generated field that references the field's computed summaries
 - Parameters:
- field- field owning the summary
- See Also:
 
- 
setUserSummaryUpdates theuserSummaryof the specified field. This method is preferred over setting the 'userSummary' property of the field directly because it also updates any component dependencies and recomputes the field. If the summary is not passed, it is assumed that the summary has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the summary for this field
- any generated field that references the field's computed summaries
 - Parameters:
- field- field owning the summary
- userSummary- optional summary to install
- See Also:
 
- 
setUserSummaryTextUpdates theUserSummary.textof the specified field. This method is preferred over setting the 'text' property directly because it also updates any component dependencies and recomputes the field. If the summary text is not passed, it is assumed that the summary has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the formula for this field
- any generated field that references the field's computed values
 - Parameters:
- field- field owning the summary
- See Also:
 
- 
setUserSummaryTextUpdates theUserSummary.textof the specified field. This method is preferred over setting the 'text' property directly because it also updates any component dependencies and recomputes the field. If the summary text is not passed, it is assumed that the summary has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the formula for this field
- any generated field that references the field's computed values
 - Parameters:
- field- field owning the summary
- See Also:
 
- 
setUserSummaryTextUpdates theUserSummary.textof the specified field. This method is preferred over setting the 'text' property directly because it also updates any component dependencies and recomputes the field. If the summary text is not passed, it is assumed that the summary has already been updated and only the dependency propagation logic will run.Known component dependencies are: - the cached record values of the formula for this field
- any generated field that references the field's computed values
 - Parameters:
- field- field owning the summary
- text- optional summary text to install
- See Also:
 
- 
shouldIncludeHiliteInSummaryFieldWhen assembling a value for asummary field, if a referenced field is hilited, should the hilite HTML be included in the summary field value?Example use case: Consider a grid containing a numeric field, and a summary field which contains some string value, plus the contents of the numeric field. If a hilite is defined for the grid which turns the numeric field text red when the value is negative, this property will govern whether the number will also be rendered in red within the summary field cells. Any other text in the summary field cells would not be effected by this hilite. Default implementation returns includeHilitesInSummaryFields.To control hilites showing in group summaries, see showHilitesInGroupSummary.- Parameters:
- summaryFieldName- name of the summary field
- usedFieldName- name of the field referenced by this summary
- Returns:
- Return true to include hilites from the used field in the generated summary field value.
 
- 
showAIFilterWindowpublic void showAIFilterWindow()Shows theaiFilterWindow, which allows the user to ask the AI to filter data by describing which records should be included.
- 
showAIHiliteWindowpublic void showAIHiliteWindow()Shows theaiFilterWindow, which allows the user to ask the AI to filter data by describing which records should be included.
- 
showDragHandlespublic void showDragHandles()Shows an additional field near the beginning of the field list (after anyrow numberfield) that can be dragged to drag the current selection. This feature is useful intouch environmentswhere both touch scrolling and dragging are needed on the same grid, and allows scrolling to be triggered on the other fields so that both operations are available. Targeted touch environments include both mobile devices, and Windows hardware that supportsDual Input Modesuch as Microsoft Surface.Note that the drag handle fieldwill never be shown unlesscanReorderRecordsorcanDragRecordsOutare true.In IE11 or Microsoft Edge, dragging a record in a grid may not be possible using a touch device without enabling drag handles, or disabling native touch scrolling by setting window.isc_useNativeTouchScrolling = falsebefore Smart GWT is loaded.BackgroundOne alternative to adding a drag handle field would be to use long touch to start a drag (with normal touch triggering scrolling). However, this is unsupportable in IE11 or Edge on Microsoft Surface (with native scrolling) because native scrolling cannot be canceled on the fly using Event.preventDefault(), but instead must be disabled by applying the appropriate CSS at rendering time. (Such limitations are not present elsewhere, such as on Android or IPhone browsers.) For more details, some links are provided below. Note that while IE10 is mentioned in some of the links, the reasoning is still relevant now for IE11 and Edge as the limitations remain: 
- 
showFieldForce a field to be shown. This method does not add new fields to the grid, it simply changes field visibility. If a field.showIf expression exists, it will be destroyed.Note: for showing multiple fields it is more efficient to call showFields()than to call this method repeatedly.- Parameters:
- field- field to show
- See Also:
 
- 
showFieldForce a field to be shown. This method does not add new fields to the grid, it simply changes field visibility. If a field.showIf expression exists, it will be destroyed.Note: for showing multiple fields it is more efficient to call showFields()than to call this method repeatedly.- Parameters:
- field- field to show
- suppressRelayout- If passed, don't resize non-explicitly sized columns to fill the available space.
- See Also:
 
- 
showFieldsForce an array of fields to be shown. This method does not add new fields to the grid, it simply changes field visibility. If a field.showIf expression exists, it will be destroyed.Note: for showing multiple fields it is more efficient to call this method than to call showField()repeatedly.- Parameters:
- field- Fields to show.
- See Also:
 
- 
showFieldsForce an array of fields to be shown. This method does not add new fields to the grid, it simply changes field visibility. If a field.showIf expression exists, it will be destroyed.Note: for showing multiple fields it is more efficient to call this method than to call showField()repeatedly.- Parameters:
- field- Fields to show.
- See Also:
 
- 
showFieldsForce an array of fields to be shown. This method does not add new fields to the grid, it simply changes field visibility. If a field.showIf expression exists, it will be destroyed.Note: for showing multiple fields it is more efficient to call this method than to call showField()repeatedly.- Parameters:
- field- Fields to show.
- suppressRelayout- If passed, don't resize non-explicitly sized columns to fill the available space.
- See Also:
 
- 
showFilterWindowpublic void showFilterWindow()Shows the dialog forfilterWindowCriteriaallowing end-users to edit the advanced filter. This method can be called directly but it is also used to show the dialog whenallowFilterWindowis enabled and the user chooses the"Advanced Filtering"menu option.Note: this feature requires Smart GWT Pro or better. 
- 
sortSort this grid's data, with the option to explicitly specify a single field to sort by and sort direction.If sortField is not provided and listGrid.sortField is undefined, the data will be sorted by the first sortable column according to ListGridField.sortDirectionif specified, orsortDirection.ListGrids also support multiple-field sorting. See setSort()for details.Note that for editable grids, sorting is performed by underlying data values, not for unsaved pending edit values. When the user saves edits in a sorted grid, the grid will automatically beunsorted. SeeEditingfor further details.- Returns:
- sorting worked
- See Also:
 
- 
sort- See Also:
 
- 
sortSort this grid's data, with the option to explicitly specify a single field to sort by and sort direction.If sortField is not provided and listGrid.sortField is undefined, the data will be sorted by the first sortable column according to ListGridField.sortDirectionif specified, orsortDirection.ListGrids also support multiple-field sorting. See setSort()for details.Note that for editable grids, sorting is performed by underlying data values, not for unsaved pending edit values. When the user saves edits in a sorted grid, the grid will automatically beunsorted. SeeEditingfor further details.- Parameters:
- sortField- the field name or column number to sort by
- sortDirection- the direction to sort in
- Returns:
- sorting worked
- See Also:
 
- 
addSortChangedHandlerAdd a sortChanged handler.Notification method executed when the sort specifierschange for this grid.- Specified by:
- addSortChangedHandlerin interface- HasSortChangedHandlers
- Parameters:
- handler- the sortChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addSorterClickHandlerAdd a sorterClick handler.Notification method fired when the user clicks on the corner sort button. CallSorterClickEvent.cancel()from withinSorterClickHandler.onSorterClick(com.smartgwt.client.widgets.grid.events.SorterClickEvent)to suppress the sort.- Specified by:
- addSorterClickHandlerin interface- HasSorterClickHandlers
- Parameters:
- handler- the sorterClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addSorterContextClickHandlerAdd a sorterContextClick handler.Notification method fired when the user right-clicks on the corner sort button. CallSorterContextClickEvent.cancel()from withinSorterContextClickHandler.onSorterContextClick(com.smartgwt.client.widgets.grid.events.SorterContextClickEvent)to suppress the default behavior of showing the sorter's context menu.- Specified by:
- addSorterContextClickHandlerin interface- HasSorterContextClickHandlers
- Parameters:
- handler- the sorterContextClick handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
startEditingStart inline editing at the provided coordinates.Invoked when a cell is editable and the editEventoccurs on that cell. Can also be invoked explicitly.If this method is called while editing is already in progress, the value from the current editCell will either be stored locally as a temporary edit value, or saved via 'saveEdits()' depending on this.saveByCell, and the position of the new edit cell.
 Will update the UI to show the editor for the new cell, and put focus in it unless explicitly suppressed by the optionalsuppressFocusparameter.- Returns:
- true if we are editing the cell, false if not editing for some reason
- See Also:
 
- 
startEditing- See Also:
 
- 
startEditing- See Also:
 
- 
startEditingStart inline editing at the provided coordinates.Invoked when a cell is editable and the editEventoccurs on that cell. Can also be invoked explicitly.If this method is called while editing is already in progress, the value from the current editCell will either be stored locally as a temporary edit value, or saved via 'saveEdits()' depending on this.saveByCell, and the position of the new edit cell.
 Will update the UI to show the editor for the new cell, and put focus in it unless explicitly suppressed by the optionalsuppressFocusparameter.- Parameters:
- rowNum- Row number of the cell to edit. Defaults to first editable row
- colNum- Column number of the cell to edit. Defaults to first editable column
- suppressFocus- If passed this parameter suppresses the default behavior of focusing in the edit form item when the editor is shown.
- Returns:
- true if we are editing the cell, false if not editing for some reason
- See Also:
 
- 
startEditingNewpublic void startEditingNew()Start editing a new row, after the last pre-existing record in the current set of data.This new row will be saved via the "add" DataSource\n operation.See the Grid Editing overviewand also theEditing Unsaved Records overviewfor context about how unsaved records behave.You can optionally pass newValueswhich are the initial values for the newly added record. See alsoListGridField.defaultValueas a means of setting default values every time the user begins editing a new record, for instance, by pressing downArrow on the last normal record in the grid whenlistEndEditActionis "next".If editing is already underway elsewhere in the grid, startEditingNew() behaves just like startEditing().- See Also:
 
- 
startEditingNew- See Also:
 
- 
startEditingNewStart editing a new row, after the last pre-existing record in the current set of data.This new row will be saved via the "add" DataSource\n operation.See the Grid Editing overviewand also theEditing Unsaved Records overviewfor context about how unsaved records behave.You can optionally pass newValueswhich are the initial values for the newly added record. See alsoListGridField.defaultValueas a means of setting default values every time the user begins editing a new record, for instance, by pressing downArrow on the last normal record in the grid whenlistEndEditActionis "next".If editing is already underway elsewhere in the grid, startEditingNew() behaves just like startEditing().- Parameters:
- newValues- Optional initial set of properties for the new record
- suppressFocus- Whether to suppress the default behavior of moving focus to the newly shown editor.
- See Also:
 
- 
stopHoverpublic void stopHover()Notification that the user is no longer hovering over some cell. Hides the current hover canvas if one is showing.
- 
summaryUpdatedNotification fired when a user either creates a new summary field or edits an existing summary field.- Parameters:
- field- the summary field
- summary- the new or updated summary definition
 
- 
toggleSortToggles the sort-direction of the field with the passed name and resorts the grid.- Parameters:
- fieldName- The name of a field, visible, hidden or existing only in the dataSource
 
- 
unfreezeFieldUnfreeze a frozen field, so that it will now scroll along with other fields when horizontal scrolling occurs.- Parameters:
- field- field or fields to unfreeze. fields may be specified as ListGridField objects, field names or colNum.
- See Also:
 
- 
unfreezeFieldUnfreeze a frozen field, so that it will now scroll along with other fields when horizontal scrolling occurs.- Parameters:
- field- field or fields to unfreeze. fields may be specified as ListGridField objects, field names or colNum.
- See Also:
 
- 
unfreezeFieldUnfreeze a frozen field, so that it will now scroll along with other fields when horizontal scrolling occurs.- Parameters:
- field- field or fields to unfreeze. fields may be specified as ListGridField objects, field names or colNum.
- See Also:
 
- 
unfreezeFieldUnfreeze a frozen field, so that it will now scroll along with other fields when horizontal scrolling occurs.- Parameters:
- field- field or fields to unfreeze. fields may be specified as ListGridField objects, field names or colNum.
- See Also:
 
- 
ungrouppublic void ungroup()Removes the grouping from the listGrid, restoring its original data
- 
unmarkRecordRemovedpublic void unmarkRecordRemoved(int rowNum) Reverses a previous call tomarkRecordRemoved().Note that a record that is marked for removal and then un-marked retains any uncommitted edits from before it was marked for removal. These can be discarded with discardEdits().- Parameters:
- rowNum- index of record to clear the 'removed'
- See Also:
 
- 
unsortpublic void unsort()Turn sorting off, typically because data has changed and is no longer sorted.Calling unsort()disables visual indication of which columns are sorted, and callsunsort()on the underlying dataset if supported.Note that a grid viewing a paged dataset may not be able to support ResultSet.unsort()because the sort order is what establishes the row numbering that allows data to be fetched in batches. In this case the dataset will be explicitly sorted to an empty array which may cause the cache to be invalidated and a new fetch.unsort()is automatically called in response to edits or changes to the data set that would cause records to be reordered. SeeEditingfor further details on editing records in a sorted ListGrid.
- 
updateDataPerform a DataSource "update" operation to update existing records in this component's DataSource.- Parameters:
- updatedRecord- updated record
- See Also:
 
- 
updateData
- 
updateDataPerform a DataSource "update" operation to update existing records in this component's DataSource.- Parameters:
- updatedRecord- updated record
- callback- method to call on operation completion
- requestProperties- additional properties to set on the DSRequest that will be issued
- See Also:
 
- 
updateRecordComponentpublic Canvas updateRecordComponent(ListGridRecord record, Integer colNum, Canvas component, boolean recordChanged) WhenshowRecordComponentsis true, this method is called to update components created bycreateRecordComponent()when they are to be applied to a different record in the grid. See therecord components overviewfor more information on recordComponents.The colNum parameter is applicable only when showRecordComponentsByCellis true. Note that ifpoolComponentsPerColumnis set to false, the component may have been generated by acreateRecordComponent()call applied to a different field.Return null to avoid re-adding the component to the row or cell. - Parameters:
- record- record to which the passed component applies
- colNum- cell to which the passed component applies
- component- the component to update
- recordChanged- was the passed component previously embedded in a different record?
- Returns:
- return the component to embed in the passed record
 
- 
userSelectAllRecordspublic void userSelectAllRecords()Selects every user-selectable record in the grid. UnlikeselectAllRecords(), if a record isunselectable, this method will not attempt to select it.
- 
validateCellValidate the current edit value for the cell in question. Called when the user moves to a new edit cell ifvalidateByCellis true.
 This method may also be called directly to perform cell level validation at any time.- Parameters:
- rowNum- index of row to be validated.
- fieldName- field name (or column index) of field to be validated
- Returns:
- returns true if validation was successful (no errors encountered), false otherwise.
- See Also:
 
- 
validateRowValidate the current set of edit values for the row in question.Called when the user moves to a new edit row, or when an edited record is to be saved if client side validation is enabled for this grid. This method may also be called directly to perform row level validation at any time. - Parameters:
- rowNum- index of row to be validated.
- Returns:
- returns true if validation was successful (no errors encountered), false otherwise.
- See Also:
 
- 
addViewStateChangedHandlerAdd a viewStateChanged handler.Notification method executed whenever the viewState of this grid changes. View state is accessible via ListGrid.getViewState(), and contains field state information, sort information, selection information, hiliting information and grouping information.- Specified by:
- addViewStateChangedHandlerin interface- HasViewStateChangedHandlers
- Parameters:
- handler- the viewStateChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
willFetchDataCompares the specified criteria with the current criteria applied to this component's data object and determines whether the new criteria could be satisfied from the currently cached set of data, or if a new filter/fetch operation will be required.This is equivalent to calling this.data.willFetchData(...). Always returns true if this component is not showing a set of data from the dataSource.Note that to predict correctly the decision that will be made by filter/fetch, you'll need to pass the same TextMatchStylethat will be used by the future filter/fetch. Fetching manually (e.g.fetchData()) will by default use "exact" while filtering (e.g.filterData()) will by default use "substring". If the component is configured for autofetch (i.e.autoFetchData: true), that will useautoFetchTextMatchStyle, which defaults to "substring". If nothing/null is passed for the style, this method assumes you want the style from the last filter/fetch.To determine what TextMatchStyleis being used, check the RPC Tab of theSmart GWT Developer Consoleand check the relevantDSRequest.- Parameters:
- newCriteria- new criteria to test.
- Returns:
- true if server fetch would be required to satisfy new criteria.
- See Also:
 
- 
willFetchDataCompares the specified criteria with the current criteria applied to this component's data object and determines whether the new criteria could be satisfied from the currently cached set of data, or if a new filter/fetch operation will be required.This is equivalent to calling this.data.willFetchData(...). Always returns true if this component is not showing a set of data from the dataSource.Note that to predict correctly the decision that will be made by filter/fetch, you'll need to pass the same TextMatchStylethat will be used by the future filter/fetch. Fetching manually (e.g.fetchData()) will by default use "exact" while filtering (e.g.filterData()) will by default use "substring". If the component is configured for autofetch (i.e.autoFetchData: true), that will useautoFetchTextMatchStyle, which defaults to "substring". If nothing/null is passed for the style, this method assumes you want the style from the last filter/fetch.To determine what TextMatchStyleis being used, check the RPC Tab of theSmart GWT Developer Consoleand check the relevantDSRequest.- Parameters:
- newCriteria- new criteria to test.
- textMatchStyle- New text match style. If not passed assumes textMatchStyle will not be modified.
- Returns:
- true if server fetch would be required to satisfy new criteria.
- See Also:
 
- 
setDefaultPropertiesClass level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties set on the SmartGWT class instance passed to this function before its underlying SmartClient JS object was created. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route. - Parameters:
- listGridProperties- properties that should be used as new defaults when instances of this class are created
- See Also:
 
- 
onInitprotected void onInit()
- 
onInit_ListGridprotected void onInit_ListGrid()
- 
setAutoChildPropertiesSets the properties for creating aListGridFieldAutoChild namedautoChildName.NOTE: Overrides at override points are not applied to AutoChildren created from properties; that is, if the JavaClassofpropertiesoverrides a Smart GWT override point, the custom method implementation will not be called.- See Also:
 
- 
displayHeaderContextMenuIfshowHeaderContextMenuistruethis method is fired when the user right-clicks on the header for this grid.
 Default implementation will display a menu with entries derived fromListGrid.getHeaderContextMenuItemsfor the appropriate column.- Parameters:
- target- which button in the header received the right-click event (may be the sorter button)
- position- Optional 2-element array specifying position at which the menu should be shown. If this is not passed in the menu will be shown at the mouseEvent position (default context menu behavior).
- Returns:
- whether to bubble the event (false suppresses bubbling)
- See Also:
 
- 
getTotalRowspublic int getTotalRows()Return the total number of rows in the grid.Note that, when creating new rows via inline editing, this can be more than the total number of rows in the dataset (that is, grid.data.getLength()) Note : this is an override point. - Returns:
- total number of rows in the grid
 
- 
getValueIconReturns the appropriate valueIcon for a cell based on the field and the data value for the cell. Default implementation returns null ifsuppressValueIconis true otherwise looks atvalueIcons.- Parameters:
- field- field associated with the cell
- value- data value for the cell's record in this field.
- record- record associated with this cell Note : This is an override point
- Returns:
- the value icon
 
- 
getRowSpanReturn how many rows this cell should span. Default is 1.When using row spanning, consider setting useRowSpanStylingto enable row-span-sensitive styling behaviors.When using row spanning: -  APIs that allow modifying the contents of cells (such as ListGrid.getCellStyleorCellFormatter.format(java.lang.Object, com.smartgwt.client.widgets.grid.ListGridRecord, int, int)) will be called only once per row-spanning cell
-  when using cell-based selection, only the spanning cell is considered selected, and not any of the cells spanned through. For example, if the cell at row 2 column 0 spans 2 cells,isSelectedwill be true for 2,0 but false for 3,0.
-  if using incremental rendering (either horizontal or vertical),
 getRowSpan()may be called for a rowNum in the middle of a spanning cell, and should return the remaining span from that rowNum onward.
 More generally, the ListGrid has a data model of one Recordper row, and spanning cells doesn't fit well with this model, meaning that many ListGrid features are incompatible with rowSpanning. Note : This is an override point- Parameters:
- record- cell record as returned by getCellRecord
- rowNum- row number for the cell
- colNum- column number of the cell
- Returns:
- number of cells to span
 
-  APIs that allow modifying the contents of cells (such as 
- 
getRemoveFieldDefaultsReturns a JavaScriptObject containing defaultListGridFieldattributes of remove fields.
- 
removeEmbeddedComponentRemoves an embedded component from a grid. The record in which the component is embedded is automatically derived from the Component passed in. IfdestroyOnUnEmbedistruefor the component, it will also be destroyed.- Parameters:
- component- the embedded component
 
- 
showRecordComponentWhenshowRecordComponentsis true, return false from this method to prevent showRecordComponent behavior for the passed record.The second parameter is only applicable if showRecordComponentsByCellis true.- Parameters:
- record- record being processed
- colNum- column index of the cell in which the record component may be shown. Will be null unless showRecordComponentsByCell is true.
- Returns:
- return false to cancel showRecordComponent behavior
 
- 
canSelectRecordIfselectionTypeis not set to"none", this method will be called for each record the user attempts to select. If it returns false, the record will not be selected.Note this method will not be called at all if canSelectCellsis true.- Parameters:
- record- the record being selected Note : this is an override point.
- Returns:
- return false to disallow selection
 
- 
setHeaderHoverFormatterProvide a custom implementation ofheaderHoverHTML(int,java.lang.String).The HeaderHoverFormattershould return the HTML to display in the hover canvas that is displayed by default if a registeredHeaderHoverHandlerdoes not cancel aHeaderHoverEvent. The formatter can return null or an empty string to cancel the hover.- Parameters:
- formatter- the header hover formatter
 
- 
setRowNumberFieldPropertiesSet the properties generated field that displays the current row number whenshowRowNumbersis true. For example you can change the default width of the row number column if you have data that exceeds 4 digits to accommodate the width of, say, 10000.- Parameters:
- rowNumberFieldProperties- the row number field properties
 
- 
setDataPropertiesFor databound ListGrids, this attribute can be used to customize theResultSetobject created for this grid when data is fetched.Note : This is an advanced setting Class overrides forResultSetcannot be applied to the grid using this API. Instead, consider setting theresultSetClassproperty in the file defining yourDataSource. Your class must beregistered for reflection.- Parameters:
- dataProperties- Default value is null
- Returns:
- ListGridinstance, for chaining setter calls
- See Also:
 
- 
setData- See Also:
 
- 
setData- See Also:
 
- 
getDataAsRecordListReturn the grid data as aRecordList. If the component is bound to a DataSource, the actual type of the RecordList instance will be aResultSet.- Returns:
- the data
 
- 
setRecordsSynonym forsetData(ListGridRecord[])- Parameters:
- records- the records
 
- 
getRecordsReturns the current set of records displayed in this grid as an array of ListGridRecord objects. Note that if the ListGrid is grouped, you can callgetGroupTree()to get the underlying Tree data representation. You can callisGrouped()to test whether the ListGrid is grouped on a field.If this is a DataBound grid this method will return an empty array unless the entire set of data for the current criteria has been loaded into the client, in which case all matching rows will be returned. For DataBound grids, you can call getResultSet()to retrieve the current data set as a ResultSet object.- Returns:
- an array or records.
 
- 
isGroupedpublic boolean isGrouped()Return true if the ListGrid is grouped on a field.- Returns:
- true if grouped
 
- 
setSortFieldpublic void setSortField(int fieldIndex) Specifies the field by which this grid should be initially sorted. Note that if sortField is initially specified as a number, it will be converted to a string (field name) after list grid initialization.- Parameters:
- fieldIndex- the field index
 
- 
getGroupByFieldsGet the current grouping of this listGrid as an array of fieldNames.This method returns an array containing the names of the field(s) by which this grid is grouped (either from setGroupByField(String...field)or or from a call togroupBy(String...)). If this grid is not currently grouped, this method will return null.- Returns:
- Current group by field names.
 
- 
setGroupStartOpenDescribes the default state of ListGrid groups when groupBy is called. Possible values are:- "all": open all groups
- "first": open the first group
- "none": start with all groups closed
- Array of values that should be opened
 - Parameters:
- group- the group
 
- 
setGroupStartOpen- Parameters:
- groupValues- Array of values that should be opened
 
- 
setSelectionCanvasPropertiespublic void setSelectionCanvasProperties(Canvas selectionCanvasProperties) throws IllegalStateException Properties to apply to the auto-generatedselectionCanvasAutoChild when its use is enabled.- Parameters:
- selectionCanvasProperties- the- selectionCanvasproperties
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
setSelectionUnderCanvasPropertiespublic void setSelectionUnderCanvasProperties(Canvas selectionUnderCanvasProperties) throws IllegalStateException Properties to apply to the auto-generatedselectionUnderCanvasAutoChild when its use is enabled.- Parameters:
- selectionUnderCanvasProperties- the- selectionUnderCanvasproperties
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
setRollOverCanvasPropertiespublic void setRollOverCanvasProperties(Canvas rollOverCanvasProperties) throws IllegalStateException Properties to apply to the auto-generatedrollOverCanvasAutoChild when its use is enabled.- Parameters:
- rollOverCanvasProperties- the- rollOverCanvasproperties
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
setRollUnderCanvasPropertiespublic void setRollUnderCanvasProperties(Canvas rollUnderCanvasProperties) throws IllegalStateException Properties to apply to the auto-generatedrollUnderCanvasAutoChild when its use is enabled.- Parameters:
- rollUnderCanvasProperties- the- rollUnderCanvasproperties
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
setDataSourceBind to a DataSource.Binding to a DataSource means that the component will use the DataSource to provide default data for its fields. When binding to a new DataSource, if the component has any existing "fields" or has a dataset, these will be discarded by default, since it is assumed the new DataSource may represent a completely unrelated set of objects. If the old "fields" are still relevant, pass them to setDataSource(). - Parameters:
- dataSource-
- fields-
 
- 
setDetailDSIfcanExpandRecordsis true andlistGrid.expansionModeis"related", this property specifies the dataSource for the related records grid to be shown embedded in expanded records.This property may also be specified on a per-record basis - see recordDetailDSProperty- Parameters:
- detailDS- detail datasource
 
- 
setCheckboxFieldPropertiesStandard properties to apply to the automatically generated checkbox field, shown whenselectionAppearanceis set to "checkbox".Any properties applied to the ListGridField passed in will be overlaid onto the automatically generated checkbox field, allowing the developer to customize this field - for example modifying the appearance for skinning purposes, or setting shouldPrintto include the field in the print-view of the grid.- Parameters:
- checkboxFieldProperties- properties to apply to the checkbox field
 
- 
scrollBodyToScroll the body of the grid to the specified coordinates.- Parameters:
- left- the left position
- top- the top position
 
- 
getBodyScrollLeftGet the current scrollLeft for the body of this ListGrid- Returns:
- left scroll coordinate. May be null if this component has not been drawn.
 
- 
getBodyScrollTopGet the current scrollTop for the body of this ListGrid- Returns:
- top scroll coordinate. May be null if this component has not been drawn.
 
- 
startEditingNewStart editing a new row, after the last pre-existing record in the current set of data. This new row will be saved via the "add" DataSource operation. If editing is already underway elsewhere in the grid, startEditingNew() behaves just likestartEditing().- Parameters:
- defaultRecordValue- the default field values for the new record
 
- 
getSelectionDeprecated.usegetSelectedRecords()insteadThe selection associated with the listGrid.- Returns:
- the selection
 
- 
getSelectionDeprecated.usegetSelectedRecords(boolean)insteadThe selection associated with the listGrid.- Parameters:
- excludePartialSelections- when true, partially selected records will not be returned. Otherwise, both fully and partially selected records are returned.
- Returns:
- the selection
 
- 
getEditFormItemMethod to retrieve a live edit form item for aneditableListGrid. This is the automatically generated editor displayed in a cell while editing the grid.Note that this is an advanced method and developers should be aware of the following issues: - Edit form items are only present
 while a user is actually editing a cell. This method will return null if the user is not editing the grid or the field
 in question is not editable or not visible. Note that due to incremental renderingcolumns which are not currently scrolled into view may be unrendered, in which case they may have no associated edit item until the user scrolls them into view.
- The items' values are managed by the ListGrid through the edit-values subsystem. If you want to
 change an edit value for a field, call ListGrid.setEditValueand the grid will handle updating the value in the live item if necessary. You should not need to callsetValue();directly on the item and doing so will not always update the edit value for the grid.
 - Parameters:
- field- fieldName or colNum to get the edit item for.
- Returns:
- the live edit item for the current edit row and specified field, or null if the grid is not currently showing any editors.
 
- Edit form items are only present
 while a user is actually editing a cell. This method will return null if the user is not editing the grid or the field
 in question is not editable or not visible. Note that due to 
- 
getEditFormItemMethod to retrieve a live edit form item for aneditableListGrid. This is the automatically generated editor displayed in a cell while editing the grid.Note that this is an advanced method and developers should be aware of the following issues: - Edit form items are only present
 while a user is actually editing a cell. This method will return null if the user is not editing the grid or the field
 in question is not editable or not visible. Note that due to incremental renderingcolumns which are not currently scrolled into view may be unrendered, in which case they may have no associated edit item until the user scrolls them into view.
- The items' values are managed by the ListGrid through the edit-values subsystem. If you want to
 change an edit value for a field, call ListGrid.setEditValueand the grid will handle updating the value in the live item if necessary. You should not need to callsetValue();directly on the item and doing so will not always update the edit value for the grid.
 - Parameters:
- field- fieldName or colNum to get the edit item for.
- Returns:
- the live edit item for the current edit row and specified field, or null if the grid is not currently showing any editors.
 
- Edit form items are only present
 while a user is actually editing a cell. This method will return null if the user is not editing the grid or the field
 in question is not editable or not visible. Note that due to 
- 
openRecordDetailGridDeprecated.Open the current record detail grid inline,- Parameters:
- record- the record
- detailDataSource- the detail data source
 
- 
closeRecordDeprecated.Close the inline detail grid associated with the record.- Parameters:
- record- the record
 
- 
openRecordEditorDeprecated.Open the record editor associated with the record.- Parameters:
- record- the record
 
- 
groupByDisplay the current set of records grouped by their values for the given field or fields. With no arguments, disables all grouping.Grouping transforms the current dataset into a Tree on the fly, then provides a familiar tree interface for exploring the grouped data. Grouping works automatically with any dataset, providing simple default grouping based on each field's declared type. However, you can use the com.smartgwt.client.widgets.grid.ListGridField#getGroupValueAPI to control how records are grouped, and thecom.smartgwt.client.widgets.grid.ListGridField#getGroupTitleAPI to control how groups are titled.Grouping can be performed programmatically via this API, or you can set canGroupByto enable menus that allow the user to performing grouping. To group a grid automatically, instantiate the grid with agroupByFieldsetting.While grouped, the automatically created Tree is available as groupTreeand the original dataset is available asoriginalData.
- 
sort- Parameters:
- sortCol- the column number to sort by
- sortDirection- the direction to sort in
- Returns:
- sorting worked
- See Also:
 
- 
saveAllEditspublic boolean saveAllEdits()Save a number of outstanding edits for this ListGrid. If no rows are specified, all outstanding edits will be saved.- Returns:
- true if a save has been initiated (at least one row had changes, passed client-side validation, and a save has been attempted). false otherwise
 
- 
saveAllEditsSave a number of outstanding edits for this ListGrid. If no rows are specified, all outstanding edits will be saved.- Parameters:
- callback- this callback will be fired on a successful save. Note that if there are no pending edits to be saved this callback will not fire - you can check for this condition using- hasChanges()or- #rowHasChanges(). Use- addEditFailedHandler(EditFailedHandler)to find out about failures encountered during saving (on a per-row basis).
- Returns:
- true if a save has been initiated (at least one row had changes, passed client-side validation, and a save has been attempted). false otherwise
 
- 
saveAllEditsSave a number of outstanding edits for this ListGrid. If no rows are specified, all outstanding edits will be saved.- Parameters:
- callback- this callback will be fired on a successful save of the specified rows. Note that if there are no pending edits to be saved this callback will not fire - you can check for this condition using- hasChanges()or- #rowHasChanges(). Use- addEditFailedHandler(EditFailedHandler)to find out about failures encountered during saving (on a per-row basis).
- rows- specify which rows to save
- Returns:
- true if a save has been initiated (at least one row had changes, passed client-side validation, and a save has been attempted). false otherwise
 
- 
freezeFieldspublic void freezeFields(int[] colNums) - See Also:
- 
- #freezeField(int)
 
 
- 
freezeFields- See Also:
 
- 
unfreezeFieldspublic void unfreezeFields(int[] colNums) - See Also:
- 
- #unfreezeField(int)
 
 
- 
unfreezeFields- See Also:
 
- 
refreshCellpublic void refreshCell(int rowNum, int colNum, boolean refreshingRow, boolean allowEditCellRefresh) Refresh an individual cell without redrawing the grid.The cell's value, CSS class, and CSS text will be refreshed, to the current values returned by getCellValue(), getCellStyle() and getCellCSSText() respectively. - Parameters:
- rowNum- row number of cell to refresh
- colNum- column number of cell to refresh
 
- 
getVisibleRowsGet the rows that are currently visible in the viewport, as an array of [firstRowNum, lastRowNum]. If the grid contains no records, will return [-1,-1];- Returns:
- the visible rows
 
- 
getDrawnRowsGet the rows that are currently drawn (exist in the DOM), as an array of [firstRowNum, lastRowNum].The drawn rows differ from the getVisibleRows()because ofdrawAheadRatio. The drawn rows are the apppropriate range to consider if you need to, eg, usingrefreshCell(int, int)to update all the cells in a column.If the grid is undrawn or the emptyMessageis currently shown, returns [null,null];- Returns:
- the drawn rows
 
- 
fetchRelatedData- Parameters:
- record- the DataSource record
- dataSource- the schema of the DataSource record
- See Also:
 
- 
fetchRelatedDatapublic void fetchRelatedData(Record record, DataSource dataSource, DSCallback callback, DSRequest requestProperties) - Parameters:
- record- the DataSource record
- dataSource- the schema of the DataSource record
- callback- callback to invoke on completion
- requestProperties- additional properties to set on the DSRequest that will be issued
- See Also:
 
- 
getBodyReturns the primary body, which, when there are frozen fields, is thecom.smartgwt.client.grid.GridRendererused to render the non-frozen portion of the dataset; otherwise, the primary body (the only body) is the GridRenderer used to render the entire dataset.- Returns:
- the primary body or null if this ListGrid has not been drawn yet.
 
- 
getGridRendererSynonym ofgetBody().
- 
getEditedCell- See Also:
 
- 
getEditedCell- See Also:
 
- 
getEditedCell- See Also:
 
- 
getEditedRecordReturns the combination of unsaved edits (if any) and original values (if any) for a given row being edited.The returned value is never null, and can be freely modified. - Parameters:
- rowNum- the row num
- Returns:
- A copy of the record with unsaved edits included
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValuepublic void setEditValue(int rowNum, int colNum, double value) Modifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValuepublic void setEditValue(int rowNum, int colNum, boolean value) Modifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValuepublic void setEditValue(int rowNum, int colNum, float value) Modifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValuepublic void setEditValue(int rowNum, int colNum, int value) Modifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- colNum- column number of cell
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
setEditValueModifies a field value being tracked as an unsaved user edit.- Parameters:
- rowNum- row number
- fieldName- the field name
- value- new value for the appropriate field
 
- 
getEditValueReturns the current temporary locally stored edit value for some field within a record being edited.- Parameters:
- rowNum- index of the row for which the editValue should be returned
- fieldName- field name for which value should be returned
- Returns:
- edit value for the field in question
 
- 
getEditValueAsStringReturns the current temporary locally stored edit value for some field within a record being edited.- Parameters:
- rowNum- index of the row for which the editValue should be returned
- fieldName- field name for which value should be returned
- Returns:
- edit value for the field in question
 
- 
getEditValueAsIntReturns the current temporary locally stored edit value for some field within a record being edited.- Parameters:
- rowNum- index of the row for which the editValue should be returned
- fieldName- field name for which value should be returned
- Returns:
- edit value for the field in question
 
- 
getEditValueAsFloatReturns the current temporary locally stored edit value for some field within a record being edited.- Parameters:
- rowNum- index of the row for which the editValue should be returned
- fieldName- field name for which value should be returned
- Returns:
- edit value for the field in question
 
- 
getEditValueAsDateReturns the current temporary locally stored edit value for some field within a record being edited.- Parameters:
- rowNum- index of the row for which the editValue should be returned
- fieldName- field name for which value should be returned
- Returns:
- edit value for the field in question
 
- 
getEditValueAsBooleanReturns the current temporary locally stored edit value for some field within a record being edited.- Parameters:
- rowNum- index of the row for which the editValue should be returned
- fieldName- field name for which value should be returned
- Returns:
- edit value for the field in question
 
- 
getEditValueAsRecordReturns the current temporary locally stored edit value for some field within a record being edited.- Parameters:
- rowNum- index of the row for which the editValue should be returned
- fieldName- field name for which value should be returned
- Returns:
- edit value for the field in question
 
- 
getEditValueAsRecordArrayReturns the current temporary locally stored edit value for some field within a record being edited.- Parameters:
- rowNum- index of the row for which the editValue should be returned
- fieldName- field name for which value should be returned
- Returns:
- edit value for the field in question
 
- 
getEditValuesReturns the current set of unsaved edits for a given row being edited.- Parameters:
- rowNum- rowNum of the record being edited
- Returns:
- current editValues object for the row. This contains the current edit values in {fieldName1:value1, fieldName2:value2} format
 
- 
getEditValuesReturns the current set of unsaved edits for a given row being edited.- Parameters:
- record- an Object containing values for all the record's primary keys
- Returns:
- current editValues object for the row. This contains the current edit values in {fieldName1:value1, fieldName2:value2} format
 
- 
setSortSort the grid on one or more fields.Pass in an array of SortSpecifiers to have the grid's data sorted by the fields in eachspecifier.propertyand in the directions specified. The grid can be sorted by any combination of fields, including fields specified in the fields array, whether visible or hidden, andunused fields from the underlying dataSource, if there is one.If multiple fields are sorted, those that are visible show a directional icon and a small sort-numeralindicating that field's index in the sort configuration.If setSort() is called on a ListGrid which doesn't yet have a SmartClient widget, the widget will not be created; instead, the initial sort for the ListGrid will be set as if by setInitialSort(com.smartgwt.client.data.SortSpecifier...).See addSort()andtoggleSort()APIs for information on making changes to the current sort configuration.- Specified by:
- setSortin interface- DataBoundComponent
- Parameters:
- sortSpecifiers- Array of- SortSpecifierobjects
 
- 
setRowErrorsSet the validation errors for some row (replacing any pre-existent validation errors)- Parameters:
- rowNum- row to add validation error for
- errors- validation errors for the row. The key of the map must be the field name, and the value can either be a String error message or an array of Strings for multiple errors
 
- 
setFieldError- Parameters:
- rowNum- row index of cell to add validation error for
- fieldName- field name of cell to add validation error for
- errorMessages- validation error messages
- See Also:
- 
- #setFieldError(int, int, String)
 
 
- 
selectSingleRecordSelect a singleRecordpassed in explicitly, or by index, and deselect everything else. When programmatic selection of records is a requirement andselectionTypeis "single", use this method rather thanselectRecord(com.smartgwt.client.data.Record)to enforce mutually-exclusive record-selection.- Parameters:
- record- record to select
 
- 
selectSingleRecordpublic void selectSingleRecord(int rowNum) Select a singleRecordpassed in explicitly, or by index, and deselect everything else. When programmatic selection of records is a requirement andselectionTypeis "single", use this method rather thanselectRecord(com.smartgwt.client.data.Record)to enforce mutually-exclusive record-selection.- Parameters:
- rowNum- rowNum (or row number) to select
 
- 
getFormulaFieldValueGet the computed value of acanAddFormulaFields. Returns null for a bad formula or where the result is not a valid number.- Parameters:
- field- field that has a formula
- record- record to use to compute formula value
- Returns:
- formula result
 
- 
setCriteriaSets this component's filter criteria. Default implementation calls this.data.setCriteria()- Parameters:
- criteria- new criteria to show
 
- 
validateCellValidate the current edit value for the cell in question. Called when the user moves to a
 new edit cell ifvalidateByCellis true.
 
 This method may also be called directly to perform cell level validation at any time.
- Parameters:
- rowNum- index of row to be validated.
- colIndex- column index of field to be validated
- Returns:
- returns true if validation was successful (no errors encountered), false otherwise.
 
- 
cellHasErrorsGiven a rowNum and a colNum or fieldName, determine whether we currently have stored 
 validation errors for the record/field in question.
- Parameters:
- rowNum- index of row to check for validation errors
- colIndex- index of column to check for validation errors
- Returns:
- true if we have validation errors for the row/col in question
 
- 
clearFieldError- Parameters:
- rowNum- row index of cell to add validation error for
- fieldName- field name of cell to add validation error for
- See Also:
 
- 
setValueMapSet the value map for a field.
 See also thesetEditorValueMap(java.lang.String, java.util.LinkedHashMap)
 andcom.smartgwt.client.widgets.grid.ListGrid#getEditorValueMapmethods which allow further 
 customization of the valueMap displayed while the field is in edit mode.

- Parameters:
- fieldName- Name of field to update
- valueMap- ValueMap for the field
 
- 
setValueMapSet the value map for a field.
 See also thesetEditorValueMap(java.lang.String, java.util.LinkedHashMap)
 andcom.smartgwt.client.widgets.grid.ListGrid#getEditorValueMapmethods which allow further 
 customization of the valueMap displayed while the field is in edit mode.

- Parameters:
- fieldName- Name of field to update
- valueMap- ValueMap for the field
 
- 
setEditorValueMapSet a valueMap to display for this field while editing.
 This method sets the +link{ListGridField.editorValueMap, field.editorValueMap} property and may be called at runtime while editing the grid.- Parameters:
- fieldName- Name of field to update
- valueMap- ValueMap for the field
 
- 
setEditorValueMapSet a valueMap to display for this field while editing.
 This method sets the +link{ListGridField.editorValueMap, field.editorValueMap} property and may be called at runtime while editing the grid.- Parameters:
- fieldName- Name of field to update
- valueMap- ValueMap for the field
 
- 
getDisplayValueGiven a field with a specifiedvalueMapordisplayField, this method will return the display value for any underlying data value.- Parameters:
- fieldName- Name of the field for which the displayValue is required
- value- data value for the field
 
- 
getDisplayValueGiven a field with a specifiedvalueMapordisplayField, this method will return the display value for any underlying data value.- Parameters:
- fieldName- Name of the field for which the displayValue is required
- value- data value for the field
 
- 
getDisplayValueGiven a field with a specifiedvalueMapordisplayField, this method will return the display value for any underlying data value.- Parameters:
- fieldName- Name of the field for which the displayValue is required
- value- data value for the field
 
- 
getDisplayValueGiven a field with a specifiedvalueMapordisplayField, this method will return the display value for any underlying data value.- Parameters:
- fieldName- Name of the field for which the displayValue is required
- value- data value for the field
 
- 
getDisplayValueGiven a field with a specifiedvalueMapordisplayField, this method will return the display value for any underlying data value.- Parameters:
- fieldName- Name of the field for which the displayValue is required
- value- data value for the field
 
- 
getGroupSummaryDataIf this grid isgrouped, andshowGroupSummaryis true, this method will return the group summary data displayed at the end of the group.This method may return multiple records if more than one summary row per group is desired. - Parameters:
- records- the records in the group, for which the summary values are being calculated
- groupNode- object with specified groupValue and groupName for this group
- Returns:
- summary record(s)
 
- 
getGroupSummaryDatapublic ListGridRecord[] getGroupSummaryData(Record[] records, GroupNode groupNode, Boolean recalculate) If this grid isgrouped, andshowGroupSummaryis true, this method will return the group summary data displayed at the end of the group.This method may return multiple records if more than one summary row per group is desired. - Parameters:
- records- the records in the group, for which the summary values are being calculated
- groupNode- object with specified groupValue and groupName for this group
- recalculate- if set to false and the node has existing summary data, returns the stored summary data, rather than recalculating
- Returns:
- summary record(s)
 
- 
clearEditValue
 Clear a field value being tracked as an unsaved user edit.
 The saved record value will be displayed in the the appropriate cell instead.
 Will also discard any validation errors for the specified field / row.

 - Parameters:
- rowNum- the row number
- fieldName- name of field for which the value is to be cleared
 
- 
willAcceptDropThis method overridesCanvas.willAcceptDrop()and works as follows:
 - If
 Canvas.willAcceptDrop()(the superclass definition) returns false, this method always returns false. This allowsdragTypeanddropTypesto be used to configure eligibility for drop. By default, a ListGrid has no dropTypes configured and so this check will not prevent a drop.
- If this is a self-drop, that
 is, the user is dragging a record within this list, this is     an attempted drag-reorder.  If canReorderRecordsis false, this method returns false.
- If the EventHandler.getDragTarget()is another widget, ifcanAcceptDroppedRecordsis false this method returns false.
- If a call to getDragData()on thedragTargetfails to return an record object or an array of records, this method returns false.
- If a the drop target record is disabled or has canAcceptDropset to false, return false.
 - Overrides:
- willAcceptDropin class- Canvas
- Returns:
- true if this component will accept a drop of the dragData
 
- If
 
- 
preloadImagespublic static void preloadImages()Preload primary ListGrid skin images.
- 
getFieldWidthReturns a numeric value for the width of some field within thisListGrid.- Parameters:
- fieldName- Name of the field for which the width is to be determined.
- Returns:
- width of the field in px, or nullif the width can't be determined.
 
- 
getOriginalResultSetReturn the underlying, ungrouped data of this ListGrid as aResultSet. Use this method to access the data when the grid is grouped.Note that this method should only be called after initial data has been fetched by this DataBoundComponent. - Returns:
- ResultSet, or null if the underlying ungrouped data is not a ResultSet
- See Also:
 
- 
getOriginalRecordListReturn the underlying, ungrouped data of this DataBoundComponent as aRecordList.If this grid is grouped,DataBoundComponent.getRecordList()will return the grouped data as a Tree. Use this method to return the underlying Array of Records orResultSet, as if the grid was ungrouped:isGrouped() ? getOriginalRecordList() : getRecordList() - Returns:
- the RecordList
 
- 
setCellFormatterSets a formatter that returns the HTML to display in each cell of the grid, given the raw cell value. Can be overridden by definingListGridField.setCellFormatter(com.smartgwt.client.widgets.grid.CellFormatter).- Parameters:
- formatter- formatter to apply to the cell values
- See Also:
 
- 
setCellCSSTextCustomizerSets a customizer that returns additional CSS-text for styling a given cell.- Parameters:
- customizer- customizer to return the additional cell CSS
- See Also:
 
- 
setInactiveCellFormatterFormatter for inactive content.If present, this method will be invoked instead of setCellFormatter()in cases where the grid is rendering non-interactive content outside. Examples of cases where this can happen include:- dragTracker HTML for a row
 when dragTrackerModeis set to "record"
- measurement HTML used for sizing columns during autoFit
- measurement HTML used for sizing rows when fixedRecordHeightsis false and the grid has both frozen and unfrozen fields
 com.smartgwt.client.widgets.grid.ListGridField#setInactiveCellFormatterfield).This is useful for cases where it would not be appropriate to render the standard formatted cell value outside of the body of the grid. An example might be if the formatted value contains a DOM element with a specified ID - an approach sometimes used for integrating third party components into Smart GWT listGrid cells. In this case developers will wish to avoid having the framework render an element with the same ID outside of the grid, and should instead return HTML that would render at the same size, with an appropriate appearance. - Parameters:
- formatter- formatter for inactive cells
- See Also:
 
- dragTracker HTML for a row
 when 
- 
setCellValueHoverFormatterProvide a custom implementation ofcellValueHoverHTML(ListGridRecord, int, int, String).The CellValueHoverFormattershould return the HTML to display in the hover canvas that is displayed by default if a registeredCellValueHoverHandlerdoes not cancel aCellValueHoverEvent. The formatter can return null or an empty string to cancel the hover.- Parameters:
- formatter- the cell value hover formatter
 
- 
setCellContextMenuItemsCustomizerIfshowCellContextMenusistrue, this method is fired when the user right-clicks a cell in this grid.
 Default implementation will display a menu with entries derived fromListGrid.getCellContextMenuItemsfor the appropriate cell.- Parameters:
- customizer- the CellContextMenuItemsCustomizer
 
- 
setDragTrackerIconCustomizerHTML to be shown in hovers over cells in the column described by this field. Note that the "value" passed to the HoverCustomizer callback will be null when the HoverCustomizer is applied to the ListGrid. However when applied to a ListGridField, the appropriate field value will be passed.- Parameters:
- dragTrackerIconCustomizer- the dragTrackerIcon customizer
 
- 
setSortNumeralHTMLCustomizerThis customizer is called to generate the HTML for the sortNumeral displayed next to a field's title when it is included in the current sort specification.- Parameters:
- customizer- the sortNumeralHTML customizer
 
- 
setCanSelectRecordCustomizerThis customizer is called to determine whether a given record can be selected in this grid.- Parameters:
- customizer- the CanSelectRecordCustomizer customizer
 
- 
setDragTrackerTitleCustomizerReturn "title" HTML to display as a drag tracker when the user drags some record.
 Default implementation will display the cell value for the title field (see +link{listGrid.getTitleField()}) for the record(s) being dragged (including any icons / custom formatting / styling, etc).Note: Only called if +link{listGrid.dragTrackerMode} is set to "title".- Parameters:
- dragTrackerIconCustomizer- the dragTrackerIcon customizer
 
- 
setHoverCustomizerHTML to be shown in hovers over cells in the column described by this field.- Parameters:
- hoverCustomizer- the hover customizer
- See Also:
 
- 
setEditorCustomizerThis method allows developers to dynamically customize the form item displayed in an editable grid, based on the cell being edited. Note thatListGridField#setEditorType()allows a simpler static customization of FormItem properties for a specific field.- Parameters:
- customizer-
 
- 
hideFields- Parameters:
- fields- fields to hide
- suppressRelayout- if passed, don't relayout non-explicit sized fields to fit the available space
- See Also:
 
- 
showFields- Parameters:
- field- Fields to show.
- suppressRelayout- If passed, don't resize non-explicitly sized columns to fill the available space.
- See Also:
 
- 
getSelectedCellDataReturns the selected cells as a series of Records where each field value is stored under it's offset from the top-left of the selection. For example, a 2x2 cell selection starting from the first column would return two Records, each with two values stored under the names "0" and "1".If canSelectCellsis not enabled, this API always returns null.- Returns:
- list of Records as described above
 
- 
setFilterEditorPropertiesDeprecated.in favor ofsetFilterEditorProperties(RecordEditor)Properties to apply to the automatically generatedfilterEditorifshowFilterEditoris true.- Parameters:
- filterEditorProperties- filterEditorProperties Default value is null
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
findNextEditCellpublic int[] findNextEditCell(int rowNum, int colNum, boolean searchForward, boolean stepThroughFields, boolean checkStartingCell) Method to find the next editable cell given a starting row/col, and a direction, either iterating through fields within each row, or checking the same field in each row.Note, this is potentially an expensive method. For example, consider a listGrid where the user can add rows but not edit any existing rows; in this case, canEditCell()would inspect and reject every row in the dataSet before returning true for the last row. Consider this before making use of this method on grids with large dataSets- Parameters:
- rowNum- Index of starting row
- colNum- Index of starting column
- searchForward- true if searching forward for the next edit cell, false if searching backwards
- stepThroughFields- true if we should check every field in each row; false if we should check the same field in each row
- checkStartingCell- Should we check whether the starting cell is editable? Pass false to skip the starting cell
- Returns:
- 2 element array containing [rowNum,colNum]for the next editable cell, ornullif no editable cell is found.
 
- 
setMultiSortDialogDefaultspublic void setMultiSortDialogDefaults(MultiSortDialog multiSortDialogDefaults) throws IllegalStateException Class level defaults to apply to theMultiSortDialogwhich gets automatically generated when askForSort() is called.See also showHeaderSpanTitlesInSortEditorandsortEditorSpanTitleSeparator- Parameters:
- multiSortDialogDefaults- Default value is null
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
setMultiSortDialogPropertiespublic void setMultiSortDialogProperties(MultiSortDialog multiSortDialogProperties) throws IllegalStateException Properties to apply to theMultiSortDialogwhich gets automatically generated when askForSort() is called.See also showHeaderSpanTitlesInSortEditorandsortEditorSpanTitleSeparator- Parameters:
- multiSortDialogProperties- Default value is null
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getCriteriaRetrieves a copy of the current criteria for this component (may be null).Note: if showFilterEditoris true, the criteria returned by this method may not match the values currently displayed in the filter editor, since the user may have entered values which have not yet been applied to our data.getFilterEditorCriteria()may be used to retrieve the current criteria displayed in the filterEditor.- Returns:
- current filter criteria
- See Also:
 
- 
getGroupMembersFor agroupedgrid, returns all the direct children of the supplied node in thegroupTreeifrecordsOnlyfalse. Otherwise, ifrecordsOnlyis true, returns instead a list of all descendants under the supplied node that are actual records from the grid's original data - i.e. that are not other group nodes (for multi-grouping) or summary records.Note that null may be returned if the grid is not currently grouped or the supplied node is not a valid GroupNode.- Parameters:
- node- node from- groupTree
- recordsOnly-- trueto return all descendants that are actual records from the grid's original data, or- falseto return all immediate children of the supplied group node
- Returns:
- records under the supplied node, as specified above, or null if we're not grouping or the node isn't a group node.
 
- 
setGroupSortNormalizerWhensortByGroupFirstis active, sets theGroupNodevalue normalizer used for implicit sorting by the field(s) used for grouping.No default implementation. - Parameters:
- GroupSortNormalizer- customizer
- See Also:
 
- 
getFilterEditorCriteriaAsAdvancedCriteriaSame asgetFilterEditorCriteria()but returns anAdvancedCriteria.
- 
setDataPageSizeDescription copied from interface:DataBoundComponentWhen usingdata paging, how many records to fetch at a time. If set to a positive integer,dataPageSizewill override the defaultresultSizefor ResultSets automatically created when you callfetchData()(and similarly for theresultSizeof ResultTrees). The default of 0 means to just use the default page size of the data container.Note that regardless of the dataPageSizesetting, a component will always fetch all of data that it needs to draw. Settings such asshowAllRecords:true,drawAllMaxCellsanddrawAheadRatiocan cause more rows than the configureddataPageSizeto be fetched.- Specified by:
- setDataPageSizein interface- DataBoundComponent
- Parameters:
- dataPageSize- dataPageSize Default value is 0
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- See Also:
 
- 
getDataPageSizepublic int getDataPageSize()Description copied from interface:DataBoundComponentWhen usingdata paging, how many records to fetch at a time. If set to a positive integer,dataPageSizewill override the defaultresultSizefor ResultSets automatically created when you callfetchData()(and similarly for theresultSizeof ResultTrees). The default of 0 means to just use the default page size of the data container.Note that regardless of the dataPageSizesetting, a component will always fetch all of data that it needs to draw. Settings such asshowAllRecords:true,drawAllMaxCellsanddrawAheadRatiocan cause more rows than the configureddataPageSizeto be fetched.- Specified by:
- getDataPageSizein interface- DataBoundComponent
- Returns:
- int
- See Also:
 
- 
setUseAllDataSourceFieldsDescription copied from interface:DataBoundComponentIf true, the set of fields given by the "default binding" (see 
fields) is used, with any fields specified in
component.fieldsacting as overrides that can suppress or modify the
 display of individual fields, without having to list the entire set of fields that
 should be shown.

 If component.fieldscontains fields that are not found in the DataSource,
 they will be shown after the most recently referred to DataSource field. If the new
 fields appear first, they will be shown first.- Specified by:
- setUseAllDataSourceFieldsin interface- DataBoundComponent
- Parameters:
- useAllDataSourceFields- useAllDataSourceFields Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getUseAllDataSourceFieldsDescription copied from interface:DataBoundComponentIf true, the set of fields given by the "default binding" (see 
fields) is used, with any fields specified in
component.fieldsacting as overrides that can suppress or modify the
 display of individual fields, without having to list the entire set of fields that
 should be shown.

 If component.fieldscontains fields that are not found in the DataSource,
 they will be shown after the most recently referred to DataSource field. If the new
 fields appear first, they will be shown first.- Specified by:
- getUseAllDataSourceFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setSparseFieldStateDescription copied from interface:DataBoundComponentIf true,getFieldState()andsetFieldState(java.lang.String)will omit state information for hidden fields by default.- Specified by:
- setSparseFieldStatein interface- DataBoundComponent
- Parameters:
- sparseFieldState- sparseFieldState Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getSparseFieldStateDescription copied from interface:DataBoundComponentIf true,getFieldState()andsetFieldState(java.lang.String)will omit state information for hidden fields by default.- Specified by:
- getSparseFieldStatein interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setShowHiddenFieldsDescription copied from interface:DataBoundComponentWhether to show fields markedhidden:truewhen a DataBoundComponent is given a
 DataSource but nocomponent.fields.

 The hiddenproperty is used on DataSource fields to mark fields that are
 never of meaning to an end user.- Specified by:
- setShowHiddenFieldsin interface- DataBoundComponent
- Parameters:
- showHiddenFields- showHiddenFields Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getShowHiddenFieldsDescription copied from interface:DataBoundComponentWhether to show fields markedhidden:truewhen a DataBoundComponent is given a
 DataSource but nocomponent.fields.

 The hiddenproperty is used on DataSource fields to mark fields that are
 never of meaning to an end user.- Specified by:
- getShowHiddenFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setShowComplexFieldsDescription copied from interface:DataBoundComponentWhether to show fields of non-atomic types when a DataBoundComponent is given a
 DataSource but nocomponent.fields.

 If true, the component will show fields that declare a complex type, for example, a
 field 'shippingAddress' that declares type 'Address', where 'Address' is the ID of a
 DataSource that declares the fields of a shipping address (city, street name, etc).
 
 Such fields may need custom formatters or editors in order to create a usable interface,
 for example, an Address field in a ListGrid might use a custom formatter to combine the
 relevant fields of an address into one column, and might use a pop-up dialog for
 editing. Note : This is an advanced setting - Specified by:
- setShowComplexFieldsin interface- DataBoundComponent
- Parameters:
- showComplexFields- showComplexFields Default value is true
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getShowComplexFieldsDescription copied from interface:DataBoundComponentWhether to show fields of non-atomic types when a DataBoundComponent is given a
 DataSource but nocomponent.fields.

 If true, the component will show fields that declare a complex type, for example, a
 field 'shippingAddress' that declares type 'Address', where 'Address' is the ID of a
 DataSource that declares the fields of a shipping address (city, street name, etc).
 
 Such fields may need custom formatters or editors in order to create a usable interface,
 for example, an Address field in a ListGrid might use a custom formatter to combine the
 relevant fields of an address into one column, and might use a pop-up dialog for
 editing. - Specified by:
- getShowComplexFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setFetchOperationDescription copied from interface:DataBoundComponentOperation ID this component should use when performing fetch operations.- Specified by:
- setFetchOperationin interface- DataBoundComponent
- Parameters:
- fetchOperation- fetchOperation Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getFetchOperationDescription copied from interface:DataBoundComponentOperation ID this component should use when performing fetch operations.- Specified by:
- getFetchOperationin interface- DataBoundComponent
- Returns:
- String
 
- 
setUpdateOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing update operations.- Specified by:
- setUpdateOperationin interface- DataBoundComponent
- Parameters:
- updateOperation- Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- See Also:
 
- 
getUpdateOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing update operations.- Specified by:
- getUpdateOperationin interface- DataBoundComponent
- Returns:
- String
- See Also:
 
- 
setAddOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing add operations.- Specified by:
- setAddOperationin interface- DataBoundComponent
- Parameters:
- addOperation- Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- See Also:
 
- 
getAddOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing add operations.- Specified by:
- getAddOperationin interface- DataBoundComponent
- Returns:
- String
- See Also:
 
- 
setRemoveOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing remove operations.- Specified by:
- setRemoveOperationin interface- DataBoundComponent
- Parameters:
- removeOperation- Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- See Also:
 
- 
getRemoveOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing remove operations.- Specified by:
- getRemoveOperationin interface- DataBoundComponent
- Returns:
- String
- See Also:
 
- 
setExportFieldsDescription copied from interface:DataBoundComponentThe list of field-names to export. If provided, the field-list in the exported output is 
 limited and sorted as per the list.

 If exportFields is not provided, the exported output includes all visible fields 
 from this component, sorted as they appear. - Specified by:
- setExportFieldsin interface- DataBoundComponent
- Parameters:
- exportFields- exportFields Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getExportFieldsDescription copied from interface:DataBoundComponentThe list of field-names to export. If provided, the field-list in the exported output is 
 limited and sorted as per the list.

 If exportFields is not provided, the exported output includes all visible fields 
 from this component, sorted as they appear. - Specified by:
- getExportFieldsin interface- DataBoundComponent
- Returns:
- the list of field-names to export.
 
- 
setExportAllDescription copied from interface:DataBoundComponentSetting exportAll to true prevents the component from passing its list of fields to the 
 export call. The result is the export of all visible fields fromfields.

 If exportAll is false, an export operation will first consider 
 exportFields, if it's set, and fall back on all visible fields from
fieldsotherwise.- Specified by:
- setExportAllin interface- DataBoundComponent
- Parameters:
- exportAll- exportAll Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getExportAllDescription copied from interface:DataBoundComponentSetting exportAll to true prevents the component from passing its list of fields to the 
 export call. The result is the export of all visible fields fromfields.

 If exportAll is false, an export operation will first consider 
 exportFields, if it's set, and fall back on all visible fields from
fieldsotherwise.- Specified by:
- getExportAllin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setExportIncludeSummariesDescription copied from interface:DataBoundComponentIf Summary rows exist for this component, whether to include them when exporting client data. Defaults to true if not set- Specified by:
- setExportIncludeSummariesin interface- DataBoundComponent
- Parameters:
- exportIncludeSummaries- exportIncludeSummaries Default value is true
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getExportIncludeSummariesDescription copied from interface:DataBoundComponentIf Summary rows exist for this component, whether to include them when exporting client data. Defaults to true if not set- Specified by:
- getExportIncludeSummariesin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setPreventDuplicatesDescription copied from interface:DataBoundComponentIf set, detect and prevent duplicate records from being transferred to this component, either via
 drag and drop or viaDataBoundComponent.transferSelectedData(com.smartgwt.client.widgets.DataBoundComponent). When a duplicate transfer is detected,
 a dialog will appear showing theduplicateDragMessage.

 If the component either does not have a DataSourceor has a DataSource with no
primaryKeydeclared, duplicate checking is off by
 default. If duplicate checking is enabled, it looks for an existing record in the dataset
 that has all of the properties of the dragged record, and considers that a duplicate.

 For DragDataAction:"copy" where the target DataSource is related to the source
 DataSource by foreignKey, a duplicate means that the target list, as filtered by the current
 criteria, already has a record whose value for the foreignKey field matches the
 primaryKey of the record being transferred.

 For example, consider dragging "employees" to "teams", where "teams" has a field
 "teams.employeeId" which is a foreignKey pointing to "employees.id", and the target
 grid has search criteria causing it to show all the members of one team. A duplicate -
 adding an employee to the same team twice - is when the target grid's dataset contains an
 record with "employeeId" matching the "id" field of the dropped employee. - Specified by:
- setPreventDuplicatesin interface- DataBoundComponent
- Parameters:
- preventDuplicates- preventDuplicates Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getPreventDuplicatesDescription copied from interface:DataBoundComponentIf set, detect and prevent duplicate records from being transferred to this component, either via
 drag and drop or viaDataBoundComponent.transferSelectedData(com.smartgwt.client.widgets.DataBoundComponent). When a duplicate transfer is detected,
 a dialog will appear showing theduplicateDragMessage.

 If the component either does not have a DataSourceor has a DataSource with no
primaryKeydeclared, duplicate checking is off by
 default. If duplicate checking is enabled, it looks for an existing record in the dataset
 that has all of the properties of the dragged record, and considers that a duplicate.

 For DragDataAction:"copy" where the target DataSource is related to the source
 DataSource by foreignKey, a duplicate means that the target list, as filtered by the current
 criteria, already has a record whose value for the foreignKey field matches the
 primaryKey of the record being transferred.

 For example, consider dragging "employees" to "teams", where "teams" has a field
 "teams.employeeId" which is a foreignKey pointing to "employees.id", and the target
 grid has search criteria causing it to show all the members of one team. A duplicate -
 adding an employee to the same team twice - is when the target grid's dataset contains an
 record with "employeeId" matching the "id" field of the dropped employee. - Specified by:
- getPreventDuplicatesin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setDuplicateDragMessageDescription copied from interface:DataBoundComponentMessage to show when a user attempts to transfer duplicate records into this component, and
preventDuplicatesis enabled. If set to null, duplicates will not be reported and the dragged duplicates will not be saved.- Specified by:
- setDuplicateDragMessagein interface- DataBoundComponent
- Parameters:
- duplicateDragMessage- duplicateDragMessage Default value is "Duplicates not allowed"
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getDuplicateDragMessageDescription copied from interface:DataBoundComponentMessage to show when a user attempts to transfer duplicate records into this component, and
preventDuplicatesis enabled. If set to null, duplicates will not be reported and the dragged duplicates will not be saved.- Specified by:
- getDuplicateDragMessagein interface- DataBoundComponent
- Returns:
- String
 
- 
setAddDropValuesDescription copied from interface:DataBoundComponentIndicates whether to add "drop values" to items dropped on this component, if both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key. "Drop values" are properties of the dropped item that you wish to change (and persist) as a result of the item being dropped on this grid.If this value is true and this component is databound, DataBoundComponent.getDropValues()will be called for every databound item dropped on this grid, and an update performed on the item- Specified by:
- setAddDropValuesin interface- DataBoundComponent
- Parameters:
- addDropValues- addDropValues Default value is true
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getAddDropValuesDescription copied from interface:DataBoundComponentIndicates whether to add "drop values" to items dropped on this component, if both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key. "Drop values" are properties of the dropped item that you wish to change (and persist) as a result of the item being dropped on this grid.If this value is true and this component is databound, DataBoundComponent.getDropValues()will be called for every databound item dropped on this grid, and an update performed on the item- Specified by:
- getAddDropValuesin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setDropValuesDescription copied from interface:DataBoundComponentWhen an item is dropped on this component, andaddDropValuesis true and both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key, this object provides the "drop values" that Smart GWT will apply to the dropped object before updating it.If this property is not defined, Smart GWT defaults to returning the selection criteria currently in place for this component. Thus, any databound items (for example, rows from other grids bound to the same DataSource) dropped on the grid will, by default, be subjected to an update that makes them conform to the grid's current filter criteria. Note : This is an advanced setting - Specified by:
- setDropValuesin interface- DataBoundComponent
- Parameters:
- dropValues- dropValues Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getDropValuesDescription copied from interface:DataBoundComponentWhen an item is dropped on this component, andaddDropValuesis true and both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key, this object provides the "drop values" that Smart GWT will apply to the dropped object before updating it.If this property is not defined, Smart GWT defaults to returning the selection criteria currently in place for this component. Thus, any databound items (for example, rows from other grids bound to the same DataSource) dropped on the grid will, by default, be subjected to an update that makes them conform to the grid's current filter criteria. Note : This is an advanced setting - Specified by:
- getDropValuesin interface- DataBoundComponent
- Returns:
- Returns the "drop values" to apply to a record dropped on this component prior to update.  Only
 applicable to databound components - see dropValuesfor more details. If multiple records 
 are being dropped, this method is called for each of them in turn.

 This method returns the following:
 - 
 
- Nothing, if addDropValuesis false 

- dropValues, if that property is set. If the component's criteria object is applicable (as explained
 in the next item), it is merged into dropValues, with properties in dropValues taking precedence. 

- The component's criteria object, if the most recent textMatchStyle for the component was "exact" 
 and it is simple criteria (ie, not an AdvancedCriteria object) 

- Otherwise nothing 

 
 You can override this method if you need more complex setting of drop values than can be 
 provided by simply supplying a dropValues object.
 
 
- Nothing, if 
 
- 
setProgressiveLoadingIndicates whether or not this component will load its dataprogressively- Parameters:
- progressiveLoading-
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- See Also:
 
- 
getProgressiveLoadingIndicates whether or not this component will load its dataprogressively- Returns:
- See Also:
 
- 
setUseFlatFieldsDescription copied from interface:DataBoundComponentTheuseFlatFieldsflag causes all simple type fields anywhere in a nested
 set of DataSources to be exposed as a flat list for form binding. 

 useFlatFieldsis typically used with imported metadata, such as 
XMLTools.loadXMLSchema(java.lang.String, com.smartgwt.client.data.XSDLoadCallback)from a 
XMLTools.loadWSDL(java.lang.String, com.smartgwt.client.data.WSDLLoadCallback), as a means of eliminating levels of XML
 nesting that aren't meaningful in a user interface, without the cumbersome and fragile
 process of mapping form fields to XML structures.

 For example, having called WebService.getInputDS(java.lang.String)to retrieve the input message
 schema for a web service operation whose input message looks like this:

 <FindServices>
 <searchFor>search text</searchFor>
 <Options>
 <caseSensitive>false</caseSensitive>
 </Options>
 <IncludeInSearch>
 <serviceName>true</serviceName>
 <documentation>true</documentation>
 <keywords>true</keywords>
 </IncludeInSearch>
 </FindServices>
 
 SettinguseFlatFieldson aDynamicFormthat is bound to this input
 message schema would result in 5FormItemreflecting the 5 simple type
 fields in the message.

 For this form, the result of DynamicForm.getValues()might look
 like:

 {
 searchFor: "search text",
 caseSensitive: false,
 serviceName: true,
 documentation : true,
 keywords : true
 }
 When contacting aWebService, these values can be automatically
 mapped to the structure of the input message for a web service operation by setting
 {@link com.smartgwt.client..WSRequest#getUseFlatFields useFlatFields} (for use withWebService.callOperation(java.lang.String, java.util.Map, java.lang.String, com.smartgwt.client.data.WebServiceCallback)) or by setting
useFlatFields(for use with aDataSourcethat is
'bound to a WSDL web service'via
wsOperation). 

 Using these two facilities in conjunction (component.useFlatFields and
 request.useFlatFields) allows gratuitous nesting to be consistently bypassed in both the user
 presentation and when providing the data for XML messages.
 
 You can also set useFlatFieldsto automatically enable 
 "flattened" XML serialization (request.useFlatFields) for all DataSource requests of a
 particular operationType.

 Note that useFlatFieldsis not generally recommended for use with structures
 where multiple simple type fields exist with the same name, however if used with such a
 structure, the first field to use a given name wins. "first" means the first field
 encountered in a depth first search. "wins" means only the first field will be present as a
 field when data binding.- Specified by:
- setUseFlatFieldsin interface- DataBoundComponent
- Parameters:
- useFlatFields- useFlatFields Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getUseFlatFieldsDescription copied from interface:DataBoundComponentTheuseFlatFieldsflag causes all simple type fields anywhere in a nested
 set of DataSources to be exposed as a flat list for form binding. 

 useFlatFieldsis typically used with imported metadata, such as 
XMLTools.loadXMLSchema(java.lang.String, com.smartgwt.client.data.XSDLoadCallback)from a 
XMLTools.loadWSDL(java.lang.String, com.smartgwt.client.data.WSDLLoadCallback), as a means of eliminating levels of XML
 nesting that aren't meaningful in a user interface, without the cumbersome and fragile
 process of mapping form fields to XML structures.

 For example, having called WebService.getInputDS(java.lang.String)to retrieve the input message
 schema for a web service operation whose input message looks like this:

 <FindServices>
 <searchFor>search text</searchFor>
 <Options>
 <caseSensitive>false</caseSensitive>
 </Options>
 <IncludeInSearch>
 <serviceName>true</serviceName>
 <documentation>true</documentation>
 <keywords>true</keywords>
 </IncludeInSearch>
 </FindServices>
 
 SettinguseFlatFieldson aDynamicFormthat is bound to this input
 message schema would result in 5FormItemreflecting the 5 simple type
 fields in the message.

 For this form, the result of DynamicForm.getValues()might look
 like:

 {
 searchFor: "search text",
 caseSensitive: false,
 serviceName: true,
 documentation : true,
 keywords : true
 }
 When contacting aWebService, these values can be automatically
 mapped to the structure of the input message for a web service operation by setting
 {@link com.smartgwt.client..WSRequest#getUseFlatFields useFlatFields} (for use withWebService.callOperation(java.lang.String, java.util.Map, java.lang.String, com.smartgwt.client.data.WebServiceCallback)) or by setting
useFlatFields(for use with aDataSourcethat is
'bound to a WSDL web service'via
wsOperation). 

 Using these two facilities in conjunction (component.useFlatFields and
 request.useFlatFields) allows gratuitous nesting to be consistently bypassed in both the user
 presentation and when providing the data for XML messages.
 
 You can also set useFlatFieldsto automatically enable 
 "flattened" XML serialization (request.useFlatFields) for all DataSource requests of a
 particular operationType.

 Note that useFlatFieldsis not generally recommended for use with structures
 where multiple simple type fields exist with the same name, however if used with such a
 structure, the first field to use a given name wins. "first" means the first field
 encountered in a depth first search. "wins" means only the first field will be present as a
 field when data binding.- Specified by:
- getUseFlatFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setHilitePropertyDescription copied from interface:DataBoundComponentMarker that can be set on a record to flag that record as hilited. Should be set to a value
 that matches {@link com.smartgwt.client..Hilite#getId id} for a hilite defined on this component.- Specified by:
- setHilitePropertyin interface- DataBoundComponent
- Parameters:
- hiliteProperty- hiliteProperty Default value is "_hilite"
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getHilitePropertyDescription copied from interface:DataBoundComponentMarker that can be set on a record to flag that record as hilited. Should be set to a value
 that matches {@link com.smartgwt.client..Hilite#getId id} for a hilite defined on this component.- Specified by:
- getHilitePropertyin interface- DataBoundComponent
- Returns:
- String
 
- 
editFieldspublic void editFields()Shows a FieldPicker interface allowing end-users to rearrange the order and visibiility of the fields in the associated DataBoundComponent.
- 
editHilitespublic void editHilites()Description copied from interface:DataBoundComponentShows a HiliteEditor interface allowing end-users to edit the data-hilites currently in use by this DataBoundComponent.- Specified by:
- editHilitesin interface- DataBoundComponent
 
- 
getHiliteStateDescription copied from interface:DataBoundComponentGet the current hilites encoded as a String, for saving.- Specified by:
- getHiliteStatein interface- DataBoundComponent
- Returns:
- the hilite state
 
- 
setHiliteStateDescription copied from interface:DataBoundComponentSet the current hilites based on a hiliteState String previously returned from getHilitesState.- Specified by:
- setHiliteStatein interface- DataBoundComponent
- Parameters:
- hiliteState- hilites state encoded as a String
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
setHilitesDescription copied from interface:DataBoundComponentAccepts an array of hilite objects and applies them to this DataBoundComponent. See alsogetHilitesfor a method of retrieving the hilite array for storage, including hilites manually added by the user.NOTE: This is only supported on ListGridfor now.- Specified by:
- setHilitesin interface- DataBoundComponent
- Parameters:
- hilites- array of hilite objects
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getHilitesDescription copied from interface:DataBoundComponentReturn the set of hilite-objects currently applied to this DataBoundComponent. These can be saved for storage and then restored to a component later via setHilites().- Specified by:
- getHilitesin interface- DataBoundComponent
- Returns:
- array of hilite objects
 
- 
setDragDataActionDescription copied from interface:DataBoundComponentIndicates what to do with data dragged into another DataBoundComponent. See
 DragDataAction type for details.- Specified by:
- setDragDataActionin interface- DataBoundComponent
- Parameters:
- dragDataAction- dragDataAction Default value is Canvas.MOVE
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getDragDataActionDescription copied from interface:DataBoundComponentIndicates what to do with data dragged into another DataBoundComponent. See
 DragDataAction type for details.- Specified by:
- getDragDataActionin interface- DataBoundComponent
- Returns:
- DragDataAction
 
- 
setDragTrackerStyleDescription copied from interface:DataBoundComponentCSS Style to apply to the drag tracker when dragging occurs on this component.- Specified by:
- setDragTrackerStylein interface- DataBoundComponent
- Parameters:
- dragTrackerStyle- dragTrackerStyle Default value is "gridDragTracker"
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getDragTrackerStyleDescription copied from interface:DataBoundComponentCSS Style to apply to the drag tracker when dragging occurs on this component.- Specified by:
- getDragTrackerStylein interface- DataBoundComponent
- Returns:
- String
 
- 
setCanAddFormulaFieldsDescription copied from interface:DataBoundComponentAdds an item to the header context menu allowing users to launch a dialog to define a new
 field based on values present in other fields, using the {@link com.smartgwt.client..FormulaBuilder}.

 User-added formula fields can be persisted via getFieldState()and 
setFieldState(java.lang.String).- Specified by:
- setCanAddFormulaFieldsin interface- DataBoundComponent
- Parameters:
- canAddFormulaFields- canAddFormulaFields Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
addSummaryFieldpublic void addSummaryField()Description copied from interface:DataBoundComponentConvenience method to display a {@link com.smartgwt.client..SummaryBuilder} to create a new Summary Field. This 
 is equivalent to callingDataBoundComponentGen#editSummaryFieldwith 
 no parameter.

- Specified by:
- addSummaryFieldin interface- DataBoundComponent
 
- 
addFormulaFieldpublic void addFormulaField()Description copied from interface:DataBoundComponentConvenience method to display a {@link com.smartgwt.client..FormulaBuilder} to create a new Formula Field. This 
 is equivalent to callingDataBoundComponentGen#editFormulaFieldwith 
 no parameter.

- Specified by:
- addFormulaFieldin interface- DataBoundComponent
 
- 
getCanAddFormulaFieldsDescription copied from interface:DataBoundComponentAdds an item to the header context menu allowing users to launch a dialog to define a new
 field based on values present in other fields, using the {@link com.smartgwt.client..FormulaBuilder}.

 User-added formula fields can be persisted via getFieldState()and 
setFieldState(java.lang.String).- Specified by:
- getCanAddFormulaFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setAddFormulaFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to add a formula field- Specified by:
- setAddFormulaFieldTextin interface- DataBoundComponent
- Parameters:
- addFormulaFieldText- addFormulaFieldText Default value is "Add formula column..."
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getAddFormulaFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to add a formula field- Specified by:
- getAddFormulaFieldTextin interface- DataBoundComponent
- Returns:
- String
 
- 
setEditFormulaFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to edit a formula field- Specified by:
- setEditFormulaFieldTextin interface- DataBoundComponent
- Parameters:
- editFormulaFieldText- editFormulaFieldText Default value is "Edit formula..."
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getEditFormulaFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to edit a formula field- Specified by:
- getEditFormulaFieldTextin interface- DataBoundComponent
- Returns:
- String
 
- 
setCanAddSummaryFieldsDescription copied from interface:DataBoundComponentAdds an item to the header context menu allowing users to launch a dialog to define a new
 text field that can contain both user-defined text and the formatted values present in other 
 fields, using the {@link com.smartgwt.client..SummaryBuilder}.

 User-added summary fields can be persisted via getFieldState()and 
setFieldState(java.lang.String).- Specified by:
- setCanAddSummaryFieldsin interface- DataBoundComponent
- Parameters:
- canAddSummaryFields- canAddSummaryFields Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getCanAddSummaryFieldsDescription copied from interface:DataBoundComponentAdds an item to the header context menu allowing users to launch a dialog to define a new
 text field that can contain both user-defined text and the formatted values present in other 
 fields, using the {@link com.smartgwt.client..SummaryBuilder}.

 User-added summary fields can be persisted via getFieldState()and 
setFieldState(java.lang.String).- Specified by:
- getCanAddSummaryFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setAddSummaryFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to add a formula field- Specified by:
- setAddSummaryFieldTextin interface- DataBoundComponent
- Parameters:
- addSummaryFieldText- addSummaryFieldText Default value is "Add summary column..."
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getAddSummaryFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to add a formula field- Specified by:
- getAddSummaryFieldTextin interface- DataBoundComponent
- Returns:
- String
 
- 
setEditSummaryFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to edit the formatter for a field- Specified by:
- setEditSummaryFieldTextin interface- DataBoundComponent
- Parameters:
- editSummaryFieldText- editSummaryFieldText Default value is "Edit summary format..."
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getEditSummaryFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to edit the formatter for a field- Specified by:
- getEditSummaryFieldTextin interface- DataBoundComponent
- Returns:
- String
 
- 
setSavedSearchIdDescription copied from interface:DataBoundComponentOptional identifier for saved searches that should be applied to this component.By default SavedSearchesare associated with a component via itslocal IDandDataSource ID. This property allows developers to override this behavior and explicitly associate a component with a set of saved searches. This can provide a couple of benefits:
 Firstly this ensures that saved searches will be unambiguously associated with the particular component even if the page changes such that a stored minimal locator would no longer applied to the component, without requiring an explicitCanvas.ID.
 Secondly this allows the same set of saved searches to be applied to more than one component on a page. This may be valueable for cases where the same information from the same dataSource is presented to users in multiple places.Note: This is an advanced setting. - Specified by:
- setSavedSearchIdin interface- DataBoundComponent
- Parameters:
- savedSearchId- New savedSearchId value. Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getSavedSearchIdDescription copied from interface:DataBoundComponentOptional identifier for saved searches that should be applied to this component.By default SavedSearchesare associated with a component via itslocal IDandDataSource ID. This property allows developers to override this behavior and explicitly associate a component with a set of saved searches. This can provide a couple of benefits:
 Firstly this ensures that saved searches will be unambiguously associated with the particular component even if the page changes such that a stored minimal locator would no longer applied to the component, without requiring an explicitCanvas.ID.
 Secondly this allows the same set of saved searches to be applied to more than one component on a page. This may be valueable for cases where the same information from the same dataSource is presented to users in multiple places.- Specified by:
- getSavedSearchIdin interface- DataBoundComponent
- Returns:
- Current savedSearchId value. Default value is null
 
- 
setShowSavedSearchesByDSpublic ListGrid setShowSavedSearchesByDS(boolean showSavedSearchesByDS) throws IllegalStateException Description copied from interface:DataBoundComponentWhether to associate saved searches by default with the currentDataSourceof a component when asavedSearchIdis not provided. If this property is true, then when the DataSource is changed, existing saved searches will disappear and only be available if the DataSource is set back to its original value.If this property is false, saved searches will persist across DataSource changes so that searches that aren't applicable to the current DataSource might still be shown. Note: This is an advanced setting - Specified by:
- setShowSavedSearchesByDSin interface- DataBoundComponent
- Parameters:
- showSavedSearchesByDS- New showSavedSearchesByDS value. Default value is true
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getShowSavedSearchesByDSpublic boolean getShowSavedSearchesByDS()Description copied from interface:DataBoundComponentWhether to associate saved searches by default with the currentDataSourceof a component when asavedSearchIdis not provided. If this property is true, then when the DataSource is changed, existing saved searches will disappear and only be available if the DataSource is set back to its original value.If this property is false, saved searches will persist across DataSource changes so that searches that aren't applicable to the current DataSource might still be shown. - Specified by:
- getShowSavedSearchesByDSin interface- DataBoundComponent
- Returns:
- Current showSavedSearchesByDS value. Default value is true
 
- 
findAllFilters all objects according to the AdvancedCriteria passed- Parameters:
- adCriteria- AdvancedCriteria to use to filter results
- Returns:
- all matching Objects or null if none found
 
- 
findFilters all objects according to the AdvancedCriteria passed and returns the first matching object or null if not found- Parameters:
- adCriteria- AdvancedCriteria to use to filter results
- Returns:
- first matching object or null if not found
 
- 
findIndexFinds the index of the first Record that matches with the AdvacendCriteria passed.- Parameters:
- adCriteria- AdvancedCriteria to use to filter results
- Returns:
- index of the first matching Record or -1 if not found
 
- 
findNextIndexLikeRecordList.findIndex(java.util.Map), but considering the startIndex and endIndex parameters.- Parameters:
- startIndex- first index to consider
- adCriteria- AdvancedCriteria to use to filter results
- endIndex- last index to consider
- Returns:
- index of the first matching Record or -1 if not found
 
- 
findNextIndexLikeRecordList.findIndex(java.util.Map), but considering the startIndex parameter.- Parameters:
- startIndex- first index to consider
- adCriteria- AdvancedCriteria to use to filter results
- Returns:
- index of the first matching Record or -1 if not found
 
- 
selectRecordDescription copied from interface:DataBoundComponentSelect/deselect aRecordpassed in explicitly, or by index.- Specified by:
- selectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to select
 
- 
selectRecordpublic void selectRecord(int record) Description copied from interface:DataBoundComponentSelect/deselect aRecordpassed in explicitly, or by index.- Specified by:
- selectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to select
 
- 
selectRecordpublic void selectRecord(int record, boolean newState) Description copied from interface:DataBoundComponentSelect/deselect aRecordpassed in explicitly, or by index.- Specified by:
- selectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to select
- newState- new selection state (if null, defaults to true)
 
- 
selectRecordDescription copied from interface:DataBoundComponentSelect/deselect aRecordpassed in explicitly, or by index.- Specified by:
- selectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to select
- newState- new selection state (if null, defaults to true)
 
- 
selectRecordspublic void selectRecords(int[] records) Description copied from interface:DataBoundComponentSelect/deselect a list ofRecords passed in explicitly, or by index.- Specified by:
- selectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to select
 
- 
selectRecordspublic void selectRecords(int[] records, boolean newState) Description copied from interface:DataBoundComponentSelect/deselect a list ofRecords passed in explicitly, or by index.- Specified by:
- selectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to select
- newState- new selection state
 
- 
selectRecordsDescription copied from interface:DataBoundComponentSelect/deselect a list ofRecords passed in explicitly, or by index.- Specified by:
- selectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to select
 
- 
selectRecordsDescription copied from interface:DataBoundComponentSelect/deselect a list ofRecords passed in explicitly, or by index.- Specified by:
- selectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to select
- newState- new selection state (if null, defaults to true)
 
- 
deselectRecordDescription copied from interface:DataBoundComponentDeselect aRecordpassed in explicitly, or by index.Synonym for selectRecord(record, false)- Specified by:
- deselectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to deselect
 
- 
deselectRecordpublic void deselectRecord(int record) Description copied from interface:DataBoundComponentDeselect aRecordpassed in explicitly, or by index.Synonym for selectRecord(record, false)- Specified by:
- deselectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to deselect
 
- 
deselectRecordspublic void deselectRecords(int[] records) Description copied from interface:DataBoundComponentDeselect a list ofRecords passed in explicitly, or by index.Synonym for selectRecords(records, false)- Specified by:
- deselectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to deselect
 
- 
deselectRecordsDescription copied from interface:DataBoundComponentDeselect a list ofRecords passed in explicitly, or by index.Synonym for selectRecords(records, false)- Specified by:
- deselectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to deselect
 
- 
selectAllRecordspublic void selectAllRecords()Description copied from interface:DataBoundComponentSelect all records

- Specified by:
- selectAllRecordsin interface- DataBoundComponent
 
- 
deselectAllRecordspublic void deselectAllRecords()Description copied from interface:DataBoundComponent
 Deselect all records

- Specified by:
- deselectAllRecordsin interface- DataBoundComponent
 
- 
anySelectedDescription copied from interface:DataBoundComponentWhether at least one item is selected
- Specified by:
- anySelectedin interface- DataBoundComponent
- Returns:
- true == at least one item is selected false == nothing at all is selected
 
- 
enableHiliteDescription copied from interface:DataBoundComponentEnable / disable ahilites

- Specified by:
- enableHilitein interface- DataBoundComponent
- Parameters:
- hiliteID- ID of hilite to enable
 
- 
enableHiliteDescription copied from interface:DataBoundComponentEnable / disable ahilites

- Specified by:
- enableHilitein interface- DataBoundComponent
- Parameters:
- hiliteID- ID of hilite to enable
- enable- new enabled state to apply - if null, defaults to true
 
- 
disableHiliteDescription copied from interface:DataBoundComponentDisable a hilite

- Specified by:
- disableHilitein interface- DataBoundComponent
- Parameters:
- hiliteID- ID of hilite to disable
 
- 
enableHilitingpublic void enableHiliting()Description copied from interface:DataBoundComponentEnable all hilites.

- Specified by:
- enableHilitingin interface- DataBoundComponent
 
- 
enableHilitingpublic void enableHiliting(boolean enable) Description copied from interface:DataBoundComponentEnable all hilites.

- Specified by:
- enableHilitingin interface- DataBoundComponent
- Parameters:
- enable- new enabled state to apply - if null, defaults to true
 
- 
disableHilitingpublic void disableHiliting()Description copied from interface:DataBoundComponentDisable all hilites.

- Specified by:
- disableHilitingin interface- DataBoundComponent
 
- 
getDragDataDescription copied from interface:DataBoundComponentDuring a drag-and-drop interaction, this method returns the set of records being dragged out of the component. In the default implementation, this is the list of currently selected records.This method is consulted by
 willAcceptDrop().- Specified by:
- getDragDatain interface- DataBoundComponent
- Returns:
- Array of Records that are currently selected.
 
- 
transferSelectedDataDescription copied from interface:DataBoundComponentSimulates a drag / drop type transfer of the selected records in some other component to this component, without requiring any user interaction. This method acts on the dropped records exactly as if they had been dropped in an actual drag / drop interaction, including any special databound behavior invoked by callingDataBoundComponent.getDropValues()for each dropped record.To transfer all data in, for example, a ListGrid, call grid.selection.selectAll() first.Note that drag/drop type transfers of records between components are asynchronous operations: Smart GWT may need to perform server turnarounds to establish whether dropped records already exist in the target component. Therefore, it is possible to issue a call to transferSelectedData()and/or thedrop()method of a databound component whilst a transfer is still active. When this happens, Smart GWT adds the second and subsequent transfer requests to a queue and runs them one after the other. If you want to be notified when a transfer process has actually completed, useHasDropCompleteHandlers.addDropCompleteHandler(com.smartgwt.client.widgets.events.DropCompleteHandler). See theDraggingdocumentation for an overview of list grid drag/drop data transfer.- Specified by:
- transferSelectedDatain interface- DataBoundComponent
- Parameters:
- source- source component from which the records will be tranferred
 
- 
transferSelectedDataDescription copied from interface:DataBoundComponentSimulates a drag / drop type transfer of the selected records in some other component to this component, without requiring any user interaction. This method acts on the dropped records exactly as if they had been dropped in an actual drag / drop interaction, including any special databound behavior invoked by callingDataBoundComponent.getDropValues()for each dropped record.To transfer all data in, for example, a ListGrid, call grid.selection.selectAll() first.Note that drag/drop type transfers of records between components are asynchronous operations: Smart GWT may need to perform server turnarounds to establish whether dropped records already exist in the target component. Therefore, it is possible to issue a call to transferSelectedData()and/or thedrop()method of a databound component whilst a transfer is still active. When this happens, Smart GWT adds the second and subsequent transfer requests to a queue and runs them one after the other. If you want to be notified when a transfer process has actually completed, useHasDropCompleteHandlers.addDropCompleteHandler(com.smartgwt.client.widgets.events.DropCompleteHandler). See theDraggingdocumentation for an overview of list grid drag/drop data transfer.- Specified by:
- transferSelectedDatain interface- DataBoundComponent
- Parameters:
- source- source component from which the records will be transferred
- index- target index (drop position) of the rows within this grid.
 
- 
getRecordIndexDescription copied from interface:DataBoundComponentGet the index of the provided record.

 Override in subclasses to provide more specific behaviour, for instance, when data holds a
 large number of records

 - Specified by:
- getRecordIndexin interface- DataBoundComponent
- Parameters:
- record- the record whose index is to be retrieved
- Returns:
- indexindex of the record, or -1 if not found
 
- 
getTitleFieldValueDescription copied from interface:DataBoundComponentGet the value of the titleField for the passed record

 Override in subclasses 

 - Specified by:
- getTitleFieldValuein interface- DataBoundComponent
- Parameters:
- record- the record whose index is to be retrieved
- Returns:
- valuethe value of the titleField for the passed record
 
- 
setTitleFieldDescription copied from interface:DataBoundComponentSets the best field to use for a user-visible title for an individual record from this component.- Specified by:
- setTitleFieldin interface- DataBoundComponent
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getTitleFieldDescription copied from interface:DataBoundComponentMethod to return the fieldName which represents the "title" for records in this
 Component.
 
 If this.titleField is explicitly specified it will always be used.
 Otherwise, default implementation will checktitleFieldfor databound
 components.
 
 For non databound components returns the first defined field name of"title", 
"name", or"id". If we dont find any field-names that match these
 titles, the first field in the component will be used instead.
- Specified by:
- getTitleFieldin interface- DataBoundComponent
- Returns:
- fieldName the title field for this component.
 
- 
getDataSourceDescription copied from interface:DataBoundComponentThe DataSource that this component should bind to for default fields and for performingDataSource requests.- Specified by:
- getDataSourcein interface- DataBoundComponent
- Returns:
- DataSource
 
- 
setAutoFetchDataDescription copied from interface:DataBoundComponentIf true, when this component is first drawn, automatically callDataBoundComponent.fetchData()orDataBoundComponent.filterData()depending onDataBoundComponent.getAutoFetchAsFilter(). Criteria for this fetch may be picked up frominitialCriteriaand textMatchStyle may be specified viaDataBoundComponent.getAutoFetchTextMatchStyle().NOTE: If autoFetchData is set, calling ListGrid.fetchData() before draw will cause two requests to be issued, one from the manual call to fetchData() and one from the autoFetchData setting. The second request will use only initialCriteriaand not any other criteria or settings from the first request. Generally, turn off autoFetchData if you are going to manually call fetchData() at any time.- Specified by:
- setAutoFetchDatain interface- DataBoundComponent
- Parameters:
- autoFetchData- autoFetchData
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException
 
- 
getAutoFetchDataDescription copied from interface:DataBoundComponentIf true, when this component is first drawn, automatically callDataBoundComponent.fetchData()orDataBoundComponent.filterData()depending onDataBoundComponent.getAutoFetchAsFilter(). Criteria for this fetch may be picked up frominitialCriteriaand textMatchStyle may be specified viaDataBoundComponent.getAutoFetchTextMatchStyle().NOTE: If autoFetchData is set, calling ListGrid.fetchData() before draw will cause two requests to be issued, one from the manual call to fetchData() and one from the autoFetchData setting. The second request will use only initialCriteriaand not any other criteria or settings from the first request. Generally, turn off autoFetchData if you are going to manually call fetchData() at any time.- Specified by:
- getAutoFetchDatain interface- DataBoundComponent
- Returns:
- autoFetchData autoFetchData
 
- 
setAutoFetchTextMatchStylepublic ListGrid setAutoFetchTextMatchStyle(TextMatchStyle autoFetchTextMatchStyle) throws IllegalStateException Description copied from interface:DataBoundComponentIfautoFetchDataistrue, this attribute allows the developer to specify a textMatchStyle for the initialDataBoundComponent.fetchData()call.- Specified by:
- setAutoFetchTextMatchStylein interface- DataBoundComponent
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException
 
- 
getAutoFetchTextMatchStyleDescription copied from interface:DataBoundComponentIfautoFetchDataistrue, this attribute allows the developer to specify a textMatchStyle for the initialDataBoundComponent.fetchData()call.- Specified by:
- getAutoFetchTextMatchStylein interface- DataBoundComponent
- Returns:
- autoFetchTextMatchStyle autoFetchTextMatchStyle
 
- 
setAutoFetchAsFilterDescription copied from interface:DataBoundComponentIfDataBoundComponent.setAutoFetchData(Boolean)is true, this attribute determines whether the initial fetch operation should be performed viaDataBoundComponent.fetchData()orDataBoundComponent.filterData()- Specified by:
- setAutoFetchAsFilterin interface- DataBoundComponent
- Parameters:
- autoFetchAsFilter- autoFetchAsFilter
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException
 
- 
getAutoFetchAsFilterDescription copied from interface:DataBoundComponentIfDataBoundComponent.setAutoFetchData(Boolean)is true, this attribute determines whether the initial fetch operation should be performed viaDataBoundComponent.fetchData()orDataBoundComponent.filterData()- Specified by:
- getAutoFetchAsFilterin interface- DataBoundComponent
- Returns:
- auto fetch as filter
 
- 
setInitialCriteriaDescription copied from interface:DataBoundComponentCriteria to use whenDataBoundComponent.setAutoFetchData(Boolean)is used.- Specified by:
- setInitialCriteriain interface- DataBoundComponent
- Parameters:
- initialCriteria- the initial criteria
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getInitialCriteriaDescription copied from interface:DataBoundComponentCriteria to use whenDataBoundComponent.setAutoFetchData(Boolean)is used.- Specified by:
- getInitialCriteriain interface- DataBoundComponent
- Returns:
- the criteria
 
- 
setImplicitCriteriaDescription copied from interface:DataBoundComponentCriteria that are never shown to or edited by the user and are cumulative with any criteria provided viaDataBoundComponent.initialCriteria,DataBoundComponent.setCriteria()etc.- Specified by:
- setImplicitCriteriain interface- DataBoundComponent
- Parameters:
- implicitCriteria- New implicitCriteria value. Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
setImplicitCriteria
- 
setImplicitCriteria
- 
getImplicitCriteriaDescription copied from interface:DataBoundComponentCriteria that are never shown to or edited by the user and are cumulative with any criteria provided viaDataBoundComponent.initialCriteria,DataBoundComponent.setCriteria()etc.- Specified by:
- getImplicitCriteriain interface- DataBoundComponent
- Returns:
- Current implicitCriteria value. Default value is null
 
- 
fetchDatapublic void fetchData()Description copied from interface:DataBoundComponentRetrieves data from the DataSource that matches the specified criteria.When fetchData()is first called, if data has not already been provided viasetData(), this method will create aResultSet, which will be configured based on component settings such asfetchOperationanddataPageSize, as well as the general purposedataProperties. The created ResultSet will automatically send a DSRequest to retrieve data from the dataSource, and from then on will automatically manage paging through large datasets, as well as performing filtering and sorting operations inside the browser when possible - see the ResultSet docs for details.NOTE: do not use both autoFetchDataand a call tofetchData()- this may result in two DSRequests to fetch data. Use eitherautoFetchDataandsetAutoFetchCriteria()or a manual call to fetchData() passing criteria.Whether a ResultSet was automatically created or provided via setData(), subsequent calls to fetchData() will simply callresultSet.setCriteria().Changes to criteria may or may not result in a DSRequest to the server due to client-side filtering. You can call willFetchData(criteria)to determine if new criteria will result in a server fetch.If you need to force data to be re-fetched, you can call invalidateCache()and new data will automatically be fetched from the server using the current criteria and sort direction. NOTE: when usinginvalidateCache()there is no need to also callfetchData()and in fact this could produce unexpected results.This method takes an optional callback parameter (set to a DSCallback) to fire when the fetch completes. Note that this callback will not fire if no server fetch is performed. In this case the data is updated synchronously, so as soon as this method completes you can interact with the new data. If necessary, you can useresultSet.willFetchData()to determine whether or not a server fetch will occur whenfetchData()is called with new criteria.In addition to the callback parameter for this method, developers can use resultSet.addDataArrivedHandlerto be notified every time data is loaded.- Specified by:
- fetchDatain interface- DataBoundComponent
 
- 
fetchDataDescription copied from interface:DataBoundComponentRetrieves data from the DataSource that matches the specified criteria.When fetchData()is first called, if data has not already been provided viasetData(), this method will create aResultSet, which will be configured based on component settings such asfetchOperationanddataPageSize, as well as the general purposedataProperties. The created ResultSet will automatically send a DSRequest to retrieve data from the dataSource, and from then on will automatically manage paging through large datasets, as well as performing filtering and sorting operations inside the browser when possible - see the ResultSet docs for details.NOTE: do not use both autoFetchDataand a call tofetchData()- this may result in two DSRequests to fetch data. Use eitherautoFetchDataandsetAutoFetchCriteria()or a manual call to fetchData() passing criteria.Whether a ResultSet was automatically created or provided via setData(), subsequent calls to fetchData() will simply callresultSet.setCriteria().Changes to criteria may or may not result in a DSRequest to the server due to client-side filtering. You can call willFetchData(criteria)to determine if new criteria will result in a server fetch.If you need to force data to be re-fetched, you can call invalidateCache()and new data will automatically be fetched from the server using the current criteria and sort direction. NOTE: when usinginvalidateCache()there is no need to also callfetchData()and in fact this could produce unexpected results.This method takes an optional callback parameter (set to a DSCallback) to fire when the fetch completes. Note that this callback will not fire if no server fetch is performed. In this case the data is updated synchronously, so as soon as this method completes you can interact with the new data. If necessary, you can useresultSet.willFetchData()to determine whether or not a server fetch will occur whenfetchData()is called with new criteria.In addition to the callback parameter for this method, developers can use resultSet.addDataArrivedHandlerto be notified every time data is loaded.- Specified by:
- fetchDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
 
- 
fetchDataDescription copied from interface:DataBoundComponentRetrieves data from the DataSource that matches the specified criteria.When fetchData()is first called, if data has not already been provided viasetData(), this method will create aResultSet, which will be configured based on component settings such asfetchOperationanddataPageSize, as well as the general purposedataProperties. The created ResultSet will automatically send a DSRequest to retrieve data from the dataSource, and from then on will automatically manage paging through large datasets, as well as performing filtering and sorting operations inside the browser when possible - see the ResultSet docs for details.NOTE: do not use both autoFetchDataand a call tofetchData()- this may result in two DSRequests to fetch data. Use eitherautoFetchDataandsetAutoFetchCriteria()or a manual call to fetchData() passing criteria.Whether a ResultSet was automatically created or provided via setData(), subsequent calls to fetchData() will simply callresultSet.setCriteria().Changes to criteria may or may not result in a DSRequest to the server due to client-side filtering. You can call willFetchData(criteria)to determine if new criteria will result in a server fetch.If you need to force data to be re-fetched, you can call invalidateCache()and new data will automatically be fetched from the server using the current criteria and sort direction. NOTE: when usinginvalidateCache()there is no need to also callfetchData()and in fact this could produce unexpected results.This method takes an optional callback parameter (set to a DSCallback) to fire when the fetch completes. Note that this callback will not fire if no server fetch is performed. In this case the data is updated synchronously, so as soon as this method completes you can interact with the new data. If necessary, you can useresultSet.willFetchData()to determine whether or not a server fetch will occur whenfetchData()is called with new criteria.In addition to the callback parameter for this method, developers can use resultSet.addDataArrivedHandlerto be notified every time data is loaded.- Specified by:
- fetchDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
- callback- callback to invoke when a fetch is complete. Fires only if server contact was required
 
- 
fetchDataDescription copied from interface:DataBoundComponentRetrieves data from the DataSource that matches the specified criteria.When fetchData()is first called, if data has not already been provided viasetData(), this method will create aResultSet, which will be configured based on component settings such asfetchOperationanddataPageSize, as well as the general purposedataProperties. The created ResultSet will automatically send a DSRequest to retrieve data from the dataSource, and from then on will automatically manage paging through large datasets, as well as performing filtering and sorting operations inside the browser when possible - see the ResultSet docs for details.NOTE: do not use both autoFetchDataand a call tofetchData()- this may result in two DSRequests to fetch data. Use eitherautoFetchDataandsetAutoFetchCriteria()or a manual call to fetchData() passing criteria.Whether a ResultSet was automatically created or provided via setData(), subsequent calls to fetchData() will simply callresultSet.setCriteria().Changes to criteria may or may not result in a DSRequest to the server due to client-side filtering. You can call willFetchData(criteria)to determine if new criteria will result in a server fetch.If you need to force data to be re-fetched, you can call invalidateCache()and new data will automatically be fetched from the server using the current criteria and sort direction. NOTE: when usinginvalidateCache()there is no need to also callfetchData()and in fact this could produce unexpected results.This method takes an optional callback parameter (set to a DSCallback) to fire when the fetch completes. Note that this callback will not fire if no server fetch is performed. In this case the data is updated synchronously, so as soon as this method completes you can interact with the new data. If necessary, you can useresultSet.willFetchData()to determine whether or not a server fetch will occur whenfetchData()is called with new criteria.In addition to the callback parameter for this method, developers can use resultSet.addDataArrivedHandlerto be notified every time data is loaded.- Specified by:
- fetchDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
- callback- callback to invoke when a fetch is complete. Fires only if server contact was required
- requestProperties- additional properties to set on the DSRequest that will be issued
 
- 
filterDatapublic void filterData()Description copied from interface:DataBoundComponentRetrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like fetchData()except thattextMatchStyleis automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
- filterDatain interface- DataBoundComponent
 
- 
filterDataDescription copied from interface:DataBoundComponentRetrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like fetchData()except thattextMatchStyleis automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
- filterDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
 
- 
filterDataDescription copied from interface:DataBoundComponentRetrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like fetchData()except thattextMatchStyleis automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
- filterDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
- callback- callback to invoke when a fetch is complete. Fires only if server contact was required; see- DataBoundComponent.fetchData()for details
 
- 
filterDataDescription copied from interface:DataBoundComponentRetrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like fetchData()except thattextMatchStyleis automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
- filterDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
- callback- callback to invoke when a fetch is complete. Fires only if server contact was required; see- DataBoundComponent.fetchData()for details
- requestProperties- for databound components only - optional additional properties to set on the DSRequest that will be issued
 
- 
invalidateCachepublic void invalidateCache()Description copied from interface:DataBoundComponentInvalidate the current data cache for this databound component via a call to the dataset'sinvalidateCache()method, for example,ResultSet.invalidateCache().NOTE: there is no need to call invalidateCache()when a save operation is performed on a DataSource. Automatic cache synchronization features will automatically update caches - seeResultSetfor details. If automatic cache synchronization isn't working, troubleshoot the problem using the steps suggested in the FAQ rather than just calling invalidateCache(). CallinginvalidateCache()unnecessarily causes extra server load and added code complexity.Calling invalidateCache()will automatically cause a new fetch to be performed with the current set of criteria if data had been previously fetched and the component is currently drawn with data visible - there is no need to manually call fetchData() after invalidateCache() and this could result in duplicate fetches.While data is being re-loaded after a call to invalidateCache(), the widget is in a state similar to initial data load - it doesn't know the total length of the dataset and any APIs that act on records or row indices will necessarily fail and should not be called. To detect that the widget is in this state, callResultSet.lengthIsKnown().invalidateCache()only has an effect if this component's dataset is a data manager class that manages a cache (eg ResultSet or ResultTree). If data was provided as a simple Array or List, invalidateCache() does nothing.- Specified by:
- invalidateCachein interface- DataBoundComponent
- See Also:
 
- 
getResultSetDescription copied from interface:DataBoundComponentReturn the underlying data of this DataBoundComponent as aResultSet.Note that this method should only be called after initial data has been fetched by this DataBoundComponent. - Specified by:
- getResultSetin interface- DataBoundComponent
- Returns:
- ResultSet, or null if the underlying data is not a ResultSet
- See Also:
 
- 
getRecordListDescription copied from interface:DataBoundComponentReturn the underlying data of this DataBoundComponent as aRecordList.Depending on the component configuration, the actual JavaScript instance of the returned RecordList may be one of several types: - If the component is not bound to a DataSource, the instance is generally an Array ofRecord.
- If the component is bound to a DataSource, the instance is a 
     ResultSet.
- If the component is a grouped ListGrid, the instance is a 
     Tree. To access the ungrouped record list regardless of grouping status, useisGrouped() ? getOriginalRecordList() : getRecordList() 
- If the component is a TreeGrid, the instance is a ResultTree.
 - Specified by:
- getRecordListin interface- DataBoundComponent
- Returns:
- the RecordList
 
- If the component is not bound to a 
- 
getDataAsJSList- Specified by:
- getDataAsJSListin interface- DataBoundComponent
 
- 
exportDatapublic void exportData()Description copied from interface:DataBoundComponent- Specified by:
- exportDatain interface- DataBoundComponent
 
- 
exportDataDescription copied from interface:DataBoundComponent- Specified by:
- exportDatain interface- DataBoundComponent
 
- 
exportDataDescription copied from interface:DataBoundComponentUses a "fetch" operation on the currentDataSourceto retrieve data that matches the current filter and sort criteria for this component, then exports the resulting data to a file or window in the requested format.A variety of DSRequest settings, such as exportAsandexportFilename, affect the exporting process: seeexportResultsfor further detail.Note that data exported via this method does not include any client-side formatting and relies on both the Smart GWT server and server-side DataSources. To export client-data with formatters applied, see exportClientData, which still requires the Smart GWT server but does not rely on server-side DataSources.For more information on exporting data, see DataSource.exportData.- Specified by:
- exportDatain interface- DataBoundComponent
- Parameters:
- requestProperties- additional properties to set on DSRequest that will be issued
- callback- Optional callback. Note that this parameter only applies if you specify- exportToClient: false in the request properties, because file downloads don't provide ordinary framework callbacks
- See Also:
 
- 
addFetchDataHandlerAdd a fetchData handler.Notification function fired on fetchData() or filterData() - Specified by:
- addFetchDataHandlerin interface- HasFetchDataHandlers
- Parameters:
- handler- the filterData handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addDropCompleteHandlerAdd acom.smartgwt.client.widgets.DropCompleteHandler. See that class's documentation for a definition of "drop complete", and how it differs from "drag complete" (com.smartgwt.client.widgets.DragCompleteHandler).- Specified by:
- addDropCompleteHandlerin interface- HasDropCompleteHandlers
- Parameters:
- handler- the DropCompleteHandler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addDragCompleteHandlerAdd acom.smartgwt.client.widgets.DragCompleteHandler. See that class's documentation for a definition of "drag complete", and how it differs from "drop complete" (com.smartgwt.client.widgets.DropCompleteHandler).- Specified by:
- addDragCompleteHandlerin interface- HasDragCompleteHandlers
- Parameters:
- handler- the DropCompleteHandler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
getFieldAlignmentsDescription copied from interface:DataBoundComponentReturna an array of field alignments for this grid- Specified by:
- getFieldAlignmentsin interface- DataBoundComponent
- Returns:
- array of Alignments
 
- 
getDeepCloneOnEditDescription copied from interface:DataBoundComponentBefore we start editing values in this DataBoundComponent, should we perform a deep clone of the underlying values. SeeDataSource.getDeepCloneOnEdit()for details of what this means.If this value is not explicitly set, it defaults to the DataSource deepCloneOnEditvalue. This value can also be overridden per-field withDataSourceField.setDeepCloneOnEdit(java.lang.Boolean).Like the other deepCloneOnEditsettings, this flag only has an effect if you are editing a values object that contains nested objects or arrays, usingCanvas.setDataPath(java.lang.String)- Specified by:
- getDeepCloneOnEditin interface- DataBoundComponent
 
- 
setDeepCloneOnEditDescription copied from interface:DataBoundComponentBefore we start editing values in this DataBoundComponent, should we perform a deep clone of the underlying values. SeeDataSource.getDeepCloneOnEdit()for details of what this means.If this value is not explicitly set, it defaults to the DataSource deepCloneOnEditvalue. This value can also be overridden per-field withDataSourceField.setDeepCloneOnEdit(java.lang.Boolean).Like the other deepCloneOnEditsettings, this flag only has an effect if you are editing a values object that contains nested objects or arrays, usingCanvas.setDataPath(java.lang.String)- Specified by:
- setDeepCloneOnEditin interface- DataBoundComponent
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
setFieldsDescription copied from interface:DataBoundComponentField setter variant (alternative tosetFields(FormItem...),setFields(ListGridField...), etc.) that will accept an array of JavaScriptObject, rather than an array of SmartGWT Java wrappers of the field class type (e.g.FormItem,ListGridField, etc.) This is an advanced method and only for cases where you have the JavaScriptObject for each field but want to avoid having to create each associated SmartGWT Java wrapper.Note: use toArray()to create a Java array of JavaScriptObject if you only have the array itself as a single JavaScriptObject.- Specified by:
- setFieldsin interface- DataBoundComponent
- Parameters:
- fields- the component fields
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getFieldsAsJavaScriptObjectsDescription copied from interface:DataBoundComponentReturn the fields as JavaScriptObjects rather than as SmartGWT Java wrappers of the field class type (e.g.FormItem,ListGridField, etc.) This avoids building the SmartGWT Java wrappers for the fields in situations where they aren't needed - and for FormItems in particular - where there may not be enough information to determine the correct subclass, such as before the SmartClient instance underlying theDynamicFormhas been created.- Specified by:
- getFieldsAsJavaScriptObjectsin interface- DataBoundComponent
- Returns:
- the component fields
 
- 
getFieldCountpublic int getFieldCount()Description copied from interface:DataBoundComponentReturn the number of fields.- Specified by:
- getFieldCountin interface- DataBoundComponent
- Returns:
- the number of fields
 
- 
transferRecordspublic void transferRecords(Record[] records, Record targetRecord, Integer index, Canvas sourceWidget, TransferRecordsCallback callback) Description copied from interface:DataBoundComponentTransfer a list ofRecords from another component (does not have to be a databound component) into this component. This method is only applicable to list-type components, such asListGridorcom.smartgwt.client.widgets.tile.TileGridTileGrid. Notably, it does not apply toTreeGrid; the equivalent for treeGrids istransferNodes.This method implements the automatic drag-copy and drag-move behaviors of components like ListGrid, and calling it is equivalent to completing a drag and drop of thedropRecords(the default record drop behavior is simply to calltransferRecords(), passing in the dropped nodes)Note that this method is asynchronous - it may need to perform server turnarounds to prevent duplicates in the target component's data. If you wish to be notified when the transfer process has completed, you can either pass a non-null callback to this method or add a DropCompleteHandlerto this component.See also transferSelectedData()- Specified by:
- transferRecordsin interface- DataBoundComponent
- Parameters:
- records- Recordss to transfer to this component
- targetRecord- The target record (eg, of a drop interaction), for context
- index- Insert point relative to the target record for the transferred records
- sourceWidget- The databound or non-databound component from which the records are to be transferred.
- callback- optional TransferRecordsCallback to be fired when the transfer process has completed (pass null if your code does not need to be called back). The callback will be passed the list of records actually transferred to this component
 
- 
setDragDataCustomizerDuring a drag-and-drop interaction, this method returns the set of records being dragged out of the component. In the default implementation, this is the list of currently selected records.This method is consulted by willAcceptDrop().- Parameters:
- DragDataCustomizer- customizer
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
setLogicalStructureSetter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.
- 
getLogicalStructureGetter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.- Specified by:
- getLogicalStructurein interface- LogicalStructure
- Overrides:
- getLogicalStructurein class- VLayout
 
 
- 
setCanExpandRecords(Boolean)withsetExpansionMode(com.smartgwt.client.types.ExpansionMode), or overridegetExpansionComponent(ListGridRecord)