EasyUI Forum
April 26, 2024, 09:31:59 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: onLongClick event for treegrid and grid (and other where onclick exists)  (Read 3822 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« on: January 14, 2018, 10:22:10 AM »

Hello,

I just want to ask if it is possible to add onLongClick event for treegrid and grid plugins?

Thanks!
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: January 15, 2018, 12:23:37 AM »

There is no native longclick event. You have to implement it and attach it to the 'rowEvents' of datagrid.
Code:
$('#dg').datagrid({
rowEvents: $.extend({}, $.fn.datagrid.defaults.rowEvents, {
longclick: function(e){
//...
}
})
})
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!