dhtmlxgrid cell type 'link' : onclick javascript function

Hi,



Is there a way to specify an onclick javascript function to the link when I have the cell type as ‘link’ ?



Thanks,

Nishan


Hello,


You can try to use something similar to the next (function call instead of url):


Link Title^javascript:someFunction()

Hi,

actually I need to specify a link in href and also an onclick.

Any pointers ?

Thanks,
Nishan

Hi,

I changed the dhtmlxgrid_excell_link.js to include onclick js function as well.

Now I can specify the onclick function as the last field in ‘^’ delimited string.
Attaching file, please review.

Thanks,
Nishan


dhtmlxgrid_excell_link.js.zip (772 Bytes)

Code modification will not cause any side effects and will work correctly as expected.
By the way, package contains “sources” folder with not-compressed code, which is more suitable for modification than compressed one.