Hi Guys,
I have a Grid bound to a remote datasource like this
The Roles field contains a list of custom object; each of this object has some simple properties (int and string).
When the grid is loaded I show a simple count of Roles list for each record.
es
I set the edit mode as INLINE.
Is it possible to use a custom template so that text properties are edited with textboxes as usual and "Roles" property is rendered as, for example, a dropDownList ???
I tried with a template as I'd like to do with popup edit mode but it seems to be useless.
Thanks
Fabio
I have a Grid bound to a remote datasource like this
$("#rolesGrid").data("kendoGrid").setDataSource(new kendo.data.DataSource({ transport: { read: { url: "Url1", type: "POST" }, update: { url: "Url2", dataType: "json", type: "POST" } }, schema: { model: { id: "Id", fields: { Id: { type: "int", editable: false }, Name: { type: "string", editable: true }, Description: { type: "string", editable: true }, Roles: { type: "odata", editable: true } } } }, pageSize: 10, sort: { field: "Nome", dir: "asc" } }));When the grid is loaded I show a simple count of Roles list for each record.
es
{ field: "Roles", title: "roles", template: "<div>#= Roles.length#</div>"}Is it possible to use a custom template so that text properties are edited with textboxes as usual and "Roles" property is rendered as, for example, a dropDownList ???
I tried with a template as I'd like to do with popup edit mode but it seems to be useless.
Thanks
Fabio
