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

[Solved] Duplicate Values created in Client Detail Template

6 Answers 180 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.
Joe
Top achievements
Rank 2
Joe asked on 13 Apr 2011, 08:37 PM
I'm using Q1 2011 and have built a grid with Client Detail Template with a Grid in a Tab for details.  The grid is editable.  Whenever I do an insert and press Enter, the grid creates two entries.

I found the issue below, which sounds similar, but the solution won't work because the telerik.grid.editing.js is different.

http://www.telerik.com/community/forums/aspnet-mvc/grid/double-inserts-when-enter-key-pressed.aspx

Clicking the update button works fine and creates only a single entry, as expected, but the problem occurs when pressing the Enter key in the edit template.

Joe

6 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 14 Apr 2011, 09:02 AM
Hi Joe,

I'm afraid that I'm unable to recreate the described behavior locally. Could you please provide a small runnable sample in which it can be observed?

All the best,
Rosen
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
Joe
Top achievements
Rank 2
answered on 15 Apr 2011, 01:16 AM
Hi Rosen,

I've attached a project that duplicates the error.  It's a Grid for editing Customers, with a Detail View containing a tab holding another grid of orders for that customer.  I only needed one tab to reproduce the problem, but the actual implementation contains more tabs and the problem occurs on each subsequent tab containing a grid.  Please follow these steps to reproduce:

1. When the application runs, you'll see the main grid.  Click the Insert button, type in a Name, and press the Enter key.
2. Observe that the grid functions normally and there is only one customer entry.  This is correct and what I expected.
3. Next, click the '+' icon to open the details view.  You'll see an Orders tab.
4. Click the Insert button on the Orders tab and type a Description, and press the Enter key.

Note: Don't click the Save button, because you won't see the problem.  The problem only occurs when you press Enter.

5. Observe that two items are added to the list.  It should have been just one.

Thanks,

Joe
0
Accepted
Rosen
Telerik team
answered on 15 Apr 2011, 08:43 AM
Hi Joe,

Thank you for the additional details and sample project. Indeed, you are correct in your observation. However, we have managed to address this issue and I'm attaching an internal build which contains the fix. I have also updated your telerik points.

Regards,
Rosen
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
Joe
Top achievements
Rank 2
answered on 15 Apr 2011, 04:03 PM
That works. Thank you.

Joe
0
Kev
Top achievements
Rank 1
answered on 27 Jul 2011, 07:06 PM
Hi Rosen,

Is there a simiar fix for Q2.712? I am still encountering this issue with the latest MVC release of July 12.

Cheers!
0
Rosen
Telerik team
answered on 28 Jul 2011, 07:06 AM
Hi Kev,

I'm afraid that I'm unable to recreate the same behavior using the latest release. Are you able to observe the same issue using the project attached in this thread and our latest build? If not maybe you could provide a sample in which it can be observed.

All the best,
Rosen
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

Tags
Grid
Asked by
Joe
Top achievements
Rank 2
Answers by
Rosen
Telerik team
Joe
Top achievements
Rank 2
Kev
Top achievements
Rank 1
Share this question
or