Kendo UI schema TagHelper DataSourceSchemaSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("schema", ParentTag = "kendo-datasource", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("schema", ParentTag = "datasource", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("schema", ParentTag = "gantt-datasource", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("schema", ParentTag = "kendo-ganttdatasource", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("schema", ParentTag = "dependency-datasource", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("schema", ParentTag = "kendo-ganttdependencydatasource", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("schema", ParentTag = "connections-datasource", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("model", new string[] { })]
[SuppressTagRendering]
public class DataSourceSchemaSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseDataSourceSchemaSettingsTagHelper
Derived Classes:
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-datasource name="datasource1">
<schema aggregates="aggregatesField" />
</kendo-datasource>
Child Tags
Constructors
Initializes a new instance of the DataSourceSchemaSettingsTagHelper class.
public DataSourceSchemaSettingsTagHelper()
Properties
The field from the response which contains the aggregate results. Can be set to a function which is called to return the aggregate results from the response.The result of the function should be a JavaScript object which contains the aggregate results for every field in the following format:For example, if the data source is configured like this:The aggregate results should have the following format:
public string Aggregates { get; set; }
The field from the response which contains the aggregate results. Can be set to a function which is called to return the aggregate results from the response.The result of the function should be a JavaScript object which contains the aggregate results for every field in the following format:For example, if the data source is configured like this:The aggregate results should have the following format:
public string AggregatesHandler { get; set; }
The field from the server response which contains the data items. Can be set to a function which is called to return the data items for the response.
public string Data { get; set; }
The field from the server response which contains the data items. Can be set to a function which is called to return the data items for the response.
public string Datahandler { get; set; }
The field from the server response which contains server-side errors. Can be set to a function which is called to return the errors for response. If there are any errors, the error event will be fired.
public string Errors { get; set; }
The field from the server response which contains server-side errors. Can be set to a function which is called to return the errors for response. If there are any errors, the error event will be fired.
public string ErrorsHandler { get; set; }
The field from the server response which contains the groups. Can be set to a function which is called to return the groups from the response.The result should have the following format:
public string Groups { get; set; }
The field from the server response which contains the groups. Can be set to a function which is called to return the groups from the response.The result should have the following format:
public string GroupsHandler { get; set; }
Executed before the server response is used. Use it to preprocess or parse the server response.
public string Parse { get; set; }
The field from the server response which contains the total number of data items. Can be set to a function which is called to return the total number of data items for the response.
public string Total { get; set; }
The field from the server response which contains the total number of data items. Can be set to a function which is called to return the total number of data items for the response.
public string TotalHandler { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides: