EasyUI Forum
April 29, 2024, 08:51:14 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: DataGrid :: onSelect versus onClickRow  (Read 9552 times)
2plus2
Jr. Member
**
Posts: 75


View Profile
« on: November 06, 2015, 09:22:24 AM »

Howdy...

I'm looking for clarification on the difference between onSelect and onClickRow with the Datagrid. What are the differences between why these two events fire?

onSelect seems to fire before the onClickRow, but both fire when the row is clicked. Is the onSelect tied into the row check box too?

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


View Profile Email
« Reply #1 on: November 06, 2015, 07:38:06 PM »

The 'onClickRow' event fires only when the user click a row. The 'onSelect' event fires when a row is selected, no matter clicking it or calling 'selectRow' method on it. Please notice that calling 'selectRow' method does not trigger the 'onClickRow' event to fire.
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!