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

Error when using RadAsyncUpload in RadGrid

4 Answers 58 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 04 Oct 2016, 05:58 PM

Hi all,

I have a RadAsyncUpload inside a RadGrid, all of which is inside a RadWizard. These controls are in a user control that is loaded dynamically by the content page in a placeholder.

Whenever I go into Add or Edit mode in my RadGrid, the RadAsyncUpload does not render and I get the following error in my JS console

(see attachment error1.png)

Is there a known issue with using RadAsyncUploads in RadGrids, or a specific way to go about it? 

I've tried mimicking this demo but I get the same error. https://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultvb.aspx?product=asyncupload

Any help is greatly appreciated!

Chris

4 Answers, 1 is accepted

Sort by
0
Ken
Top achievements
Rank 1
answered on 04 Oct 2016, 05:59 PM
Note, in the screenshot above, the RadAsyncUpload should render under the "C.V" column, but nothing appears.
0
Anton
Telerik team
answered on 07 Oct 2016, 08:46 AM
Hi Chris,

I attached you a sample project where AsyncUpload - Integration with Ajaxified RadGrid demo is isolated, and the RadAsyncUpload is rendered.

In order the project to run correctly please add reference to Telerik.Web.UI.dllTelerik.Web.UI.Skins.dllTelerik.Web.Design.dll. Also place the Telerik.mdf and Telerik_log.ldf in the App_Data folder of the project.

Regards,
Anton
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Ken
Top achievements
Rank 1
answered on 07 Oct 2016, 11:45 AM

Hi Anton,

Thanks for your reply. I actually ended up rebuilding the screen and removed the AsyncUpload from the RadGrid. 

I think my problem is actually my use of RadAjaxManagerProxy and my AjaxSettings. I am doing registering some startup scripts after the grid enters edit mode, and that's when the error comes up.

I think it may be related to this: http://www.telerik.com/forums/error-uncaught-typeerror-cannot-read-property-'ajaxrequest'-of-null

So I'm checking out that demo to see if it will help, as I am continuing to see that JS error in other areas in my application.

Thanks,
Chris

0
Anton
Telerik team
answered on 10 Oct 2016, 10:22 AM
Hello Chris,

We'll stay in touch if you experience any further issues.

Regards,
Anton
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
AsyncUpload
Asked by
Ken
Top achievements
Rank 1
Answers by
Ken
Top achievements
Rank 1
Anton
Telerik team
Share this question
or