How to display the data from database next to the radio button ?

https://webix.com/snippet/f048902e

Hello,
In Radio there isn’t possible to connect to a database. As a solution, you can create data before initialization
Maybe, if it’s not important to use exactly this view, you can use, for example,
ui.combo which displays options for users to select

Hello2018

Did you get a solution for getting radio button options from Database?

Michael

You can use DataCollection as data source for the radio.
DataCollection can be filled by predefined values or loaded from DB

https://snippet.webix.com/ovxj6f7c

I’ve seen your example but this isn’t from db… :frowning:

Please ignore my previous reply

You can use code like next

webix.ajax("data/options").then( res => {
    $$("radio").config.options = res.json();
    $$("radio").render();
});

https://snippet.webix.com/6y2drnzr