{
"windows": [
{
"name": "ObjectSelectorExample",
"title": "ObjectSelector Example",
"left": 500,
"top": 100,
"width": 400,
"height": 300,
"controls": [
{
"name": "firstNameTextBox",
"type": "textbox",
"label": "First Name",
"bindsTo": "firstName"
},
{
"name": "lastNameTextBox",
"type": "textbox",
"label": "Last Name",
"bindsTo": "lastName"
},
{
"name": "managerObjectSelector",
"type": "objectselector",
"label": "Manager",
"bindsTo": "manager",
"getObjectFunction": "getManager",
"objectValueProperty": "name"
},
{
"name": "OKButton",
"type": "button",
"text": "OK",
"isDialogButton": true,
"dialogResult": "OK"
},
{
"name": "CancelButton",
"type": "button",
"text": "Cancel",
"isDialogButton": true,
"dialogResult": "Cancel"
}
]
},
{
"name": "ObjectSelectorGridSelector",
"title": "Select Manager",
"width": 500,
"height": 300,
"controls": [
{
"name": "managersGrid",
"type": "gridview",
"bindsTo": "list",
"canUserAddRows": false,
"columns": [
{
"type": "gridviewstatictextcolumn",
"name": "title",
"label": "Title",
"width": 150,
"bindsTo": "title"
},
{
"type": "gridviewstatictextcolumn",
"name": "name",
"label": "Name",
"width": 250,
"bindsTo": "name"
}
]
},
{
"name": "OKButton",
"type": "button",
"text": "OK",
"isDialogButton": true,
"dialogResult": "OK"
},
{
"name": "CancelButton",
"type": "button",
"text": "Cancel",
"isDialogButton": true,
"dialogResult": "Cancel"
}
]
}
]
}
var playerData = {
firstName: "Claudio",
lastName: "Marchisio",
manager: {}
};
// Options for object selector
var teamManagement = {
list: [
{
id: 7,
title: "Manager",
name: "Antonio Conte",
},
{
id: 8,
title: "Goalkeeping Coach",
name: "Claudio Filippi",
},
{
id: 9,
title: "Assistant Manager",
name: "Angelo Alessio",
},
{
id: 10,
title: "First-team Coach",
name: "Massimo Carrera",
}
]
};