Click or drag to resize
EditorModelT Method
Set a model to use. In keeping with the MVC style of coding, you can define the fields and their types that you wish to get from the database in a simple class. Editor will automatically add fields from the model. Note that fields that are defined in the model can also be defined as
Field
instances should you wish to add additional options to a specific field such as formatters or validation.

Namespace:  DataTables
Assembly:  DataTables (in DataTables.dll) Version: 1.6.5.0 (1.6.5.0)
Syntax
C#
public Editor Model<T>()

Type Parameters

T
Model to use

Return Value

Type: Editor
Self for chaining
See Also