or
<
div
id
=
"tabstrip"
>
<
ul
>
<
li
class
=
"k-state-active header"
>First Tab</
li
>
<
li
class
=
"header"
>Second Tab</
li
>
<
li
class
=
"header"
>Third Tab</
li
>
</
ul
>
<
div
class
=
"content"
><
p
>TabStrip sample content, first tab</
p
></
div
>
<
divclass
=
"content"
><
p
>TabStrip sample content, second tab</
p
></
div
>
<
divclass
=
"content"
><
p
>TabStrip sample content, third tab</
p
></
div
>
</
div
>
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+
'?'
}},