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

Kendo UI update TagHelper DatasourceTransportUpdateSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("update", ParentTag = "transport", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class DatasourceTransportUpdateSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseDatasourceTransportUpdateSettingsTagHelper

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">
    <transport>
        <update cache="false" />
    </transport>
</kendo-datasource>

Constructors

Initializes a new instance of the DatasourceTransportUpdateSettingsTagHelper class.

C#
public DatasourceTransportUpdateSettingsTagHelper()

Properties

If set to false, the request result will not be cached by the browser. Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. By default, "jsonp" requests are not cached.Refer to the jQuery.ajax documentation for further information.

C#
public bool? Cache { get; set; }

The content-type HTTP header sent to the server. Default is "application/x-www-form-urlencoded". Use "application/json" if the content is JSON. Refer to the jQuery.ajax documentation for further information.

C#
public string ContentType { get; set; }

Sets JavaScript function which to return additional parameters which to be sent to the remote service.

C#
public string Data { get; set; }

The type of result expected from the server. Commonly used values are "json" and "jsonp".Refer to the jQuery.ajax documentation for further information.

C#
public string Datatype { get; set; }

Specifies the HTTP headers of the request.

C#
public IDictionary<string, string> Headers { get; set; }

The type of request to make ("POST", "GET", "PUT" or "DELETE"). The default request is "GET".Refer to the jQuery.ajax documentation for further information.

C#
public string Type { get; set; }

The URL to which the request is sent.If set to function, the data source will invoke it and use the result as the URL.

C#
public string Url { 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)