$(document)
.on(
"click",
"input[name='serverFileCheckOption']",
function(e) {
if ($(this).attr("checked") == undefined) {
$("input[name='serverFileCheckOption']").each(
function(e) {
if ($(this).attr("checked")) {
$(this).removeAttr("checked");
}
});
$(this).attr("checked", true);
var data = $("#serverListView").data(
"kendoListView").dataSource.view();
var deviceIds = $.map($(this).parent(), function(
item) {
return data[$(item).index()].f_deviceid;
});
createAccountGrid(deviceIds[0]);
createGrid(deviceIds[0]);
} else {
$(this).removeAttr("checked");
clearGrid();
}
});
.on(
"click",
"input[name='serverFileCheckOption']",
function(e) {
if ($(this).attr("checked") == undefined) {
$("input[name='serverFileCheckOption']").each(
function(e) {
if ($(this).attr("checked")) {
$(this).removeAttr("checked");
}
});
$(this).attr("checked", true);
var data = $("#serverListView").data(
"kendoListView").dataSource.view();
var deviceIds = $.map($(this).parent(), function(
item) {
return data[$(item).index()].f_deviceid;
});
createAccountGrid(deviceIds[0]);
createGrid(deviceIds[0]);
} else {
$(this).removeAttr("checked");
clearGrid();
}
});