I am evaluating Kendo UI for use with Angular. I have spent many hours oin this issues, with no resolution so far.
I am creating a grid from a remote datasource and I want tformat the columns with embedded widgets (dropdown list & datepicker).
I tried using rowTemplate and then column templates. No matter what I do I get very strange behavior for the column entries. This happens for both existing rows and rows I add with .addRow
Here's the grid options:
01.
var
typeTemplate =
'<select kendo-drop-down-list style="width: 100%;">'
02.
+
'<option></option>'
03.
+
'<option>BB</option>'
04.
+
'<option>FVRCP</option>'
05.
+
'</select>'
;
06.
07.
var
dateTemplate =
'<input kendo-date-picker style="width: 100%;" />'
;
08.
09.
this
.options = {
10.
dataSource: dataSource,
11.
schema: {
12.
model: {
13.
id:
'vaccine_id'
,
14.
fields: {
15.
vaccine_id: { type:
'number'
},
16.
type: { type:
'string'
},
17.
date: { type:
'date'
}
18.
}
19.
}
20.
},
21.
columns: [
22.
{ field:
'type'
, title:
'Type'
, template: typeTemplate },
23.
{ field:
'date'
, title:
'Date'
, template: dateTemplate }
24.
]
25.
};
Here's the symptoms:
- all values disappear when I call .addRow values disappear
- if I add a 2nd row, that row becomes highlighted (gold, I think) and stays highlighted.
Any ideas?