This question is locked. New answers and comments are not allowed.
I can't get my model to update the IncludeInFiling property inside my window. Please help!
function EditFileInclusionWindow(title, source) {
var popup = $('#popupWindow1').data('tWindow');
popup.title(title);
popup.center().open();
}
Html.Telerik().Window() .Name("popupWindow1") .Modal(true) .Width(400) .Height(200) .Buttons(buttons => buttons.Close()) .Draggable(false) .Visible(false) .Content(@<text> <fieldset> <div class="editor-label"> @Html.Label("Exclude the selected companies: ") </div> <br/> <div class="editor-field"> @Html.RadioButtonFor(model => model.IncludeInFiling, false, new { id = "IncludeInFiling_false" }) <label for="IncludeInFiling_false">Yes</label> @Html.RadioButtonFor(model => model.IncludeInFiling, true, new { id = "IncludeInFiling_true" }) <label for="IncludeInFiling_true">No</label> </div> <div> <button type="submit" id="saveBtn1">Save</button> </div> </fieldset> </text>) .Render();$('#saveBtn1').click(function (e) { UpdateFileInclusionIndicator(); $('#popupWindow1').closest('.t-window').data('tWindow').close(); $("#CompanyListingGrid").data("tGrid").ajaxRequest();});function UpdateFileInclusionIndicator() { var jsonData = GetUserSelections(); $.ajax({ url: '@Url.Content("~/Generation/UpdateFileInclusionIndicator")', type: "POST", data: jsonData, contentType: "application/x-www-form-urlencoded", dataType: "html", success: function (json) { window.location = "ReadyQueueCompanyListing?collectorId=" + jsonData.SelectedCollector + "&filingYear=" + jsonData.SelectedFilingYear + "&filingMethod=" + jsonData.SelectedFilingMethod + "&serviceLevel=" + jsonData.SelectedServiceLevel; }, error: function (xhr, ajaxOptions, thrownError) { alert(xhr.status); alert(thrownError); } });}