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

Radio Button Group with MVC Controller

3 Answers 779 Views
Button
This is a migrated thread and some comments may be shown as answers.
Sheldon
Top achievements
Rank 1
Sheldon asked on 09 Mar 2015, 06:42 PM
Can anyone give me an example of how to create a kendoui radio button group  and get the button labels and button values from an MVC Ajax controller data source?

The radio buttons need to be bound to an MVC model, so the RadioButtonFor(expression) format would be the most useful.

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 12 Mar 2015, 08:08 AM
Hi,

Please accept my apologies for the delayed response.

If I understand correctly you'd like to build the radio button group on the client.

In this scenario the server-side RadioButtonFor helpers, well, won't be of help.
The model metadata is not available for them to work.

I imagine the code will look like this snippet.
I hope this helps.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sheldon
Top achievements
Rank 1
answered on 26 Mar 2015, 02:50 PM
Thanks Tsonev.

I was able to resolve the issue.
0
T. Tsonev
Telerik team
answered on 27 Mar 2015, 03:58 PM
Hi,

I'm glad to hear you were able to get this working in your project.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Button
Asked by
Sheldon
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Sheldon
Top achievements
Rank 1
Share this question
or