EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: frankgao on August 10, 2016, 01:42:25 AM



Title: How to set the select row style for datagrid?
Post by: frankgao on August 10, 2016, 01:42:25 AM
I import the datagrid-cellediting.js extenstion library.
and I set the select rowindex,but the row backcolor not change.


Title: Re: How to set the select row style for datagrid?
Post by: stworthy on August 10, 2016, 06:59:37 PM
Please try this code to enable the row selecting.
Code:
$('#dg').datagrid('enableCellEditing');
$('#dg').datagrid('options').onBeforeSelect = function(){return true;};