3.2.0

Link on a column with querystring based on another column from xml data

hi,

I want to display on the 2nd col of my grid (5 columns), a link (template) like href is:
http://www.mysite.com/?id=XXX

with XXX is data from first col

my xml data is:
...
<data>
  <id>12345</id>
  <text>my text</text>
  ...
</data>
...


Thanks for your help.
Lionel.
Lionel
June 16,
Here is the solution :

var link = new Active.Templates.Link; 
link.setAttribute("href", function() { 
    var text = this.getDataProperty("value",0);
    return text; 
}); 

obj.setColumnTemplate(link, 1);
Lionel
June 16,

This topic is archived.

See also:


Back to support forum