How can I add buttons to Toolbar on Modal Window?

2 posts, 0 answers
  1. Alex
    Alex avatar
    19 posts
    Member since:
    Nov 2011

    Posted 18 Jul Link to this post

    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.

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 20 Jul Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top