Two links in a column of a header

Hi,

I’m using the 1.6 version of the grid. In this version is it possible to have two different links in a header. I want one text link and one image link in the same column of the header.

The Syntax that i’m using is.



Response.Write “<column width=”“100"” type=""" & FieldType & “”" align="“left”" color="“white”" sort="“na”">" & _

“<![CDATA[<a href=”“javascript:Function1(”"" & Param1& “”"\,""" & Param2& “”")"">" & FieldName & “

Response.Write “<![CDATA[<a href=”“javascript:Function1(’” & Param3& “’\,’” & Param2 & “’)”">"

Response.Write “<img border=”“0"” src="“path/Image.gif”" " & _

“title=”“Click to “”>”





Please suggest me on how to proceed to acheie the functionality?

You can place any content inside grid header, while
a) content described in XML not violates XML rules ( usage of CDATA fully solves this issue )
b) if you are using commas as part of header text - please be sure to escape them ( or define different characters as a default itterator )


Hi,



Thanks for the reply.



Is there any mistake in the syntax mentioned above? I’m not getting the link for the image.


Hi,



The other syntax that i tried.



Response.Write “<column width=”“100"” type=""" & FieldType & “”" align="“left”" color="“white”" sort="“na”">" & _
                 “<![CDATA[" & FieldText & ""


Response.Write ""


Response.Write "<img border=""0"" align=""right"" src=""/path/Image.gif"" " & _
     "title=""Click to "">
"


Response.write "]]>”



Please suggest me the correct syntax to get the two seperate links for text and image in the same header cell.

The same code works fine for me, in both normal and split modes.
Please check attached sample.

The problem can be caused by values used as Param1 - Param3, with current code they must not contains commas.

test4.zip (40 KB)


Hi,



We are unable to open the sample. The sample is throwing errors while opening. Could you please check the attachment and resend?



By using the above code i’m getting the text with link and Image without link. I want both text and image with links performing different functionalities.

Please contact us directly at support@dhtmlx.com - we will send you a sample by email
By using the same js code both elements become a links in the header.