OnClick and OnDoubleClick

17 views
Skip to first unread message

Ronan

unread,
Oct 25, 2010, 6:45:20 AM10/25/10
to MyTableGrid
Hi,

For some types of users I want them to be able to use the TableGrid in
a very basic fashion - no editing etc. For these users is there a
simple way that I can catch the OnClick event when they single click
on a row and the double click when they double click on a row?

Apologies in advance if this has already been addressed but I could
not find a reference to it.

Thanks in advance.

Ronan

Pablo Aravena

unread,
Oct 25, 2010, 8:50:12 AM10/25/10
to mytab...@googlegroups.com
Hi Ronan

There is an onCellFocus handler you can use, for example:

var tableModel = {
options : {
onCellFocus : function(element, value, x, y, id) {
}
}
}

About the double click I think there is not an easy way for doing that
maybe there is another solution depending on what you want to
accomplish.

Have an excellent day
and don't forget to support my work ;-)

Saludos
Pablo

> --
> You received this message because you are subscribed to the Google Groups "MyTableGrid" group.
> To post to this group, send email to mytab...@googlegroups.com.
> To unsubscribe from this group, send email to mytablegrid...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mytablegrid?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages