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

How can I add buttons to Toolbar on Modal Window?

1 Answer 226 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 18 Jul 2016, 09:48 PM

I have a requirement where the user needs to be able to Clone or Add & Clone lots and lots of records from within the modal Kendo window. Currently, there are only two buttons at the bottom of the window: Update and Cancel. I've looked all over the web and the support area here, but cannot find any example or docs on how to accomplish adding custom actions and buttons within the modal Kendo window.

  • The user wants to be able to fill out a new form, click Add & Clone, update the current form that has nearly identical values, then click Add & Clone again, etc. etc.
  • The user wants to be able to open an existing form, click Clone, update the current form that has nearly identical values, then click Add & Clone again, etc. etc.

As you can see, the basic scenario is pretty straightforward and very handy for working with lots of similar data. The form should NOT close, but stay open after the submit occurs.

How can I achieve this functionality within a modal Kendo window control (using the toolbar)?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 20 Jul 2016, 11:06 AM
Hello Alex,

I am not sure if I correctly understand the desired scenario. Could you please be more specific as well as clarify the following:
    - "needs to be able to Clone or Add & Clone lots and lots of records from within the modal Kendo window". How are these records visualized? Do you use a Kendo UI Grid inside the RadWindow?
   - "adding custom actions" - By a custom action you mean a server-side ASP.NET MVC Action method or the action or you mean Kendo UI Window actions like minimize, maximize, etc.?

If you want to submit the content of the window you should ensure to wrap the content inside a form element. More information on the matter is available here - http://docs.telerik.com/kendo-ui/aspnet-mvc/helpers/window/overview#htmlbeginforms-inside-windows

It will be useful if you can send us a fully runnable sample as well as describe the actual and the expected behavior of the window.

Regards,
Danail Vasilev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Window
Asked by
Alex
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or