This is a migrated thread and some comments may be shown as answers.

In in-cell edit mode, grid values do not update when I click a different row

7 Answers 1718 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 27 Feb 2018, 03:22 PM
In in-cell edit mode, grid values do not update when I click a different row.  The update is only triggered when the user hits enter, when clicking outside of the grid, OR by tabbing/clicking to another cell in the same row.  The other examples I've seen don't have this behavior so I'm wondering what I might be doing wrong.  This has been an issue for sometime now and it has to be fixed before going live.

7 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 28 Feb 2018, 06:01 PM
I have been able to duplicate the issue in an isolated state.  Implementing drag and drop reordering (Kendo Sortable) seems to cause this behavior.  Again, the behavior is when you are in an editor, change the value in the editor and click an editor in a different row - you will notice that the value doesn't update.  Is this a documented bug?  What is your suggested workaround?  
0
Konstantin Dikov
Telerik team
answered on 01 Mar 2018, 10:04 AM
Hello Mark,

This is a limitation with implementing drag&drop over editable Grid, because the reordering mechanism interferes with the editing of the Grid. The main problem is that the blur event of editors that is used for changing the model values fires after the row is removed from the DOM (by the sortable widget). However, you can take a look at the following help article, which demonstrates how to overcome that limitation:
If any other questions on this matter arise, do not hesitate to contact us again.


Regards,
Konstantin Dikov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Mark
Top achievements
Rank 1
answered on 01 Mar 2018, 08:33 PM
Adding the data-value-update="input" attribute to the editor did solve the issue of the field not updating but the problem is, it only lets the user enter one keystroke before it takes you out of the editor.  We want users to be able to add a number with 1 decimal place.  How can I overcome that?
0
Konstantin Dikov
Telerik team
answered on 05 Mar 2018, 12:34 PM
Hello Mark,

I have tested the example from the HowTo article and it allows entering multiple digits in the NumericTextBox. Could you please elaborate if you replicate the problem in the examlpe:
Another thing that I could suggest is to render template column with an image with specific class name for example and then use that image (its class to be precise) as a handler of the Sortable:
This should resolve most of the problems and will allow the user to reorder the rows only by using the drag image.


Best Regards,
Konstantin Dikov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Mark
Top achievements
Rank 1
answered on 10 Apr 2018, 07:47 PM

I'm still having issues getting your proposed solution (where it uses the data-value-update='input' attribute) working correctly.  The problem now is:

1.  The editable cell will only allow you to type more than 1 character every other time you access the field.
2.  When it does allow you type more than 1 character it will accept 1.2 but not a 4 character decimal like 10.2

My example for replicating this issue is attached below.

Thanks,

 

Mark

0
Mark
Top achievements
Rank 1
answered on 12 Apr 2018, 12:13 PM
Any ideas?  This has been a problem for a while and I think it should be part of the built in grid functionality.
0
Konstantin Dikov
Telerik team
answered on 12 Apr 2018, 01:05 PM
Hello Mark,

I have tested the attached example and the issue is due to the fact that you are calling the "fetch" method within the "change" event of the dataSource. If you remove the call to the "fetch" method, everything is working as expected:


Regards,
Konstantin Dikov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or