3.2.0

Please help! setCellLink (I am blocked)

Hello all... I explain my problem.

I have a grid with a column where the value must be hyperlinked.

I use
obj.setCellTemplate(new AW.Templates.Link, 3);
obj.setCellLink(function(c, r){ return "mysite.com?value=" + myCells2[r][3]; }, 3); 
)


No problem for that, the value of the cell is inserted at the end of my url, but in my second page I use another grid.....

My problem is in the cell, the text is separate by comma... When I put a hyperlink on this value, all the cell are hyperlinked. But I want to link every words as a different url.

Any help is apreciate
Angel
July 13,
In this case you can just inject html string instead of using Link template -

obj.setCellText("<a href='...'>...</a>,<a href='...'>...</a>...");
Alex (ActiveWidgets)
July 13,
Thanks for reply but the data is loaded by php (sql table) and I can't tell how many link is needed...

The line one can have 5 words and the line two can have 10 words.
Angel
July 13,
Hello people,

well, i use this code :
var milink = new AW.Templates.Link;
                        milink.setAttribute("target", "_new");
                        myGrid.setCellTemplate(milink,0,0);
                        myGrid.setCellLink("http://www.google.com", 0, 0);
                        myGrid.onCellClicked = function(event, column, row){   
                             alert(myGrid.getdataDkcol()); };


and work, try y tell me

bye

OJ Carrillo - maat
July 18,
Like Alex said, when you build your table server-side, wrap the links in HTML.
Justin
July 19,

This topic is archived.

See also:


Back to support forum