ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: Mohammed Nayeem on March 28, 2018, 10:13:32 am

Title: rowSelect event fired from mouse click or other target
Post by: Mohammed Nayeem on March 28, 2018, 10:13:32 am
Hi,

i want to know that rowSelect event from which it has been fired from mouseclick or manual selection from code.

Code: [Select]
  obj.rowSelect = function (evt, ui) {
                        console.log(evt);
                        if(evt is from mouse click)
                                   do work1;
                       else
                                 do work 2;
                    };
Title: Re: rowSelect event fired from mouse click or other target
Post by: Silvanut on March 29, 2018, 03:04:27 pm
How can it be done? Can you tell me? I do not
Title: Re: rowSelect event fired from mouse click or other target
Post by: Mohammed Nayeem on March 29, 2018, 03:37:47 pm
Wait for an answer from an expert
Title: Re: rowSelect event fired from mouse click or other target
Post by: paramvir on April 02, 2018, 05:02:53 pm
Sorry to disappoint you but it I don't see any way to differentiate between them in rowSelect event.

May be you need to listen to cellClick event.

https://paramquery.com/api#event-cellClick