Version

IGridModel Interface Members

The following tables list the members exposed by IGridModel.

Public Properties
 NameDescription
 PropertyAccessibilityRenderingwhen accessibility rendering is enabled, all cells and rows have role and aria-describedby attributes rendered  
 PropertyAdjustVirtualHeightsIf this option is set to true, the height of the grid row will be calculated automatically based on the average row height and the visible virtual records. If no average row height is specified, one will be calculated automatically at runtime. False - no matter what avg row height is set, one will be automatically calculated at runtime  
 PropertyAggregateTransactionsspecifies whether transactions will be aggregated  
 PropertyAlternateRowStylesenables/disables rendering of alternating row styles (odd and even rows receive different styling). Note that if a custom jQuery template is set, this has no effect and CSS for the row should be adjusted manually in the template contents.  
 PropertyAnimationDurationexpand/collapse animation duration  
 PropertyAutoAdjustHeightif false, Height will be directly set on the grid scrolling container, instead of the topmost DIV container  
 PropertyAutoCommitauto generation of column layouts (hierarchical view)  
 PropertyAutofitLastColumnIf autofitLastColumn is true and all columns' widths are specified and their combined width is less than the grid width then the last column width will be automatically adjusted to fill the entire grid.  
 PropertyAutoFormatauto format options of cell values in grid for numeric and date columns  
 PropertyAutoGenerateColumnswhen true, column collection will be automatically generated based on the data source column names and data types  
 PropertyAutoGenerateLayoutsauto generation of column layouts (hierarchical view)  
 PropertyAvgColumnWidthused for virtualization, this is the average value in pixels for a column width  
 PropertyAvgRowHeightaverage height of the rows. This is particularly useful when virtualization is enabled, so that the grid can correctly size virtual areas  
 PropertyCaptioncaption text rendered above the headers (spans all columns)  
 PropertyClientDataSourceTypetype of the data source, when DataSourceUrl is specified  
 PropertyCollapseTooltipcollapse tooltip text  
 PropertyColumnLayoutsa list of child column layouts  
 PropertyColumnslist of grid column definitions  
 PropertyColumnVirtualizationhorizontal virtualization (horizontal scrolling), for columns only  
 PropertyDataMemberdefines the table name in the dataset that contains data for the current layout  
 PropertyDataSourcereference to the data source object holding data row objects (IQueryable, etc.)  
 PropertyDataSourceTypeexplicitly set data source type (such as "json"). Please refer to the documentation of $.ig.DataSource and its type property  
 PropertyDataSourceUrlUrl from which to fetch data, after the grid has been rendered for the first time (if DataSource is not set and the grid is rendered) it will use the DataSourceUrl to fetch rows (the backend doesn't need to match the MVC backend in that case)  
 PropertyDataViewreference to the DataView, returning an instance of a JsonResult  
 PropertyDefaultColumnWidthdefault column width for all columns. When set, all columns will have this width set at runtime  
 PropertyEnableHoverStylesenables/disables applying hover styles on mouseover  
 PropertyEnableResizeContainerCheckenables/disables check for resizing grid container  
 PropertyEnableUTCDatesEnables/Disables serializing client date as UTC ISO 8061 string instead of using the local time and zone values.  
 PropertyExpandCollapseAnimationsenable disable expand/collapse animations  
 PropertyExpandColWidthexpand column width  
 PropertyExpandTooltipexpand tooltip text  
 PropertyFeatureChooserIconDisplayConfigures how the feature chooser icon should display on header cells - e.g. to display as gear icon or to not show gear icon but on click/tap the header cell to show the feature chooser  
 PropertyFeaturesa list of GridFeature objects  
 PropertyFixedFooterssee FixedHeaders  
 PropertyFixedHeadersif FixedHeaders is enabled (default), the headers are rendered in a separate fixed area on top of the table holding data records  
 PropertyForeignKey  
 PropertyGenerateCompactJSONResponseThe difference between compact JSON response and non-compact is that for "compact" mode, JSON is rendered as an array of values, such as [val1, val2, val3] while in non-compact mode JSON is rendered as an object with name-value pairs, such as: {key1: val1, key2: val2, key3: val3 }  
 PropertyHeightheight of the control - can accept px, percentage, number (as string)  
 PropertyHtmlAttributesSets custom attributes of the div(HTML DOM element on which the grid is instantiated)  
 PropertyHtmlHelperreference to the View's HtmlHelper  
 PropertyIDID of the control - becomes ID of the container element when rendered on the page (in the HTML)  
 PropertyInitialExpandDepthif InitialExpandDepth is enabled, all rows on that many levels down will be automatically expanded. Not applicable when LoadOnDemand is enabled (e.g. expanding a row)  
 PropertyJsonpRequestWhen dataSource is string defines whether to set data source of type JSONP  
 PropertyLoadOnDemandif LoadOnDemand is enabled, databinding will always be done on one level, subsequent levels will be bound based on a specific end user request (e.g. expanding a row)  
 PropertyLocalSchemaTransformwhen local schema transforming is turned off (default for the MVC grid), there is no additional transformation of data and data types on the client, that is, data is assumed to come in the correct format and # of columns from the server  
 PropertyMergeUnboundColumnsIf true then the unbound columns are merged to the datasource at runtime - indeed DataSource is expanded with the new data and this could cause performance issues when dataSource is huge if false then the unbound data is sent to the client  
 PropertyODataIf true, encodes all requests using OData conventions and the $expand syntax.  
 PropertyPrimaryKeyoptional primary key - required if features such as grid editing are enabled  
 PropertyRenderCheckboxesability to render checkboxes for column with boolean data type  
 PropertyRequestTypeSpecifies the HTTP verb to be used to issue the requests to a remote data source.  
 PropertyResponseContentTypeContent type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType  
 PropertyResponseDataKeythe property in the response JSON holding the list of data rows  
 PropertyRestIf true, load on demand will be achieved using REST compliant resource access with appropriate url-s for the ajax GET calls.  
 PropertyRestSettingsSettings related to REST compliant update routine. This setting is optional and is going to be used only if Updating is enabled.  
 PropertyRowVirtualizationvertical virtualization (vertical scrolling ) , for rows only  
 PropertyScrollSettingsSettings related to content scrolling  
 PropertyShowHeadertoggles visibility of the column headers  
 PropertyTabIndextab index attribute that is set on the grid container html element  
 PropertyTemplatingEnginethe templating engine that will be used to render the grid and some specific parts of its ui  
 PropertyUpdateUrlUpdateUrl is optional and can be set when Updating is enabled. The UpdateUrl should point to an MVC controller action which will handle persisting changes in the data base through LInQ  
 PropertyVirtualizationvirtualization allows a fixed portion of the DOM to be rendered and reused for performance purposes  
 PropertyVirtualizationModevirtualization mode allows to switch between 'fixed' and 'continuous' virtualization modes  
 PropertyWidthwidth of the control - can accept px, percentage, number (as string)  
Public Methods
 NameDescription
 MethodDataBindrebinds the grid  
 MethodGetDatacauses rebinding, and returns the DataView  
 MethodGetDataColumnsGet data columns - when there are MultiColumnHeaders return only data columns  
 MethodLoadTransactions<T>load transaction log so that changes can be persisted to the database using Linq context (from application code).  
 MethodSetUnboundValuesOverloaded.   
 MethodToJsonreturns a JSON string representation of the widget options  
See Also

View on GitHub