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

[Solved] Double inserts when Enter key pressed

3 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike Labadie
Top achievements
Rank 1
Mike Labadie asked on 09 Jun 2010, 10:17 PM
Hi,

While trying to use the Insert button with the inline grid editing functionality, I'm getting duplicate entries being created.  The error occurs when I tab to the Insert button and press Enter after entering the field values.  I was able to recreate the error on the online demos: http://demos.telerik.com/aspnet-mvc/Grid/EditingServerSide

I do not get this error when I click the Insert button using the mouse after entering field values.

Is there a setting I'm missing, or is this a known issue?  I'm using Internet Explorer 8.  Thanks for your help.

Mike

3 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 10 Jun 2010, 08:20 AM
Hello Mike Labadie,

I reproduced the problem and I confirm it was a bug at our end. Fortunately fixing it is simple:
  1. Open telerik.grid.editing.js
  2. Find the following line
    $(':input', grid.element).live('keydown', function(e) {
  3. Replace it with
    $(':input:not(.t-button)', grid.element).live('keydown', function(e) {
  4. Save the file and use it in your project

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Mike Labadie
Top achievements
Rank 1
answered on 10 Jun 2010, 02:05 PM
That took care of it.  Thanks for your help.

Mike
0
Kev
Top achievements
Rank 1
answered on 27 Jul 2011, 07:10 PM
I am having this issue as well with 2011.Q2.712 release, but couldn't make the quick fix as I couldn't find the string to change. Is there a simiar fix for 2011.Q2.712?

Thanks.
Tags
Grid
Asked by
Mike Labadie
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Mike Labadie
Top achievements
Rank 1
Kev
Top achievements
Rank 1
Share this question
or