Version 22.2

TreeGridModel Class Methods

For a list of all members of this type, see TreeGridModel members.

Public Methods
 NameDescription
Public MethodAddClientEventAdds javascript function to process client event of widget. (Inherited from Infragistics.Web.Mvc.ModelWidgetBase)
Public MethodDataBindOverloaded. performs data binding and calls TransformDataSource on all features after that, sets the resulting IQueryable to the DataView property (Inherited from Infragistics.Web.Mvc.GridModel)
Public MethodGetChildDataGets the child data for the specified path. Used when remoteLoadOnDemand is true. (Example: If the treegrid has column ID set as primary key(and its type is integer) then if path is 1/10 - then it founds record with pk value 1 from root layout - takes its children and finds amongst them record with primary key value 10 - returns its children)  
Public MethodGetDataOverloaded. First performs data binding and after that gets the part of processed data that is specified by path  
Public MethodGetDataColumnsGet grid data columns - it is useful when multicolumnheaders are enabled (Inherited from Infragistics.Web.Mvc.GridModel)
Public MethodGetExpansionStatesFromQueryStringGet list of expansion states from query string. The URL format of expanded records is expansionUrlKey[primaryKeyValue]=true/false OR expansionUrlKey(primaryKeyValue)=true/false  
Public MethodGetUnboundColumnsGet list of unbound columns (Inherited from Infragistics.Web.Mvc.GridModel)
Public MethodHasUnboundColumnsReturns whether the grid has unbound columns (Inherited from Infragistics.Web.Mvc.GridModel)
Public MethodLoadTransactions<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) (Inherited from Infragistics.Web.Mvc.GridModel)
Public MethodProcessDataSourceProcesses the data source recursively as generating flatData and flatVisibleData, also setting metadata as dataLevel, expansion state, etc  
Public MethodProcessDataSourceRecursivelyProcesses the data source recursively for data layout. Generates flatData and flatVisibleData, also setting metadata as dataLevel, expansion state, etc  
Public MethodSetExpansionStateSet expansion state for the specified data record  
Public MethodSetUnboundValuesOverloaded. 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 (Inherited from Infragistics.Web.Mvc.GridModel)
Public MethodToJsonSerializes the object to JSON. (Inherited from Infragistics.Web.Mvc.ModelBase)
Public MethodTransformFlatToHierarchicalDataTransform flat to hierarchical data(it should be set PrimaryKey, ForeignKey). Grid model should have property property name defined in "ChildDataKey".  
Protected Methods
 NameDescription
Protected MethodCamelizeConverts the provided string to camel case. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodEnsureClientEventsAdds client events to Serializes the internal model store into json. (Inherited from Infragistics.Web.Mvc.ModelWidgetBase)
Protected MethodGetBoolGets the value of a bool property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodGetCharSets the value of a char property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodGetDateTimeGets the value of a DateTime property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodGetDoubleGets the value of a double property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodGetIEnumerable<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)
Protected MethodGetIntGets the value of an int property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodGetJSLiteralSets the value of a literal property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodGetLongGets the value of a long property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodGetModel<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)
Protected MethodGetStringGets the value of a string property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodGetStringEnum<T>Gets the value of a string property whose values are the lowercase values of an Enum. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodGetValue<T>Gets a property value of arbitrary type. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodGetValueFastget value using cached compiled linq expressions (Inherited from Infragistics.Web.Mvc.GridModel)
Protected MethodGetValueModel<T>Gets the value of an IModel property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodJsonFromBoolSerializes a bool object into json. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodJsonFromDateTimeSerializes a DateTime object into json Date object. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodJsonFromDoubleSerializes a double object into json. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodJsonFromFloatSerializes a float object into json. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodJsonFromIDictionarySerializes an IDictionary of objects into json. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodJsonFromIEnumerableSerializes an IEnumerable object into json. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodJsonFromIntSerializes an int object into json. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodJsonFromModelStoreModelBase.JsonFromModelStore (Inherited from Infragistics.Web.Mvc.GridModel)
Protected MethodJsonFromObjectSerializes an arbitrary object in json using the typed serialization methods. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodJsonFromStringSerializes a string object into json string, escaping all single quotes. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodProcessDataToJsonResultOverridden. Processes the data to JSON result - - as adding metadata for each record  
Protected MethodSetBoolSets a value to a bool property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetBrush (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetCamelizedStringEnum<T>Sets the value of a string property whose values are the lowercase values of an Enum. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetCharGets the value of a char property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetDateTimeSets a value to a DateTime property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetDoubleSets a value to a double property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetIEnumerable<T>Sets a value to an IEnumerable property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetIntSets a value to an int property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetJSLiteralGets the value of a literal property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetLongSets a value to a long property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetModel<T>Sets a value to an IModel property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetStringSets a value to a string property of the model. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetStringEnum<T>Sets the value of a string property whose values are the lowercase values of an Enum. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodSetValue<T>Sets a property value of arbitrary type. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodTransformDataTransforms the data. (Inherited from Infragistics.Web.Mvc.ModelBase)
Protected MethodValidValueType<T>Checks type for value of existing property. Returns false as well if non existing property. (Inherited from Infragistics.Web.Mvc.ModelBase)
See Also

View on GitHub