or
DELETECONFIRM =
"Are you sure you want to delete this record?"
,
"Are you sure you want to delete Jim Bob's dental records?"
,
removeRow:
function
(row) {
var
that =
this
,
model,
mode;
row = $(row);
//RAD
model = that._modelForContainer(row);
// RAD
// if (!that._confirmation()) {
if
(!that._confirmation(model)) {
// RAD pass model unconditionally. callee will decide what to do with it
return
;
}
row.hide();
// row = $(row).hide(); // RAD
// model = that._modelForContainer(row); // RAD
if
(model && !that.trigger(REMOVE, { row: row, model: model })) {
that.dataSource.remove(model);
mode = that._editMode();
if
(mode ===
"inline"
|| mode ===
"popup"
) {
that.dataSource.sync();
}
}
},
_confirmation:
function
(model) {
// RAD
var
that =
this
,
editable = that.options.editable,
confirmation = editable ===
true
||
typeof
editable === STRING ? DELETECONFIRM : isFunction(editable.confirmation) ? editable.confirmation(model) : editable.confirmation;
return
confirmation !==
false
&& confirmation !=
null
? that._showMessage(confirmation) :
true
;
},
editable: {
mode:
"popup"
,
confirmation:
function
(model) {
return
'Are you sure you want to delete the '+model.rectype+' record of '
+model.name+
'?'
}},
var
slider = $(
"#sliderHours"
).data(
"kendoSlider"
);
slider.smallStep =
"1"
;
$('.k-draghandle').hide();
$('#slider .k-draghandle').hide();
[WebInvoke(Method =
"GET"
)]
[WebGet]
public
string
HelloGET() {
return
"Hi THere from GET"
;
}
var
helloDS =
new
kendo.data.DataSource({
transport: {
read: {
// the remote service URL
type:
"GET"
,
url: oDataBasePath +
"/USDA.svc/HelloGET?$format=json"
,
dataType:
"jsonp"
,
contentType:
"application/json; charset=utf-8"
,
}
},
change:
function
() {
alert(
"Change"
);
},
error:
function
(){
alert(
"error"
);
}
});
helloDS.fetch();
{
"d"
: {
"Hello"
:
"Hi THere"
}
}
http:
//odata.gourmetsleuth.com/USDA.svc/HelloGET?$format=json&callback=jQuery17106241045930093632_1323571371269&_=1323573597895