\Kendo\Data\DataSourceTransportDestroy

A PHP class representing the destroy setting of DataSourceTransport.

Methods

cache

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.

Returns

\Kendo\Data\DataSourceTransportDestroy

Parameters

$value boolean

Example

<?php
$destroy = new \Kendo\Data\DataSourceTransportDestroy();
$destroy->cache(true);
?>

contentType

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

Returns

\Kendo\Data\DataSourceTransportDestroy

Parameters

$value string

Example

<?php
$destroy = new \Kendo\Data\DataSourceTransportDestroy();
$destroy->contentType('value');
?>

data

Additional parameters which are sent to the remote service. The parameter names must not match reserved words, which are used by the Kendo UI DataSource for sorting, filtering, paging, and grouping.Refer to the jQuery.ajax documentation for further information.

Returns

\Kendo\Data\DataSourceTransportDestroy

Parameters

$value |\Kendo\JavaScriptFunction

Example - using

<?php
$destroy = new \Kendo\Data\DataSourceTransportDestroy();
$destroy->data(new ());
?>

Example - using \Kendo\JavaScriptFunction

<?php
$destroy = new \Kendo\Data\DataSourceTransportDestroy();
$destroy->data(new \Kendo\JavaScriptFunction('function() { }'));
?>

dataType

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

Returns

\Kendo\Data\DataSourceTransportDestroy

Parameters

$value string

Example

<?php
$destroy = new \Kendo\Data\DataSourceTransportDestroy();
$destroy->dataType('value');
?>

type

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.

Returns

\Kendo\Data\DataSourceTransportDestroy

Parameters

$value string

Example

<?php
$destroy = new \Kendo\Data\DataSourceTransportDestroy();
$destroy->type('value');
?>

url

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.

Returns

\Kendo\Data\DataSourceTransportDestroy

Parameters

$value string |\Kendo\JavaScriptFunction

Example - using string

<?php
$destroy = new \Kendo\Data\DataSourceTransportDestroy();
$destroy->url('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$destroy = new \Kendo\Data\DataSourceTransportDestroy();
$destroy->url(new \Kendo\JavaScriptFunction('function() { }'));
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve the information

close
Dummy