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

220
Views
Datos de la ventana de Kendo indefinidos

Tengo un formulario, en el evento javascript onSubmit hago una llamada ajax para cargar una ventana de kendo

js:

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

Vista:

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

y esto funciona muy bien, pero cuando hago clic en un botón dentro de la ventana y voy al evento javascript onClick, si intento instanciar la ventana nuevamente y acceder a .data("kendoWindow") , obtengo undefined (no en $("#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

No use la window nombre de variable: este es el nombre del alcance global.

Si esto no ayuda, publique un mcve ejecutable completo, por ejemplo, en un dojo de kendo

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!