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

RadUpload not finding files with Radajaxmanager

2 Answers 91 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 03 Jan 2012, 04:03 PM
Hello
I have a radupload inside radgrid as an itemtemplate. The uploader is used to save icon image in database along with other details. The grid has a checkbox whose autopostback is set on for checking checkChanged event accordingly. I have used radajaxmanager so that the page doesnot post back. But i face a problem when i try to save the uploaded image icon using radtoolbarbutton. Uploaded file show 0 count when i try to save the same as the page post back and there is no file to save. I have also added a client side function for disabling ajax on its clientclick of radtoolbarbutton but it results in an error of "Object doesn't support property or method 'set_enableAjax'". Please help me in achieving the required target without any code compromises.
Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 03 Jan 2012, 09:03 PM
Rahul:

Why do you choose to use the RadUpload instead of the RadAsyncUpload control in association with your image upload from within the RadGrid? It sounds like your application is using AJAX.

I'm referring to the functionality displayed in the Grid/Binary Images and RadAsyncUpload in Grid online demo.

Let me know your desired functionality and I will try to assist you more.


0
Dimitar Terziev
Telerik team
answered on 04 Jan 2012, 03:06 PM
Hello Rahul,

In general when working on scenarios with Ajax it's more convenient to use the RadAsyncUpload instead of the RadUpload as Richard had suggested. Nevertheless if you want to use the RadUpload you should disable the Ajax when the toolbar button is clicked as you are trying. In order to identify why you are not able to achieve the aforementioned action, please provide me the code that you are using so I could inspect it.

Here you could find a help article which is showing how to disable the ajax and perform a full post-back in scenarios like your.

All the best,
Dimitar Terziev
the Telerik team
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 their blog feed now
Tags
Upload (Obsolete)
Asked by
Rahul
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or