I’m trying to implement an editable datepicker as a cell editor in a datatable, to allow a user to either select a date from the calendar, or manually enter a date. The standard date editor only supports date selection, but not manual date entry.
With this code sample, the navigation of the datepicker (e.g. clicking on arrow left/right, clicking on year etc) doesn’t work. Because it is invoked as a popup, any click closes the datepicker and returns focus to the datatable.
Can you pls advise how to implement proper behaviour?
Because it is invoked as a popup, any click closes the datepicker and returns focus to the datatable.
it’s normal behavior for popup editors. Any click outside the editor or its popup stops editing of the master component (saves editor value and closes the editor). That’s why the popup with a datepicker closes - the click target is outside it.
The standard date editor only supports date selection, but not manual date entry.
You can create a custom editor with the needed functionality.
Check the snippet, please Code Snippet. Though it’s rather an approximate solution, it may satisfy your needs.