I have a grid in kendo with the following columns:
columns: [
{ field: "GroupId", hidden: true},
{ field: "Name", title: "Group Name"},
{ field: "Description", title: "Description"},
{ field: "Users.length", title: "Assigned Users" }]
The datasource has the schema:
schema: {
model: {
id: "GroupId",
fields: {
Name: {editable: true},
Description: {editable: true},
Users: {editable: false},
}
}
}
My problem: I do not want Users to be editable, so it has the editable: false property. But this doesn't seem to be binding to my Users.length field.
Which of the following is the correct/implementable approach to this? I'm new to kendo, so I've had no luck figuring this out on my own.
- Can I have the field name refer to Users, and the display value be Users.length?
- Can I bind the field in the schema to Users.length somehow?
John
display 4 andJohn
is the value?! – CSharper