I would like to load different content into the window depending on what button the user clicks.
Right now i have always the same text inside.
I want to be to somehow add the content inside where i put the ?????, but i am not sure how.
Or maybe some other alternative way of doing this?
Any help would be appreciated.
Right now i have always the same text inside.
@(Html.Kendo().Window()
.Name("window")
.Content(@<
text
>
<
p
>
Blah Blah
</>
</
text
>)
.Width(540)
.Height(480)
.Visible(false)
)
var kendoWindow = $("#window");
$("#openEmail").click(function (e) {
???????
kendoWindow.data("kendoWindow").open();
});
$("#openBox").click(function (e) {
???????
kendoWindow.data("kendoWindow").open();
});
$("#openDesk").click(function (e) {
??????
kendoWindow.data("kendoWindow").open();
});
$("#window").click(function (e) {
kendoWindow.data("kendoWindow").close();
});
I want to be to somehow add the content inside where i put the ?????, but i am not sure how.
Or maybe some other alternative way of doing this?
Any help would be appreciated.