Hi I'm enumerating though a model and want to pass the current data n to a Window when edit is clicked.
@foreach (var n in Model) {
<
tr
>
<
td
class
=
"grb-fa-center"
>
<
i
class
=
"far fa-edit fa-lg"
title
=
"Edit"
onclick
=
'$("#window").data("kendoWindow").open();'
></
i
>
</
td
>
</
tr
>
<
div
id
=
"example"
>
@(Html.Kendo().Window()
.Name("window")
.Title("My Editor")
.Content(@<
text
>@Html.Partial("MyEditor\\Index", n)</
text
>)
.Visible(false) .Width(400)
)
</
div
>
How can I pass n to my window?
Thanks,
Ricky