New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI schema TagHelper DataSourceSchemaSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: FileManagerDataSourceSchemaSettingsTagHelperHierarchicalDataSourceSchemaSettingsTagHelperOrgChartDataSourceSchemaSettingsTagHelperPivotDataSourceSchemaSettingsTagHelperSchedulerDataSourceSchemaSettingsTagHelperTreeListDataSourceSchemaSettingsTagHelper...

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-datasource name="datasource1">
    <schema aggregates="aggregatesField" />
</kendo-datasource>

Child Tagsmodel

Constructors

Initializes a new instance of the DataSourceSchemaSettingsTagHelper class.

C#
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:

C#
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:

C#
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.

C#
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.

C#
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.

C#
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.

C#
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:

C#
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:

C#
public string GroupsHandler { get; set; }

Executed before the server response is used. Use it to preprocess or parse the server response.

C#
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.

C#
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.

C#
public string TotalHandler { get; set; }

The type of the response.The supported values are: "xml" or "json". By default, the schema interprets the server response as JSON.

C#
public string Type { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)