I am new to Kendo UI. I would like to be able to display a popup with the results from my controller.
My example is very simple. I have this data on my page.
Some text [Create]
When I click on [Create], a call in made to my controller. The controller will create a PDF file. Next, I would like to be able to display the pdf in a KendoUI Window.
I am getting hung up on how to pass info back to page so the KendoUi Window is aware of the PDF file name to display.
Thanks in advance for your tips.
Steve
MVC 4
KendoUI 2012.2.270
There are two basic approaches:
Assuming that you for 1. Then you have an HTML that is something like this
Then you define the window and the
click
bind for triggering the open as:Where I create a
kendoWindow
but set it's visibility to not visible. Then I bind a function to the click on theCreate PDF
message that sets the content to an HTMLobject
wheredata
attribute is the pdf document and then open by invokingkendoWindow
open
method.