How can i use DataSource in RadioGroup instead of static data items ?
In below code instead of hard coded items i want to use the Datasource so that the Radio optoion get rendered based on data returned by API.
{
field: "RadioGroup",
editor: "RadioGroup",
label: "Select User:",
validation: { required: true },
editorOptions: {
items: [{"label":"Admin","value":"1"}, {"label":"Admin 2","value":"2"},{"label":"Admin 3","value":"3"}],
layout: "horizontal",
labelPosition: "after"
}
}