Home › Forums › Guriddo jqGrid JS › Help › onSelectRow delay
Hi,
i would like to fire “onSelectRow” event after a small delay (useful during rows scrolling with up-down keys).
How can i do this?
Thanks
Hello,
Try this (not tested):
onSelectRow : function( rowid) {
setTimeout( function () {
// here your code
}, 500)
}
Regards
Thanks Tony, it works!
In “onSelectRow” event, i would like to distinguish between mouse click (no delay) and key scrolling (with delay, in order to avoid multiple, useless code execution). But in “onSelectRow” no “event” parameter is available.
How can i detect and discriminate the event?
my temporary solution.
function onSelectRowCustom(rowid) {
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS