Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Nancy on Jun 24, 2008 23:45
open dhtmlx forum
First column as link

Hi,

I defined first column as link. When I click on the column it loads another gird where the first column should not have hyperlink. My syntax is given below:

for index =0 to 1
if xindex=0 then
Response.Write "<column width=""100"" type=""link"" align=""left"" color=""white"" sort=""na"">" &_
"<![CDATA[<a href=""javascript:Sort(0)"">" & Temp & "</a>]]></column>"
else
Response.Write "<column width=""100"" type=""ro"" align=""left"" color=""white"" sort=""na"">" &_
"<![CDATA[<a href=""javascript:Sort(0)"">" & Temp & "</a>]]></column>"
end if
next
for index =0 to 1
if bool then
Response.Write "<row><cell><![CDATA[" & Temp & "^javascript:Next(""" & Value1 & """, """ & Value2& """,""" & Value3& """,""" & Temp1 & """);^_self]]></cell>"
else
Response.Write "<row><cell><![CDATA[<font color=""black"">" & sTemp & "</font>]]></cell>"
end if
Response.Write "<cell><![CDATA["& sTemp1 & "]]></cell>"    
Response.write "</row>"
next

My Problem here is that when I click on first column the grid loads again with data but the first column this time will not have hyperlink so that I cannot click on the first column. With my code I am not able to click but an underline appears in FireFox and IE7 which ceates an impression that we can click.It is working fine in IE6. Please let me know how to proceed.    I dont want that underline to appear.    
Answer posted by Support on Jun 25, 2008 02:43
Your second grid still have the column type as link and has href part in XML data , so grid renders it as HTML link , which marked by underline.
If you not need the link funcitonality in second grid, just not use link type in grid configuration.
Answer posted by Nancy on Jun 25, 2008 03:17

Can you please be more elaborative?

I am loading the same page again so i use the same code which defines first column as link

Answer posted by Support on Jun 25, 2008 10:07
If you define the column as "link", grid will render the values as HTML links, so the values in such column would be hyperlinked.

>>where the first column should not have hyperlink
If you not want to have hyperlinks in a column why don't change the column type to "ro" or any similar one?
You need
a) change column type
or
b) specify directly at cell level, that data must not be rendered as hyperlink
    Response.Write "<row><cell type="ro"><![CDATA[" & Temp