Datatable: date editor configuraton in genreal

Thought i was an little experienced webix developer :(((( but not today!

I don’t get date picker configuration (each column different date picker conf on demand) to run…

found the $popup documentation, but seems like some mistakes there…

please help to save my day!

All editors are using the single instance of DatePicker popup, so you will need to reconfigure it from the onAfterEditStart (in this moment the popup is already created for sure, so you can work with calendar’s API directly)

http://webix.com/snippet/56d5c0c1

Also, it possible to create your own instances of datepicker and assign them to different columns ( so each column will have its own datepicker, with separate configuration), but it is an expensive solution.

Thank you. Please have a look to Docu,

http://docs.webix.com/desktop__editing.html

was working on that way, but i think the Docu is wrong…

Any instance of a popup editor can be configured separately, with the help of a popup property of an item in question:
Adding a weekHeader to the Date editor
{ id:“date”,editor:“date”, popup:{
view:“popup”,
body:{
view:“calendar”, borderless:true, weekNumber:true
}
}

Thanks for extra info.

It is a regression actually, the described code must work, but it doesn’t. Currently it support only already initialzed views and not the pure configs.

http://webix.com/snippet/2f59b702

We will fix it in the next dev. build.

Do you think this way of solution would be also appropriate ?

http://webix.com/snippet/ec75e17a

Yep, it is a correct solution without any unnecessary side-effects.