This is a migrated thread and some comments may be shown as answers.

problem with set new url in window

1 Answer 108 Views
Window
This is a migrated thread and some comments may be shown as answers.
vladimir
Top achievements
Rank 1
vladimir asked on 31 Oct 2014, 10:57 AM
I load window:
@(Html.Kendo().Window().Name("windowCreateWO")
          .Title("Step One - Choose vendors for unassigned work").Modal(true).Visible(false).Height(480).Width(870)
          .LoadContentFrom("ChooseVendors", "WorkOrders", new { inspectionId = @Model.Id }))                   //this url №1

then loaded new content refresh window:

window.refresh({
                url: "@Url.Action("CreateWorkOrder", "WorkOrders", new {inspectionId = @Model.Id})",  //this url №2
                type: "GET"
            });

after the close of the page and I need the user to re-open the page I download content by url №1, I need to reset the url to the original state. Advice please.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 04 Nov 2014, 09:35 AM
Hello,

You can call the refresh method without passing the URL in order to reload the initial content e.g.
window.refresh({
    url: "@Url.Action("CreateWorkOrder", "WorkOrders", new {inspectionId = @Model.Id})"//this url №2
    type: "GET"
});
 
window.one("close", function () {
    window.refresh();
});


Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Window
Asked by
vladimir
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or