Hi, I have a table bound to a popup that contains the items in the table. Normal text fields work fine (the selected table row data is shown in the popup). But the date field is not working. I have the date field formatted using a function in the column template d/m/Y, the text field has type of date. Do i need to add something to the bind to make this work?
There is no need for any special processing.
DataTable will push a raw, not-formatted value to the bonded view. So if you have a date object loaded in the grid, this object will be shown in the form.
If issue still occurs, can you share a link or a snippet?
Hi Maksim, sorry for the delay. I have created a snippet here: http://webix.com/snippet/cf5d19c4
Basically when it binds to the pop up, the date needs to be formatted so it shows correctly in the text (date) field.
HTML5 input date elements requires incoming date to be in specific format.
Please check the updated sample
http://webix.com/snippet/724d534a
I have added scheme section to the datatable, that pre-formats data after loading.
In case of datepicker control you just need to provide a date object
This is great thank you!