natxocc
September 25, 2017, 6:39pm
1
When I try to insert a datepicker in a datatable is easy with editor:“date”.
But I need that the cell can be modified by popup datepicker or manually writting the date manually. How it could be possible?
PD: In a form is easy if I configure datepicker wirh editable:true, but I didn’t found this option in datatable.
Thanks!!
natxocc
September 29, 2017, 10:26am
2
is it not possible? I need to modify the source code probably?
Hi,
Default ‘date’ editor is a calendar inside a popup, not the full-featured datePicker.
You can create a custom editor with the needed functionality.
Check the snippet, please http://webix.com/snippet/857844d0 . Though it’s rather an approximate solution, it may satisfy your needs.
natxocc
September 29, 2017, 3:04pm
4
Yes! it’s godd.
But is it possible to change the result date format ? Like yyyy-mm-dd?
Thanks!!!
There are two levels of data handling:
Real value can be modified with editor’s get/setValue methods, while the result can be rendered according to the specified format : https://webix.com/snippet/bd15f802
Note that this implementation of the custom editor uses standard ‘date’ editor to pick a date from the calendar.
natxocc
September 30, 2017, 9:11am
6
Great! The code is very easy to understand.
Thanks!!!