This is my template:
When I have firebug open and I click save changes (k-update-button) I get no ajax call...my DS defines it, and the GET\DELETE work fine...any idea what it might be???
editTemplate: " <tr>\
<td class=
'name'
>\
<input type=
'text'
value=
'#: PageName #'
class=
'k-textbox small'
/>\
</td>\
<td class=
'action'
>\
<a href=
'\\#'
class=
'icon icon-ok k-update-button'
title=
'Save Changes'
></a>\
</td>\
<td class=
'action'
>\
<a href=
'\\#'
class=
'icon icon-remove k-cancel-button'
title=
'Cancel'
></a>\
</td>\
</tr>",
When I have firebug open and I click save changes (k-update-button) I get no ajax call...my DS defines it, and the GET\DELETE work fine...any idea what it might be???
favsList.kendoListView({
dataSource:
new
kendo.data.DataSource({
transport: {
read: {
url: f.baseUrl + $medportal.User.UserName,
dataType:
"json"
,
type:
"GET"
},
update: {
url: f.baseUrl +
"/Update"
,
dataType:
"json"
,
type:
"PUT"
},
destroy: {
url:
function
(data) {
var
url = f.baseUrl + $medportal.User.UserName +
"/"
+ data.FavouriteID;
return
url;
},
dataType:
"json"
,
type:
"DELETE"
}
},
batch:
false
,
pageSize: 10,
schema: {
model: {
id:
"FavouriteID"
,
fields: {
FavouriteID: { editable:
false
, nullable:
true
},
Index: { type:
"number"
},
PageName: { type:
"string"
},
Url: { type:
"string"
}
}
}
}
}),
template: kendo.template(f.rowTemplate),
editTemplate: kendo.template(f.editTemplate),
remove:
function
(e) {
var
fav = e.model;
if
(fav.FavouriteID === f.currentfavoriteid) {
//Reset the Add Button
f.setAddState();
}
}
}).data(
"kendoListView"
);