Imagine that I have a kendoui datasource.
Is it possible to add a custom property/attribute like this ?
Is it possible to add a custom property/attribute like this ?
var
dataSource =
new
kendo.data.DataSource({
xpto =
"3"
, <---
transport: {
read: {
// the remote service url
// JSONP is required for cross-domain AJAX
dataType:
"jsonp"
,
// additional parameters sent to the remote service
data: {
q:
"html5"
}
}
},
// describe the result format
schema: {
// the data which the data source will be bound to is in the "results" field
data:
"results"
}
});