Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

221
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda