RadUpload in RadGrid after Browser Refresh

Thread is closed for posting
7 posts, 0 answers
  1. marksweat
    marksweat avatar
    20 posts
    Member since:
    Apr 2007

    Posted 15 Apr 2010 Link to this post

    I've got a radupload control in a radgrid insert/edit dialog. The operation of specifying the file for upload in the insert/edit operation works great. I am able to created new records and update old records in the grid.

    One problem, after I create a new record and the upload operation is complete, the dialog is closed with the grid displayed normally,  if I refresh my browser a new duplicate record is created. This doesn't happen for other radgrids I have with insert/edit operation that don't contain an upload control.

    I see this same issue on the RadUpload demo page in the upload in a grid example. To reproduce this issue, add a new file. After the new record is created, refresh the page and the demo will show a duplicate.

    --Mark
  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 19 Apr 2010 Link to this post

    Hello Mark,

    Are you referring to this example:
    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload

    I just tested it and am not able to replicate the issue. Can you provide exact steps for reproducing the problem?

    Regards,
    Pavel
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. marksweat
    marksweat avatar
    20 posts
    Member since:
    Apr 2007

    Posted 19 Apr 2010 Link to this post

    Pavel,

    That is the correct link.

    I'm using IE 7 and 8 to test this under both Windows 7 and Vista.

    The steps are:

    1. Select the Add new record command.

    2. Select an image, enter a name in the dialog provided in the rad grid and the select the "ok" button. The image upload control is then displayed.

    3. Hit the browser refresh button. Note that there are two duplicate rad grid records for the image just uploaded.

    Here's some screenshots after the steps above, the images LakeSweat2.jpg on page 2 and page 3 of the rad grid.

    --Mark
  5. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 20 Apr 2010 Link to this post

    Hi Mark,

    I was able to replicate the behavior however it seems this is expected. When you hit the refresh button right after you add a record, the browser displays a popup which warns you that you are essentially resubmitting the previous request and thus adding the same record again.

    All the best,
    Pavel
    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.
  6. Hassan Yasir
    Hassan Yasir avatar
    11 posts
    Member since:
    Apr 2010

    Posted 23 Apr 2010 Link to this post

    Still I think it is a bug and it should be fixed :)
  7. marksweat
    marksweat avatar
    20 posts
    Member since:
    Apr 2007

    Posted 23 Apr 2010 Link to this post

    Hassan,

    After thinking about this a bit, I'm not sure they can fix it.

    --Mark
  8. Hassan Yasir
    Hassan Yasir avatar
    11 posts
    Member since:
    Apr 2010

    Posted 24 Apr 2010 Link to this post

    @marksweat:
    I won't disagree with you. But I don't think it is something impossible that actual developers can't solve. The idea of passing sessionID may help. If I know such a way that we can clear uploader's files by using javascript, then it may be possible. But currently it is possible only under progress area's submitting event.

    This control is very nice and easy. I am able to prevent upload from all other postback events except refreshing the page. Anyway lets see what developers do with this issue :)
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017