Hello:
I'd like to pass parameter of Kendo Window when a div clicked, the passed parameter will be the value of this Div, the Kendo Window renders from a partial view.
Razor view:
When the DIV is clicked, the value is saved to eID, then I need to pass this eID to PartialView, like
.../Standard/GetStandard?eID=50744
Please advise,
Thank you,
I'd like to pass parameter of Kendo Window when a div clicked, the passed parameter will be the value of this Div, the Kendo Window renders from a partial view.
Razor view:
<
div
id
=
"div1"
onclick
=
"divClicked"
>50744</
div
>
@{Html.Kendo().Window()
.Name("win1")
.Visible(false)
.Modal(true)
.Height(400)
.Content(@<
text
>
@{Html.RenderAction("GetStandard", "Standard", new { eID=???});}
</
text
>).Render();
}
<
script
>
$(document).ready(function () {
$("#div1").on("click", divClicked);
});
</
script
>
<
script
type
=
"text/javascript"
>
function divClicked() {
var eID = $(this).text();
$("#win1").data("kendoWindow").center().open();
}
</
script
>
When the DIV is clicked, the value is saved to eID, then I need to pass this eID to PartialView, like
.../Standard/GetStandard?eID=50744
Please advise,
Thank you,