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

MVC WriteAction

1 Answer 25 Views
Button
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Veteran
Iron
Iron
Joel asked on 16 Apr 2019, 03:44 PM
I have not found documentation on how to use the WriteAction method on your Button.  Can you give me a link?  I have an MVC application and I'm using a multi-step wizard that utilizes your tab strip to load PartialViews.  The final page on this Wizard presents a Save button which should call my Create method on the Controller.

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 19 Apr 2019, 01:08 PM
Hello Joel,

The Button HTML / Tag helper would not allow you to directly associate a remote action to be triggered upon its click. Instead, you will need to place all the form fields (in this case located within the TabStrip) in a <form> element. Then, the Button helper should be configured to use the <button> tag:
@(Html.Kendo().Button()
    .Name("button")
    .Content("Click to submit")
    .Tag("button")
)

Regards,
Veselin Tsvetanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Button
Asked by
Joel
Top achievements
Rank 1
Veteran
Iron
Iron
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or