:: Forum >> Version 1 >>

more than one link per row

More information on this topic is available in the documentation section: /active.controls.grid/data-link.html.

Is it possible to set more than one link to a row?

Example:
The cells in column 2 and 4 should be linkable with different links
I vary the code below in many constellations to find a solution, but no luck.

Both links are "http://www.yahoo.de" instead of first link is "http://www.google.de" and the second is "http://www.yahoo.de".

Data:
var myData = [
  [
"Name""Homepage""Date""Something else""http://www.google.de""http://www.yahoo.de"],
 
Source:
var obj = new Active.Controls.Grid;

  
obj.setColumnTemplate(new Active.Templates.Link1);
  
obj.setColumnTemplate(new Active.Templates.Link3);
  :
  :
  :
  
obj.setDataProperty("link", function(ij){return myData[i][4]});
  
obj.setDataProperty("link", function(ij){return myData[i][5]});
  :
  :
  
document.write(obj);
 
Can anybody help?
Thorsten
Wednesday, December 21, 2005
Check this post:
/javascript.forum.2331.8/creating-a-link-based-on.html
Carlos
Wednesday, December 21, 2005



This topic is archived.

Back to /active.controls.grid/data-link.html

Documentation:

Forum search