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

Refresh RadGrid after insert causes another insert

7 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 12 Jul 2013, 01:04 PM
Duplicate insert problem.

I insert an item and after the insert successfully happens I call:

RadGridOperators.MasterTableView.IsItemInserted = false;
e.Canceled = true;
RadGridOperators.MasterTableView.ClearEditItems();
RadGridOperators.MasterTableView.Rebind();

The edit form does in deed close but if I hit the refresh button on the web browser the insert happens again (EVEN THOUGH THE EDIT FORM IS NOT OPEN). How can I avoid this behavior??

7 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 17 Jul 2013, 08:26 AM
Hi Ryan,

I am afraid it is difficult to figure out your exact scenario. Where do you execute this logic? Why are you setting e.Canceled=true? Can you replicate this behavior with any of our demos?
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx

Please provide us the exact steps to reproduce the issue or open a support ticket to send us a very basic sample runnable web site demonstrating the erratic behavior. Thus, we will be able to further analyze the problem and provide a proper solution.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sebastian
Top achievements
Rank 2
answered on 16 Sep 2013, 08:31 PM
I have the same issue. 
I insert a record, move to another page, go back to the page with grid and it inserts a record on its own.

0
Eyup
Telerik team
answered on 17 Sep 2013, 10:20 AM
Hello Sebastian,

As stated in my previous post, we are unable to replicate the issue locally or with our demos. Thus, we will need  a sample runnable web site demonstrating the problematic behavior. Please open a support ticket to send us a sample application.

Thank you for your cooperation in advance.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sebastian
Top achievements
Rank 2
answered on 17 Sep 2013, 02:58 PM
So basically you have not provided any help in addition to responding 18 hours after I asked the question.  I actually opened a support ticket few minutes after I posted a question on this forum.  Cannot you replicate the behavior, have you even tried?  Do I now have to wait another day until you will post an answer?







0
Eyup
Telerik team
answered on 18 Sep 2013, 11:25 AM
Hello Sebastian,

I will send you a working sample in your ticket 737512. Please note that support tickets response time limit is 24 hours.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sebastian
Top achievements
Rank 2
answered on 18 Sep 2013, 03:16 PM
Again, I can live with 24 hours if you your answer was a helpful one.  Your product is not free.

Check my post on the other thread we have open.

Best
0
Eyup
Telerik team
answered on 19 Sep 2013, 11:57 AM
Hello Sebastian,

I used the credentials to log in the site. I suggest you to continue our conversation in the ticket (737512).

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Ryan
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Sebastian
Top achievements
Rank 2
Share this question
or