column template with guid value

i have this column in a grid:

  <e-grid-column template="#templateDetallesUbicacion" maxwidth="200"></e-grid-column>


this is the template script:

 <script id="templateDetallesUbicacion" type="text/x-template">

    <div>

        <input type="button" class="btn btn-secondary" onclick="VerDetalles(${UbicacionID});" value="Detalles" />

    </div>

</script>


the field " UbicacionID" is a GUID type. I cannot make it work because the function takes the value as a string, but if i put in between '' the resulting html is wrong. Can u help me with that? 


1 Reply

JC Joseph Christ Nithin Issack Syncfusion Team June 30, 2022 12:42 AM UTC

Hi Javier,


  Greetings from Syncfusion support.


  Before proceeding to the solution, we would like you to share the following information, so that we will be able to provide a better solution ASAP.


  • Please share the complete grid rendering code or a simple sample to replicate the issue.
  • Please share a video demo of the issue you are facing.
  • Please share the details how you are calculating the GUID.
  • Please share the Syncfusion package version you are using.


Please get back to us for further details.


Regards,

Joseph I.


Loader.
Up arrow icon