:: Forum >>

Grid - click a row or column

Hello,

I have been searching everywhere, but where can I define a link when a row or column gets clicked in a grid?
I'm currently populating the grid from a database.

Thanks!
John P.
Thursday, July 26, 2007
Some additional information, I would like to create a link in a column that will pick up the ID from the first column

example grid:
ID | TITLE | DATE MODIFIED


The title column should get a link like: detailview.php?id=(ID_FROM_COLUMN_0)

Thanks a lot!
John P.
Thursday, July 26, 2007
http://www.activewidgets.com/aw.ui.grid/cell-link.html

var myLinks = function(column, row){
return "detailview.php?id=" + this.getCellText(0, row);
}

obj.setCellLink(myLinks);
obj.setCellTemplate(new AW.Templates.Link, 1); // column-1
Alex (ActiveWidgets)
Thursday, July 26, 2007
Thank you very much!, that worked perfectly!
John P.
Friday, July 27, 2007

This topic is archived.


Back to support forum

Forum search