Posted 7 February 2018, 10:01 am EST
I have a wijmo.input.InputDate being imbedded into a FlexGrid Cell via a call from a manager code to the FlexGrid’s itemFormatter function.
All is good, except for a minor issue:
When I tab to the cell and press a key [0-9], that ketstroke is swallowed by the control.
I got this to work ok with the DropDown control: wijmo.input.AutoComplete,
But by using the same technique on the InputDate. it doen’t work
Technique:
- Get the manager code to capture the keystroke, via keydown event and store in manager. pass manager to Flexgrid.itemFormatter functions callback handler.
- In the Flexgrid.itemFormatter functions callback handler, create the control.
- put a gotFocus handler on the created control
- set Text /oldText to the manage value of the keystroke eg:
var dtpGotFocus = function (e) {
if (manager != null && manager._cellKeyDownValue != null && dtp != null) {
dtp.text = '';
dtp.oldText = manager._cellKeyDownValue;
manager._cellKeyDownValue = null;
}
}
// create InputDate as a child of the cell, bind it to data and set selected item to the cell's value
dtp = new wijmo.input.InputDate(cell, {
format: 'dd/MM/yyyy',
value: cellDateValue,
isDroppedDown: true,
showDropDownButton: false,
textChanged: dtpTextChanged,
gotFocus: dtpGotFocus
});
this works for Autocomplete dropdowns but not for data
For date, the keystroke is set on oldText but not on Text and the displayed value is the value set when creating the control or it defaults to todays date.
How can I fix this?
My team and I have been working with the Wijmo Flexgrid for the last 3 years.
Our clients are fast data input persons.
Such persons don’t like taking their hands off the key board and having to use the mouse.
These persons, mostly trained typists, can type at 200+ words a minute. One lady can type at 350+ words a minute.
Forcing them to use the mouse, dramitcally slows down this key data entry rate.
One of the reasons we went with Wijmo FlexGrid was it’s “Excel like look, functionality and feel” to paraphrase the Wijmo marketing documentation.
We have found the Flexgrid to be very unfriendly to the fast typist.
So we have had to create work-arounds for these situations.
The FlexGrid is just too mouse orientated. (BTW, there is no mouse on the mobile devices)