Refresh RadGrid after insert causes another insert

8 posts, 0 answers
  1. Ryan
    Ryan avatar
    7 posts
    Member since:
    Jun 2011

    Posted 12 Jul 2013 Link to this post

    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??
  2. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 17 Jul 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sebastian
    Sebastian avatar
    10 posts
    Member since:
    Sep 2011

    Posted 16 Sep 2013 Link to this post

    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.

  5. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 17 Sep 2013 Link to this post

    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.
  6. Sebastian
    Sebastian avatar
    10 posts
    Member since:
    Sep 2011

    Posted 17 Sep 2013 Link to this post

    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?







  7. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 18 Sep 2013 Link to this post

    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.
  8. Sebastian
    Sebastian avatar
    10 posts
    Member since:
    Sep 2011

    Posted 18 Sep 2013 Link to this post

    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
  9. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 19 Sep 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017