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

94
Vistas
How to setup a callback method for Kendo MVC DropDownList programmatically

I'm using a Kendo MVC DropDownList with cascading programmatically. I have my Orders DropDownList as an editor template for the Kendo Grid row. The values in the Orders DropDownList are dependent upon the selected value from the Customer dropdown in the same grid row. The Customer dropdown is a searchable control with no values bound initially.

My grid is set up to invoke a JavaScript method on editing a row, like this:

.Events(e => e
    .Edit("onGridEdit")
    .DataBound("onGridDataBound")
    .Save("onGridSave"))

In my onGridEdit JavaScript method, I read my Customer dropdown like this:

custCtrl.dataSource.read({ text: dataItem.CustomerId });

This will read a unique customer from the DB and binds to Customer dropdown.

Now I would like to get the corresponding list of values in the Orders dropdown based on this selected CustomerId, which is done like this:

// own version of cascade;
orderCtrl.dataSource.read({ customerId: dataItem.CustomerId });

This return might take few seconds; hence I need to set a callback function for this read programmatically so that I can set the selected value for the Order dropdown with the value from the editing row. How can I do it?

about 4 years ago · Juan Pablo Isaza
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