Kendo UI update TagHelper DatasourceTransportUpdateSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("update", ParentTag = "transport", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class DatasourceTransportUpdateSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseDatasourceTransportUpdateSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-datasource name="datasource1">
<transport>
<update cache="false" />
</transport>
</kendo-datasource>
Constructors
Initializes a new instance of the DatasourceTransportUpdateSettingsTagHelper class.
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.
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.
public string ContentType { get; set; }
Sets JavaScript function which to return additional parameters which to be sent to the remote service.
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.
public string Datatype { get; set; }
Specifies the HTTP headers of the request.
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.
public string Type { 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: