The following tables list the members exposed by GridModel.
Name | Description | |
---|---|---|
GridModel Constructor | constructor - initializes all values to their defaults, if the default value differs from the default for the type |
Name | Description | |
---|---|---|
AVG_ROW_HEIGHT | average row height in pixels (default), used primarily when virtualization is enabled | |
DEFAULT_RESPONSE_KEY | default property name holding the data records in the response JSON | |
VIRTUALIZATION_THRESHOLD | after this value is exceeded, that is, after this number of rows have to be loaded at the same time, virtualization is automatically enabled |
Name | Description | |
---|---|---|
AccessibilityRendering | renders ARIA attributes and other accessibility attributes IGridModel.AccessibilityRendering | |
AdjustVirtualHeights | IGridModel.AdjustVirtualHeights | |
AggregateTransactions | IGridModel.AggregateTransactions | |
AlternateRowStyles | IGridModel.AlternateRowStyles | |
AnimationDuration | expand / collapse animation duration | |
AutoAdjustHeight | if false, Height will be directly set on the grid scrolling container, instead of the topmost DIV container IGridModel.AvgRowHeight | |
AutoCommit | IGridModel.AutoCommit | |
AutofitLastColumn | IGridModel.AutofitLastColumn | |
AutoFormat | IGridModel.AutoFormat | |
AutoGenerateColumns | Sets the value of autoGenerateColumns if false a columns collection should be specified if no columns collection is specified and the property is false, will try to auto-generate anyway IGridModel.AutoGenerateColumns | |
AutoGenerateLayouts | auto generates layouts from the Model's dataSource that's passed | |
AvgColumnWidth | IGridModel.AvgColumnWidth | |
AvgRowHeight | Sets the average row height for rows (through CSS) IGridModel.AvgRowHeight | |
Caption | text description above the grid header (spans all columns ) IGridModel.Caption | |
ClientDataSourceType | type of the ClientDataSource. See the ClientDataSourceType enum IGridModel.ClientDataSourceType | |
ClientEvents | Set implementations of client events raised by a widget. Event handler assumes 2 parameters: 1st parameter has name "evt" and 2nd parameter has name "ui". To get information about member variables available for "ui" parameter, please consult documentation of a widget and its events. Examples: 1. Full implementation: new Dictionary<string, string> { { "dropDownOpening", "function(evt,ui){alert('drop:'+ui.owner);}" } } 2. Content of inline function: new Dictionary<string, string> { { "dropDownOpening", "alert('drop:'+ui.owner);" } } 3. Name of global function: new Dictionary<string, string> { { "dropDownOpening", "nameOfGlobalFunction" } } Note: Instead of explicit key-strings, which represent name of event exposed by a widget, the event-constants defined by a particular control can be used. Example: new Dictionary<string, string> { { ComboClientEvents.DropDownOpening, "nameOfGlobalFunction" } } (Inherited from Infragistics.Web.Mvc.ModelWidgetBase) | |
CollapseTooltip | collapse tooltip | |
ColumnLayouts | ||
Columns | the grid columns | |
ColumnVirtualization | horizontal virtualization IGridModel.ColumnVirtualization | |
DataMember | defines the table name in the dataset that contains data for the current layout | |
DataSource | data source - actual data (should implement IQueryable) IGridModel.DataSource | |
DataSourceType | IGridModel.DataSourceType | |
DataSourceUrl | URL that will be used to fetch data if DataSource is not defined, or for subsequent calls to paging, sorting, filtering, etc. IGridModel.DataSourceUrl | |
DataView | the DataView property contains the filtered and transformed data records after data binding and all feature transformations have been applied /// IGridModel.DataView | |
DefaultColumnWidth | Sets the defaultColumnWidth of the grid columns - px or just a number IGridModel.DefaultColumnWidth | |
EnableHoverStyles | IGridModel.EnableHoverStyles | |
EnableResizeContainerCheck | enables/disables check for resizing grid container | |
EnableUTCDates | IGridModel.EnableUTCDates | |
ExpandCollapseAnimations | expand/collapse animations | |
ExpandColWidth | expand column width | |
ExpandTooltip | expand tooltip | |
FeatureChooserIconDisplay | Configures 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 | |
Features | a list of grid features | |
FixedFooters | fixed footer support IGridModel.FixedFooters | |
FixedHeaders | if fixed headers is enabled, all headers and features that have their logic rendered in the header, will be rendered in a separate table above the data records table IGridModel.FixedHeaders | |
ForeignKey | defines the property in the child layout which holds the non-unique id that links the child layout to the parent. in cases of one to many relationships a foreign key will most probably *not* match the primary key of the child layout, so it will need to be defined. in one to one relationships the ForeignKey may be the same as the PrimaryKey | |
GenerateCompactJSONResponse | IGridModel.GenerateCompactJSONResponse | |
Height | Gets/sets the Height of the grid IGridModel.Height | |
HtmlAttributes | Sets custom attributes of the div on which the Grid widget will be created. | |
HtmlHelper | ||
ID | Sets the ID of the grid element that will contain all data rows when rendered IGridModel.ID | |
InitialExpandDepth | initial expansion of rows | |
IsDataSetTableSource | Sets the original source type True, when the grid is bound to datatable/dataset False, when the grid is bound to any other source IGridModel.AutoGenerateColumns | |
JsonpRequest | When dataSource is string defines whether to set data source of type JSONP | |
Language | Gets/sets Language the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel) | |
LoadOnDemand | load on demand support | |
Locale | a list of configurable and localized labels. | |
LocalSchemaTransform | this will be always seto to False in the MVC Wrapper. This means that the $.ig.DataSource Client control will not apply any schema locally ! IGridModel.LocalSchemaTransform | |
MergeUnboundColumns | If 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 | |
OData | IGridModel.OData | |
PrimaryKey | optional primary key . Mandatory if Editing is enabled IGridModel.PrimaryKey | |
Regional | Gets/sets the Regional of the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel) | |
RenderCheckboxes | IGridModel.RenderCheckboxes | |
RequestType | Specifies the HTTP verb to be used to issue the requests to a remote data source. | |
ResponseContentType | Content type of the response. See http://api.jquery.com/jQuery.ajax/ => contentType | |
ResponseDataKey | property in the response which holds the records array IGridModel.ResponseDataKey | |
Rest | IGridModel.Rest | |
RestSettings | IGridModel.RestSettings | |
RowVirtualization | vertical virtualization IGridModel.RowVirtualization | |
ScrollSettings | Settings related to content scrolling IGridModel.ScrollSettings | |
ShowHeader | show/hide grid header IGridModel.ShowHeader | |
TabIndex | tab index of the grid main container element IGridModel.TabIndex | |
TemplatingEngine | the templating engine that will be used to render the grid and some specific parts of its ui | |
UpdateUrl | IGridModel.UpdateUrl | |
Virtualization | Enables/disables virtualization. Virtualization can greatly enhance rendering performance. If enabled, the number of actual rendered rows (DOM elements) will be constant and related to the visible viewport of the grid. As the end user scrolls, those DOM elements will be dynamically reused to render the new data. IGridModel.Virtualization | |
VirtualizationMode | VirtualizationMode can be set to 'fixed' or 'continuous' IGridModel.Virtualization | |
Width | Gets/sets the Width of the grid IGridModel.Width |
Name | Description | |
---|---|---|
Store | Return the store with all of the options (Inherited from Infragistics.Web.Mvc.ModelBase) |
Name | Description | |
---|---|---|
AddClientEvent | Adds javascript function to process client event of widget. (Inherited from Infragistics.Web.Mvc.ModelWidgetBase) | |
DataBind | Overloaded. performs data binding and calls TransformDataSource on all features after that, sets the resulting IQueryable to the DataView property | |
GetData | Overloaded. first performs data binding and generates the JsonResult object | |
GetDataColumns | Get grid data columns - it is useful when multicolumnheaders are enabled | |
GetUnboundColumns | Get list of unbound columns | |
HasUnboundColumns | Returns whether the grid has unbound columns | |
JsonStringToDateTime | Gets the JSON string and returns it as a valid System.DateTime. | |
LoadTransactions<T> | loads a list of transactions from the POST data, in case saveChanges() is invoked in the client side and UpdateUrl is set to a valid controller action (GridUpdating) | |
SetUnboundValues | Overloaded. This method set unbound values for the specified column key. It should be called after unbound columns with the specified key is set. It should be set mapping between key of the dictionary and primary key | |
ToJson | Serializes the object to JSON. (Inherited from Infragistics.Web.Mvc.ModelBase) |
Name | Description | |
---|---|---|
Camelize | Converts the provided string to camel case. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
EnsureClientEvents | Adds client events to Serializes the internal model store into json. (Inherited from Infragistics.Web.Mvc.ModelWidgetBase) | |
GetBool | Gets the value of a bool property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetChar | Sets the value of a char property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetDateTime | Gets the value of a DateTime property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetDouble | Gets the value of a double property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetIEnumerable<T> | Gets the value of an IEnumerable property of the model. If the value is null a new IEnumerable of type T will be created. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetInt | Gets the value of an int property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetJSLiteral | Sets the value of a literal property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetLong | Gets the value of a long property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetModel<T> | Gets the value of an IModel property of the model. If the value is null a new model of type T will be created. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetString | Gets the value of a string property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetStringEnum<T> | Gets the value of a string property whose values are the lowercase values of an Enum. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetValue<T> | Gets a property value of arbitrary type. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
GetValueFast | get value using cached compiled linq expressions | |
GetValueModel<T> | Gets the value of an IModel property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromBool | Serializes a bool object into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromDateTime | Serializes a DateTime object into json Date object. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromDouble | Serializes a double object into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromFloat | Serializes a float object into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromIDictionary | Serializes an IDictionary of objects into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromIEnumerable | Serializes an IEnumerable object into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromInt | Serializes an int object into json. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromModelStore | Overridden. ModelBase.JsonFromModelStore | |
JsonFromObject | Serializes an arbitrary object in json using the typed serialization methods. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
JsonFromString | Serializes a string object into json string, escaping all single quotes. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
ProcessDataToJsonResult | Processes the data to JSON result. | |
SetBool | Sets a value to a bool property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetBrush | (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetCamelizedStringEnum<T> | Sets the value of a string property whose values are the lowercase values of an Enum. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetChar | Gets the value of a char property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetDateTime | Sets a value to a DateTime property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetDouble | Sets a value to a double property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetIEnumerable<T> | Sets a value to an IEnumerable property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetInt | Sets a value to an int property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetJSLiteral | Gets the value of a literal property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetLong | Sets a value to a long property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetModel<T> | Sets a value to an IModel property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetString | Sets a value to a string property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetStringEnum<T> | Sets the value of a string property whose values are the lowercase values of an Enum. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
SetValue<T> | Sets a property value of arbitrary type. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
TransformData | Transforms the data. (Inherited from Infragistics.Web.Mvc.ModelBase) | |
ValidValueType<T> | Checks type for value of existing property. Returns false as well if non existing property. (Inherited from Infragistics.Web.Mvc.ModelBase) |
View on GitHub