Radio Button Group with MVC Controller

4 posts, 0 answers
  1. Sheldon
    Sheldon avatar
    2 posts
    Member since:
    Oct 2014

    Posted 09 Mar 2015 Link to this post

    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.
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 12 Mar 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Sheldon
    Sheldon avatar
    2 posts
    Member since:
    Oct 2014

    Posted 26 Mar 2015 in reply to T. Tsonev Link to this post

    Thanks Tsonev.

    I was able to resolve the issue.
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 27 Mar 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready