3.2.0

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.
July 26,
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.
July 26,
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)
July 26,
Thank you very much!, that worked perfectly!
John P.
July 27,

This topic is archived.

See also:


Back to support forum