vendredi 2 janvier 2015

How can I bind complex object to a field in Kendo Scheduler

I would like to add share functionality to Kendo Scheduler and in order to do this I would like the share field to be a complex object not just a simple strin for example.


So what I want to do is the following:



schema: {
model: {
id: "taskId",
fields: {
taskId: { from: "Id", type: "number" },
title: { from: "Title", defaultValue: "No title", validation: { required: true } },
start: { type: "date", from: "StartsOn" },
end: { type: "date", from: "EndsOn" },


Share:[
{
user: { from: "users", defaultValue: 1 }, //users is a resource
right: { from: "rights", defaultValue: 1 },
}],
}
}


can anybody help me?





Aucun commentaire:

Enregistrer un commentaire