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

How to integrate templates and modal windows?

2 Answers 231 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Francis
Top achievements
Rank 1
Francis asked on 14 Mar 2016, 05:50 PM

I am currently using nunjucks templating engine to build my app. On one .html template (index.html), I have a button that when clicked will open up a modal window. This modal window will contain a .html template with a 'next' button that will take you to another .html template (up to 6 pages). I am wondering how this can be done with Kendo. Basically I am trying to accomplish something like this: 

'index.html'

<button id="openButton">Open Window</button>

'main.js'

$(document).ready(function(){
    $("#window").kendoWindow({
        width: 200,
        height: 200,
        title: "Centered Window",
        visible: false           
    }).data("kendoWindow");
});
 
$("#openButton").click(function(){
    var win = $("#window").data("kendoWindow");
    win.center().open();
});

'modal-window1.html' thru 'modal-window6.html'

<div id="window">
Content of Window
<button id="next-window">Next</button>
</div>

2 Answers, 1 is accepted

Sort by
0
Francis
Top achievements
Rank 1
answered on 14 Mar 2016, 07:17 PM
I also need to add that the modal window will be a collection of forms.
0
Daniel
Telerik team
answered on 17 Mar 2016, 07:05 AM
Hello,

I am not sure if I understand the issue. Please clarify what problems are you experiencing with using the window in this scenario.

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