EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: A-K on February 27, 2016, 09:03:10 AM



Title: gotoCell does not work when cell in edit
Post by: A-K on February 27, 2016, 09:03:10 AM
Hey,

I downloaded the latest file for cellediting extension and noticed a change that made my code to stop working.

I have looked at the changes and noticed you have this new code in the gotoCell function:
Code:
var cparam = dg.datagrid('cell');
if (cparam){
var input = dg.datagrid('input', cparam);
if (input){
input.focus();
return;
}
}

This makes the gotoCell not work at all when I have a cell in edit, and now I cant check if the next cell I am going to is valid and worth the end edit of the current cell..

Can you check it out? I have currently removed this code and it now works fine but I am not sure if it will work as you continue to work on this extension.

Thanks.


Title: Re: gotoCell does not work when cell in edit
Post by: jarry on February 28, 2016, 01:34:55 AM
The cellediting datagrid should have only one editing cell. These statements prevent from moving to other cells when a cell is editing.

I cant check if the next cell I am going to is valid and worth the end edit of the current cell..

Could you please describe this issue in more detail?