Categories | Question details Back To List | ||||||||||||||
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& """)""><b>" & FieldName & "</b></a>" Response.Write "<![CDATA[<a href=""javascript:Function1(\'" & Param3& "\'\\,\'" & Param2 & "\')"">" Response.Write "<img border=""0"" src=""path/Image.gif"" " & _ "title=""Click to ""></a>" Please suggest me on how to proceed to acheie the functionality? Answer posted by Support on Jun 02, 2008 09:01 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 ) Answer posted on Jun 02, 2008 22:14 Hi, Thanks for the reply. Is there any mistake in the syntax mentioned above? I'm not getting the link for the image. Answer posted on Jun 03, 2008 00:08 Hi, The other syntax that i tried. Response.Write "<column width=""100"" type=""" & FieldType & """ align=""left"" color=""white"" sort=""na"">" & _ Response.Write "<a href=""javascript:Function(\'" & Param3 & "\'\\,\'" & Param2 & "\')"">" Response.Write "<img border=""0"" align=""right"" src=""/path/Image.gif"" " & _ Response.write "]]></column>" Please suggest me the correct syntax to get the two seperate links for text and image in the same header cell. Answer posted by Support on Jun 03, 2008 05:07 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. Attachments (1)
Answer posted on Jun 03, 2008 05:43 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. Answer posted by Support on Jun 03, 2008 09:40 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. Attachments (1)
|