Datatable column value lookup

Hi

I have a datatable, which is based on data like this:

{id: 1, plant_id: 44, notes: ‘some notes about product’}

Now I would like to lookup the value of plant_id in another datasource, and instead of displaying ‘44’ in my datatable. I would display the name of the plant_id.

How is this best done?

-mads

You need to specify options parameter in config of the related column

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

Works perfectly - reading the docs I was sure that options: only worked together with some form of editor.

I do however have some trouble getting the data to provide into options: via ajax. Not the ajax-call itself, but getting the data from there into the datatable.

Hello,

it is possible to define url for the options. Please check the demo:

http://docs.webix.com/samples/15_datatable/04_editing/20_select_server.html