CFGRID - click on rows as a link? ( for CF8 )

62 views
Skip to first unread message

Barry Beattie

unread,
Oct 29, 2007, 11:39:08 PM10/29/07
to cfau...@googlegroups.com
what's CFGRID you ask?
http://www.garyrgilbert.com/tutorials/coldfusion/intermediate/cfgrid.cfm


... anyhoo...

I'm trying to find a way to navigate to a page by clicking on one of
the grid rows. I'm not after a column of links, rather the row to
raise an onClick event which I can then call the next page.

the target of each would be the same but I'm wanting to pass a URL
parameter with it (from the underlying query and as a column that has
display="false")


anyone done this? surely it's possible .... yes?

thanx
barry.b

Andrew Scott

unread,
Oct 29, 2007, 11:43:49 PM10/29/07
to cfau...@googlegroups.com
Yes.

In JS use this to get the Grid object then use the docs over at extJS to get
the rowSelection from the Grid.

var asGrid = ColdFusion.Grid.getGridObject('GridTest');

Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273

Reply all
Reply to author
Forward
0 new messages