Author Topic: rowSelect event fired from mouse click or other target  (Read 2859 times)

Mohammed Nayeem

  • Newbie
  • *
  • Posts: 5
    • View Profile
rowSelect event fired from mouse click or other target
« 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;
                    };

Silvanut

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: rowSelect event fired from mouse click or other target
« Reply #1 on: March 29, 2018, 03:04:27 pm »
How can it be done? Can you tell me? I do not

Mohammed Nayeem

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: rowSelect event fired from mouse click or other target
« Reply #2 on: March 29, 2018, 03:37:47 pm »
Wait for an answer from an expert

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: rowSelect event fired from mouse click or other target
« Reply #3 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