Hi,
I have a Kendo grid in which a Kendo window is opened when you click on each row. The code is:
<% Html.Kendo().Grid<EvaluationsQuestionsEvaluationVersionGridViewModel>(Model.VersionsGridModel)
.Name("Versions")
......
.Columns(columns =>
{
columns.Bound(s => s.VersionId)
.Width(180);
columns.Bound(s => s.OrganizationTypeName)
.Width(180);
...... columns.Command(commands =>
{
commands.Custom("Copy").Click("copyEvaluationVersion");
commands.Edit();
})
<% Html.Kendo().Window()
.Name("CopyVersion")
.Title()
.Content(() =>
{ %>
...... <input type="submit" value="Submit" />
<input type="hidden" id="copyEvaluationVersionId" name="copyEvaluationVersionId" value="<%= ViewData["evaluationVersionId"] %>" />
<% } %>
<%})
.Draggable(true)
......
$("#CopyEvaluationSubmit").click(function (e) {
var yearCombo = $("#copyToYear").data('kendoDropDownList');
SetRingCookie('ck_year', yearCombo.text(), { path: '/' });
return true;
});
function copyEvaluationVersion(e) {
$("#CopyVersion").data("kendoWindow").open();
$("#copyToYear").data('kendoDropDownList').read();
}
I want to know how to find the parent grid Name("Versions") in $("#CopyEvaluationSubmit").click(function (e), which is invoked when submit button is clicked in Kendo window. Thanks.