Hello,
I am displaying popup window from parent displaying a partial view. When the partial view loads my parent window URL is already changing to Controller/Action for partialview. When i submit the partial view i do not want to refresh the parents window. Submitting partial view should just Close Pop up window. How can i achieve this. parent window method to Show popup window code is like this
var direction = "ObjectDetail/Index";
var wnd = $("#ObjectDetail").data("kendoWindow");
if (wnd) {
wnd.refresh({
url: direction,
data: { id: item.id }
});
wnd.element.css("visibility", "");
wnd.center();
wnd.open();
}
At this Point when child window Pops up parent window URL is changing to this new URL.
The partial view has beginform
@using (Html.BeginForm("SubmitFormCollection", "ObjectDetail"))
{
and on submit the actionresult i have to Redirect to parent URL again and this refreshes parent view
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult SubmitFormCollection(ControlsContext selModel, FormCollection formCollection)
{
//do something
return RedirectToAction("Index", "ObjektActivity"); }
How can i submit the popup window and Close it without refreshing parent.
Anamika
I am displaying popup window from parent displaying a partial view. When the partial view loads my parent window URL is already changing to Controller/Action for partialview. When i submit the partial view i do not want to refresh the parents window. Submitting partial view should just Close Pop up window. How can i achieve this. parent window method to Show popup window code is like this
var direction = "ObjectDetail/Index";
var wnd = $("#ObjectDetail").data("kendoWindow");
if (wnd) {
wnd.refresh({
url: direction,
data: { id: item.id }
});
wnd.element.css("visibility", "");
wnd.center();
wnd.open();
}
At this Point when child window Pops up parent window URL is changing to this new URL.
The partial view has beginform
@using (Html.BeginForm("SubmitFormCollection", "ObjectDetail"))
{
and on submit the actionresult i have to Redirect to parent URL again and this refreshes parent view
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult SubmitFormCollection(ControlsContext selModel, FormCollection formCollection)
{
//do something
return RedirectToAction("Index", "ObjektActivity"); }
How can i submit the popup window and Close it without refreshing parent.
Anamika