JavaScript
var localDS = {
"Data": [
{ "PathLabel_Id": 3083, "Name": "Server", "Angel": "✓", "Dev": "✓", "Test": "" },
{ "PathLabel_Id": 3077, "Name": "Share", "Angel": "✓", "Dev": "✓", "Test": "" },
{ "PathLabel_Id": 3078, "Name": "Share", "Angel": "✓", "Dev": "", "Test": "" },
{ "PathLabel_Id": 3087, "Name": "T1", "Angel": "✓", "Dev": "", "Test": "" },
{ "PathLabel_Id": 3085, "Name": "Temp", "Angel": "✓", "Dev": "✓", "Test": "" },
{ "PathLabel_Id": 3090, "Name": "Test", "Angel": "✓", "Dev": "✓", "Test": "" }
],
"Total": 6
},
createData = function() {
return localDS.Data;
},
_self = null,
PathCategoryViewModel = kendo.data.Model.define({
fields: {
PathCategory_Id: { type: "number" },
Category: { type: "string" },
IsMember: { type: "boolean", sortable: false, title: "" }
}
}),
PathLabelViewModel = kendo.data.Model.define({
fields: {
PathLabel_Id: { type: "number" },
Name: {
type: "string", validation: {
required: true, max: 30
}
},
Value: { type: "string", validation: { required: true } },
IsExpression: { type: "boolean" }
}
}),
PathLabelConfigViewModel = kendo.data.Model.define({
PathLabelData: PathLabelViewModel,
PathCategoriesData: [PathCategoryViewModel]
}),
AdminPathLabels = {
init: function () {
_self = this._PathLabels;
_self.getPathLabelsData();
},
_PathLabels: new kendo.observable({
name: "Name",
pathLabel_Id: "PathLabel_Id",
isRowSelected: false,
showNotConfigured: false,
selectedPathLabelID: null,
selectedPathLabel: null,
pathCategories: null,
pathLabelsNotConfigured: null,
pathLabelsGridDOM: "#pathLabelsGrid",
showPathLabelsGrid: true,
loadingPage: true,
localizationMessage: undefined,
// Add all configurations for Path Labels grid in pathLabelsGridConfig property.
pathLabelsGridConfig:
{
columns: null,
scrollable: true,
resizable: true,
pageable:...