EasyUI Forum

General Category => Bug Report => Topic started by: Rinat on March 14, 2016, 05:19:29 AM



Title: datagrid getSelections and enableCellEditing conflict
Post by: Rinat on March 14, 2016, 05:19:29 AM
Hello, I have one bug:

if my rows is editable and I have this code:
Code:
    $('#data').datagrid('enableCellEditing').datagrid('gotoCell', {
        index: 0,
        field: 'id'
    });
Then
Code:
$('#data').datagrid('getSelections');
is not work and return empty data.





Title: Re: datagrid getSelections and enableCellEditing conflict
Post by: jarry on March 14, 2016, 09:31:42 AM
You have enabled cell editing. The row selecting is disabled so you can not call getSelections method to get the selected rows. Please call 'cell' method to get the current cell.


Title: Re: datagrid getSelections and enableCellEditing conflict
Post by: Rinat on March 15, 2016, 04:34:21 AM
Thanks.
And I have one question.
How I can disable cell editing?


Title: Re: datagrid getSelections and enableCellEditing conflict
Post by: Rinat on March 15, 2016, 09:36:28 AM
Uff, disableCellEditing

But, when I call disableCellEditing and clicked on row my app is freezing


Title: Re: datagrid getSelections and enableCellEditing conflict
Post by: Rinat on July 06, 2016, 07:08:20 AM
If I have checkbox in my grid,
Code:
    {field: 'ck', checkbox: true},
And click on checkbox, my grid freeze too