Posted 14 September 2017, 11:18 am EST
Hello - I’m evaluating Wijmo 5 FlexGrid for a project I’m working on and ran into a problem getting the date input working in CellEdit template. It just never appears when editing a cell.
Using AngularJS 1.3, here’s my markup for the grid:
[html]frozen-columns=“2”
id=“grid”
wj-context-menu=“#gridMenu”
allow-sorting=“false”
allow-dragging=“Both”
child-items-path=“children”
item-formatter=“itemFormatter”>
required=“false”
format=“M/d/yy”
style=" width: 100%; height: 100%; box-sizing: border-box;">
[/html]
The dates are not required and are all initially null from the server.
To allow editing in hierarchical mode, I have this in my controller (found workaround in another topic here):
[js]function itemFormatter(gridPanel, row, col, cellElem) {
// FlexGrid makes all rows group rows when using hierarchical data.
// We’ll fix that here
gridPanel.rows[row].isReadOnly = false;
}[/js]
Am I doing something wrong, or is there an issue with using edit templates in hierarchical mode?
Thanks
UPDATE I also tried adding a wj-input-number in a different column as cell-type=“CellEdit” and it doesn’t work either…