Using Data from a specific cell

Hey Guys,

I have a grid built up and connected to my SQl-Database.

In one  Column I'm displaying Email-Addresses (as String) now i want to click on a Column cell an it should open  an Outlook pop up with the Adress filled in. I tried it with an additional JavaScript Code which uses an recorddoubleclick but i don't know who I can bring the Email-Address in there.

Any help?



1 Reply

RS Rajapandiyan Settu Syncfusion Team February 4, 2022 04:46 AM UTC

Hi Paul, 

Thanks for contacting Syncfusion support. 

You can achieve your requirement by using columnTemplate feature. In which you can render hyperlink to navigate to Mail box. 



<e-grid-column field="EmailID" headerText="EmailID" template="#template" width="150" ></e-grid-column>   
 
<script id="template" type="text/x-template"> 
    <div class="url"> 
         <a rel='nofollow' href=mailto:${EmailID}}>${EmailID}</a>  // render the hyperlink 
    </div> 
</script> 



Please get back to us if you need further assistance. 

Regards, 
Rajapandiyan S 


Loader.
Up arrow icon