Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by santosh on Nov 04, 2008 23:54
open dhtmlx forum
how to add hyperlink in column header

Hi,

I want to add hyperlink in column header.I have used below code,

mygrid.setHeader("<a href="javascript:function()">HeaderName</a>");

But it is not working.

Can u tell what is the exact syntax to be used??
Answer posted by Support on Nov 05, 2008 04:50
The above code must work correctly, you can include any HTML inside header of grid. 
Beware , if you are using commas inside "javascript:function" it may be a problem ( commas used to separater values for different columns ) 
By the way, if you need to implement some kind of custom reaction on click inside header, you can use onHeaderClick event.