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

[Solved] Window undefined error

0 Answers 33 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Apatira Lookman
Top achievements
Rank 1
Apatira Lookman asked on 24 Mar 2012, 04:30 PM
Hi,
i can't open window subsequently after the first time. i get editwin is undefined error in firebug console.
here is the code

function PopEditWindow(e) {
    var see = e.toString();
    var url = "@Url.Action(MVC.Price.ActionNames.EditPrice, MVC.Price.Name)?priceId=" + see;
    var test = $('#editpricewindow');
    var editwin = $("#editpricewindow").data("tWindow");
    editwin.ajaxRequest(url);
    editwin.center().open();
    }

 Html.Telerik().Window().Name("editpricewindow")
            .Height(500)
            .Width(700)
            .Modal(true)
            .Title("New Price")
            .Scrollable(false)
            .Buttons(b => b.Close())
            .Visible(false)
            .Render();
Tags
Window
Asked by
Apatira Lookman
Top achievements
Rank 1
Share this question
or