EasyUI Forum
May 25, 2024, 01:45:35 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: datagrid getSelections and enableCellEditing conflict  (Read 11651 times)
Rinat
Newbie
*
Posts: 31


View Profile
« 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.



Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 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.
Logged
Rinat
Newbie
*
Posts: 31


View Profile
« Reply #2 on: March 15, 2016, 04:34:21 AM »

Thanks.
And I have one question.
How I can disable cell editing?
Logged
Rinat
Newbie
*
Posts: 31


View Profile
« Reply #3 on: March 15, 2016, 09:36:28 AM »

Uff, disableCellEditing

But, when I call disableCellEditing and clicked on row my app is freezing
Logged
Rinat
Newbie
*
Posts: 31


View Profile
« Reply #4 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
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!