problem with set new url in window

2 posts, 0 answers
  1. vladimir
    vladimir avatar
    4 posts
    Member since:
    Oct 2014

    Posted 31 Oct 2014 Link to this post

    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.
  2. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 04 Nov 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top