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

146
Views
Diálogo de Kendo No se puede hacer clic por segunda vez

Obtuve el siguiente código para mostrar un diálogo, sin embargo, el diálogo no aparecerá en la interfaz de usuario después del primer clic.

 $('#wayneDialog').kendoDialog({ width: '400px', title: $scope.resourceString.Delete_Confirm_Title+ "'"+ name +"'?", closable: true, modal: true, content: $scope.resourceString.Delete_confirm_Content, actions: [ { text: $scope.resourceString.Yes, action: $scope.onDeleteConfirm, primary: true }, { text: $scope.resourceString.Cancel } ] });

No estoy seguro si tengo que hacer algo extra en este caso.

about 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Me lo imaginé. El diálogo de Kendo se inicializaba repetidamente en mi función de llamada. Se cambió el código para inicializar Kendo Dialog solo una vez y luego se actualizó el título y el diálogo antes de llamar a la función Kendo Dialog Open.

about 4 years ago · Santiago Trujillo Report

0

necesitamos destruir el div y agregarlo nuevamente en el evento de cierre.

 $('#wayneDialog').kendoDialog({ width: '400px', title: $scope.resourceString.Delete_Confirm_Title+ "'"+ name +"'?", closable: true, modal: true, content: $scope.resourceString.Delete_confirm_Content, close: function () { if ($('#wayneDialog').data("kendoDialog")) { $('#wayneDialog').data("kendoDialog").destroy(); $('<div id="wayneDialog"/>').appendTo('body'); } return; } actions: [ { text: $scope.resourceString.Yes, action: $scope.onDeleteConfirm, primary: true }, { text: $scope.resourceString.Cancel } ] });
about 4 years ago · Santiago Trujillo Report

0

Establecer la opción visible: true explícitamente debería hacer el truco:

 $('#wayneDialog').kendoDialog({ visible: true, width: '400px', title: $scope.resourceString.Delete_Confirm_Title+ "'"+ name +"'?", closable: true, modal: true, content: $scope.resourceString.Delete_confirm_Content, actions: [ { text: $scope.resourceString.Yes, action: $scope.onDeleteConfirm, primary: true }, { text: $scope.resourceString.Cancel } ] });
about 4 years ago · Santiago Trujillo 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!