Hi there,
Is there a way to specify context for a template? I do not use kendo viewmodels, but only its widgets. For binding view models I use KnockoutJS, and from time to time there is a need to execute a certain function to, say, do a formating. So far as I see you can only execute functions that are available on the dataitem binded or window object. How can I pass parent view model as a context for a template for a dataitem?
Thanks.
Hi there,
How do I commit changes made to rows in grid back to data source, which doesn't use any service. i.e. grid is just binded to an array. Calling saveChanges method does not result in propagating changes back to an object which representation was modified. Please, note that I'm using kendoGrid together with KnockoutJS, though it seems make no difference if binded to plain objects.
Thanks
.k-
icon
, .k-tool-
icon
, .k-grouping-dropclue, .k-drop-hint, .k-callout, .k-progress, .k-progress-status, .k-column-menu .k-sprite {
background-image
:
url
(
"Silver/sprite.png"
);}<br>.k-
icon
, .k-column-menu .k-sprite {opacity:
0.8
;}
ThemeBuilder:.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-progress,.k-progress-status{
background-image
:
url
(
'Silver/sprite.png'
);}
var
postUrl =
'http://localhost:8080/catalog/devices'
;
var
postBody =
'{"model":"765-VVH-78"}'
;
var
dataSource =
new
kendo.data.DataSource({
transport: {
create: {
url: postUrl,
type:
'POST'
,
contentType:
"application/json"
,
data: postBody
}
}
});
var
kendoPost =
function
() {
dataSource.transport.create();
}
var
jqueryPost =
function
() {
$.ajax({
url: postUrl,
type:
'POST'
,
contentType:
"application/json"
,
data: postBody
});
}
parameters = extend(
true
, {}, data, options.data);
if
(
typeof
data ==
"string"
) {
parameters = data;
}
else
{
parameters = extend(
true
, {}, data, options.data);
}