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

RadUpload in RadGrid after Browser Refresh

6 Answers 149 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
marksweat
Top achievements
Rank 1
marksweat asked on 15 Apr 2010, 07:16 PM
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

6 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 19 Apr 2010, 11:24 AM
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.
0
marksweat
Top achievements
Rank 1
answered on 19 Apr 2010, 04:09 PM
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
0
Pavel
Telerik team
answered on 20 Apr 2010, 09:22 AM
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.
0
Hassan Yasir
Top achievements
Rank 1
answered on 23 Apr 2010, 10:45 PM
Still I think it is a bug and it should be fixed :)
0
marksweat
Top achievements
Rank 1
answered on 24 Apr 2010, 12:32 AM
Hassan,

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

--Mark
0
Hassan Yasir
Top achievements
Rank 1
answered on 24 Apr 2010, 09:47 AM
@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 :)
Tags
Upload (Obsolete)
Asked by
marksweat
Top achievements
Rank 1
Answers by
Pavel
Telerik team
marksweat
Top achievements
Rank 1
Hassan Yasir
Top achievements
Rank 1
Share this question
or