Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

228
Views
Kendo window data undefined

I have a form, in the javascript onSubmit event i make an ajax call to load a kendo window

Js:

function onSubmit(){

    var window = $("#window").data("kendoWindow");
    window.refresh({
                    url: url
                }).open();
}

View:

@(Html.Kendo().Window() _
.Modal(True) _
.Visible(False) _
.Name("window") _
.Title("Window"))

and this works great, but when I click on a button inside the window and go to the javascript onClick event, if I try to instantiate the window again and access .data("kendoWindow"), I get undefined (not in $("#window")).

function onClickButton(e){
  var window = $("#window").data("kendoWindow"); //undefined in .data("kendoWindow")
      window.refresh({
        url: url
    }).open();
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Don't use the variable named window - this is the name of the global scope.

If this doesn't help, post a full runnable mcve, e.g., in a kendo dojo

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!