EasyUI Forum

General Category => General Discussion => Topic started by: 2plus2 on November 06, 2015, 09:22:24 AM



Title: DataGrid :: onSelect versus onClickRow
Post by: 2plus2 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.


Title: Re: DataGrid :: onSelect versus onClickRow
Post by: jarry 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.