This is a migrated thread and some comments may be shown as answers.

How to use Datasource in RadioGroup

1 Answer 374 Views
RadioGroup
This is a migrated thread and some comments may be shown as answers.
Saket
Top achievements
Rank 1
Saket asked on 26 Jan 2021, 08:37 AM

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"
                        }
                    }

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 28 Jan 2021, 06:31 AM

Hello Saket,

The issue is the same as having the dataSource option in CheckBoxGroup as discussed in the thread linked here. In case you think that having a dataSource option is a valuable enhancement to the RadioGroup widget, you could log the idea in the Feedback Portal. The more votes the issue gains in the community, the bigger chance it gets to be implemented in a future release.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
RadioGroup
Asked by
Saket
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or