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

Something is wrong with the Online Demo

2 Answers 49 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 14 Feb 2009, 11:17 AM
hi

There is something wrong with the online demo raduploadinajaxifiedgrid .

Ok, here is what i did and found out. Firstly, I insert a picture say a Dog. No problem, insert fine.

Next i click edit on the Mountain.jpg and i did not do anything or change any picture and click the update button.

Guess what? The mountain picture has been updated as a dog picture.

Can you please rectify your demo ASAP as i need you example. Thanks

2 Answers, 1 is accepted

Sort by
0
L
Top achievements
Rank 1
answered on 14 Feb 2009, 11:37 AM
hi

And also, if you put a break point at the and run the apps. you will see that there is a lot of looping as you press the F11 key. Please also rectify this and let me know asap as i need your example. Thanks

Protected

 

Sub radGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound

 

 

If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then

 

 

Dim upload As RadUpload = DirectCast(e.Item.FindControl("RadUpload1"), RadUpload)

 

RadAjaxPanel1.ResponseScripts.Add(

String.Format("window['UploadId'] = '{0}';", upload.ClientID))

 

 

End If

 

0
Accepted
Genady Sergeev
Telerik team
answered on 17 Feb 2009, 02:07 PM
Hi Lui Nai Wah,

Thank you for your report. Indeed, there is a bug with the UploadInAjaxifiedGrid demo when Update or empty Insert are invoked. The problem seems to be that the session is not being reset after insert, so when you make an empty Update, the previous inserted value is used. Here is what you could do: reset the session filed (DataCS or DataVB) before invoking InitializeParams method. For your convenience I have attached the fixed version of the demo. In addition I have added 300 Telerik points to your account for the report.

With respect to your second question:

Unfortunately we are not able to rectify the SessionDataSource, but you could use Step Out (ctrl + shift) to escape from loops while debugging.


Kind regards,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
L
Top achievements
Rank 1
Answers by
L
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or