Hi, I have the following window:
But I only want to show the window and call the "ViewJobLogWindowsContent" action upon some other event such as a button click (or in this case an image click).
I call the following JavaScript function when the user clicks an image (acting as a link):
The window is not visible when the page first loads but the "ViewJobLogWindowsContent" action is called and when the user clicks the image it correctly shows the window but it does not call the action again?
I need the window to just be defined but not loaded and then only call the action to load the content when the JavaScript function is called.
@(Html.Kendo().Window()
.Name(
"viewJobLogWindow"
)
.Title(
"Quote: QXXXX"
)
.LoadContentFrom(
"ViewJobLogWindowsContent"
,
"Quotes"
)
.Draggable()
.Resizable()
.Width(640)
.Height(480)
.Actions(actions => actions.Pin().Minimize().Maximize().Close())
.Visible(
false
)
)
But I only want to show the window and call the "ViewJobLogWindowsContent" action upon some other event such as a button click (or in this case an image click).
I call the following JavaScript function when the user clicks an image (acting as a link):
function clickViewJobLogImage()
{
var win = $(
"#viewJobLogWindow"
).data(
"kendoWindow"
);
win.center();
win.open();
}
The window is not visible when the page first loads but the "ViewJobLogWindowsContent" action is called and when the user clicks the image it correctly shows the window but it does not call the action again?
I need the window to just be defined but not loaded and then only call the action to load the content when the JavaScript function is called.