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

279
Views
Plantilla de título (no se puede enviar el valor ${Key} a la función

Tengo una rejilla EJ2. Definí una plantilla de título. Estoy tratando de llamar a una función de Javascript pero está fallando porque ${key} es una cadena con espacios. Ejecuté una inspección (ver la imagen) y la llamada falla en los espacios. Intenté agregar comillas pero tampoco funcionan. ¿Hay algún truco para obtener este valor en la función JS?

ingrese la descripción de la imagen aquí

 <script id="captiontemplate" type="text/x-template"> ${if(field === "DistrictTypeName")} <strong>District Type:</strong>&nbsp;${key}&nbsp; ${/if} ${if(field === "DistrictName")} <table> <tr> <td style="width:500px"> <strong>District:</strong>&nbsp; ${key} </td> <td style="width:200px"> <i onclick="javascript:ShowEditDistrictModal(${key}, 1)" class="viewIcon" title="View" /> <i class="fa fa-1x fa-eye"></i> </td> <td style="width:200px"> <i onclick="javascript:ShowEditDistrictModal(${key}, 0)" class="editIcon" title="Edit" /> <i class="fa fa-1x fa-edit"></i> </td> </tr> </table> ${/if} </script>

about 4 years ago · Santiago Gelvez
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!