Launch a URL

10 views
Skip to first unread message

Brendon Upson

unread,
Oct 29, 2010, 1:06:53 AM10/29/10
to MyTableGrid
Hi,

Does anyone know how to click on a cell to launch a URL?

I've found this works:
options : {
width: '800px',
/* title: 'Server Log',*/
pager: {
pageParameter : 'page'
},
onCellFocus : function(element, value, x, y, id) {
alert('here');
}
},

but it's not very intuitive for users. Standard anchor tag behaviour
with a hand cursor would be great.

Thanks,

Brendon.

Brendon Upson

unread,
Oct 29, 2010, 2:47:02 AM10/29/10
to MyTableGrid
I was able to achieve a near enough result by embedding anchor tags in
to the property, eg

lastname : '<a ...>Smith</a>'

chris

unread,
Nov 3, 2010, 9:56:21 AM11/3/10
to MyTableGrid
I handle URL's as a column type, as far as mtg goes, it is still seen
as simple text, but I render it (in my case I use RoR) using
auto_link, that transforms all URLs and email addresses as clickable
links... and they are seen as such, so users know it's clickable.

Works pretty good so far.

Regards,
Chris
Reply all
Reply to author
Forward
0 new messages