:: Forum >> Version 2 >>

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.Link3);
obj.setCellLink(function(cr){ 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
Friday, July 13, 2007
In this case you can just inject html string instead of using Link template -

obj.setCellText("<a href='...'>...</a>,<a href='...'>...</a>...");
Alex (ActiveWidgets)
Friday, July 13, 2007
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.
Friday, July 13, 2007
Hello people,

well, i use this code :
var milink = new AW.Templates.Link;
myGrid.onCellClicked = function(eventcolumnrow){   
alert(myGrid.getdataDkcol()); };
and work, try y tell me


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

This topic is archived.

Back to support forum

Forum search